From 0e17bdd071597f942342e73b761c7afd27957af9 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 14:27:24 -0800 Subject: [PATCH 1/8] Update AutoRest C# version --- eng/Packages.Data.props | 2 +- .../EncryptionProperties.Serialization.cs | 13 +-- .../AlertingResultQuery.Serialization.cs | 2 +- .../Generated/Models/AlertingResultQuery.cs | 2 +- .../Models/AnomalyAlert.Serialization.cs | 25 ++++-- .../src/Generated/Models/AnomalyAlert.cs | 11 ++- ...AlertingConfigurationList.Serialization.cs | 2 +- .../AnomalyAlertingConfigurationList.cs | 2 +- ...etectionConfigurationList.Serialization.cs | 2 +- .../AnomalyDetectionConfigurationList.cs | 2 +- .../AnomalyDimensionQuery.Serialization.cs | 2 +- .../Generated/Models/AnomalyDimensionQuery.cs | 2 +- .../AnomalyFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/AnomalyFeedbackValue.cs | 2 +- .../Models/AnomalyProperty.Serialization.cs | 2 +- .../src/Generated/Models/AnomalyProperty.cs | 2 +- ...plicationInsightsDataFeed.Serialization.cs | 17 ++-- .../AzureApplicationInsightsDataFeed.cs | 2 +- ...tionInsightsDataFeedPatch.Serialization.cs | 2 +- .../AzureApplicationInsightsDataFeedPatch.cs | 2 +- ...licationInsightsParameter.Serialization.cs | 66 ++------------- .../AzureApplicationInsightsParameter.cs | 22 ++++- .../Models/AzureBlobDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/AzureBlobDataFeed.cs | 2 +- .../AzureBlobDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureBlobDataFeedPatch.cs | 2 +- .../AzureBlobParameter.Serialization.cs | 50 ++--------- .../Generated/Models/AzureBlobParameter.cs | 18 +++- .../AzureCosmosDBDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/AzureCosmosDBDataFeed.cs | 2 +- ...zureCosmosDBDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureCosmosDBDataFeedPatch.cs | 2 +- .../AzureCosmosDBParameter.Serialization.cs | 66 ++------------- .../Models/AzureCosmosDBParameter.cs | 22 ++++- ...AzureDataExplorerDataFeed.Serialization.cs | 17 ++-- .../Models/AzureDataExplorerDataFeed.cs | 2 +- ...DataExplorerDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureDataExplorerDataFeedPatch.cs | 2 +- ...taLakeStorageGen2DataFeed.Serialization.cs | 17 ++-- .../AzureDataLakeStorageGen2DataFeed.cs | 2 +- ...eStorageGen2DataFeedPatch.Serialization.cs | 2 +- .../AzureDataLakeStorageGen2DataFeedPatch.cs | 2 +- ...aLakeStorageGen2Parameter.Serialization.cs | 82 +++---------------- .../AzureDataLakeStorageGen2Parameter.cs | 26 +++++- .../AzureTableDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/AzureTableDataFeed.cs | 2 +- .../AzureTableDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureTableDataFeedPatch.cs | 2 +- .../AzureTableParameter.Serialization.cs | 50 ++--------- .../Generated/Models/AzureTableParameter.cs | 18 +++- .../ChangePointFeedbackValue.Serialization.cs | 2 +- .../Models/ChangePointFeedbackValue.cs | 2 +- .../CommentFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/CommentFeedbackValue.cs | 2 +- .../Models/DataFeedDetail.Serialization.cs | 15 +--- ...DataFeedIngestionProgress.Serialization.cs | 8 +- .../DataFeedIngestionStatus.Serialization.cs | 18 +++- .../Models/DataFeedIngestionStatus.cs | 11 ++- ...ionAnomalyFilterCondition.Serialization.cs | 2 +- .../Models/DetectionAnomalyFilterCondition.cs | 2 +- ...tectionAnomalyResultQuery.Serialization.cs | 2 +- .../Models/DetectionAnomalyResultQuery.cs | 2 +- ...onIncidentFilterCondition.Serialization.cs | 2 +- .../DetectionIncidentFilterCondition.cs | 2 +- ...ectionIncidentResultQuery.Serialization.cs | 2 +- .../Models/DetectionIncidentResultQuery.cs | 2 +- .../DetectionSeriesQuery.Serialization.cs | 2 +- .../Generated/Models/DetectionSeriesQuery.cs | 2 +- .../ElasticsearchDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/ElasticsearchDataFeed.cs | 2 +- ...lasticsearchDataFeedPatch.Serialization.cs | 2 +- .../Models/ElasticsearchDataFeedPatch.cs | 2 +- .../ElasticsearchParameter.Serialization.cs | 66 ++------------- .../Models/ElasticsearchParameter.cs | 22 ++++- .../EmailHookInfoPatch.Serialization.cs | 2 +- .../Generated/Models/EmailHookInfoPatch.cs | 2 +- .../EmailHookParameter.Serialization.cs | 2 +- .../Generated/Models/EmailHookParameter.cs | 2 +- .../Models/EnrichmentStatus.Serialization.cs | 13 ++- .../src/Generated/Models/EnrichmentStatus.cs | 15 ++-- ...richmentStatusQueryOption.Serialization.cs | 2 +- .../Models/EnrichmentStatusQueryOption.cs | 2 +- .../HttpRequestDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/HttpRequestDataFeed.cs | 2 +- .../HttpRequestDataFeedPatch.Serialization.cs | 2 +- .../Models/HttpRequestDataFeedPatch.cs | 2 +- .../HttpRequestParameter.Serialization.cs | 66 ++------------- .../Generated/Models/HttpRequestParameter.cs | 22 ++++- .../Models/IncidentProperty.Serialization.cs | 2 +- .../src/Generated/Models/IncidentProperty.cs | 2 +- .../Models/InfluxDBDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/InfluxDBDataFeed.cs | 2 +- .../InfluxDBDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/InfluxDBDataFeedPatch.cs | 2 +- .../Models/InfluxDBParameter.Serialization.cs | 82 +++---------------- .../src/Generated/Models/InfluxDBParameter.cs | 26 +++++- ...stionProgressResetOptions.Serialization.cs | 2 +- .../Models/IngestionProgressResetOptions.cs | 2 +- ...gestionStatusQueryOptions.Serialization.cs | 2 +- .../Models/IngestionStatusQueryOptions.cs | 2 +- .../MetricAnomalyFeedback.Serialization.cs | 29 ++----- .../MetricCommentFeedback.Serialization.cs | 30 ++----- .../Models/MetricDataList.Serialization.cs | 2 +- .../src/Generated/Models/MetricDataList.cs | 2 +- .../MetricDataQueryOptions.Serialization.cs | 2 +- .../Models/MetricDataQueryOptions.cs | 2 +- ...tricDimensionQueryOptions.Serialization.cs | 2 +- .../Models/MetricDimensionQueryOptions.cs | 2 +- .../MetricFeedbackFilter.Serialization.cs | 2 +- .../Generated/Models/MetricFeedbackFilter.cs | 2 +- .../Models/MetricSeriesData.Serialization.cs | 23 +++++- .../src/Generated/Models/MetricSeriesData.cs | 26 +----- .../MetricSeriesDefinition.Serialization.cs | 11 ++- .../Models/MetricSeriesDefinition.cs | 18 ++-- .../MetricSeriesQueryOptions.Serialization.cs | 2 +- .../Models/MetricSeriesQueryOptions.cs | 2 +- .../Models/MongoDBDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/MongoDBDataFeed.cs | 2 +- .../MongoDBDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/MongoDBDataFeedPatch.cs | 2 +- .../Models/MongoDBParameter.Serialization.cs | 50 ++--------- .../src/Generated/Models/MongoDBParameter.cs | 18 +++- .../Models/MySqlDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/MySqlDataFeed.cs | 2 +- .../MySqlDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/MySqlDataFeedPatch.cs | 2 +- .../PeriodFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/PeriodFeedbackValue.cs | 2 +- .../PostgreSqlDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/PostgreSqlDataFeed.cs | 2 +- .../PostgreSqlDataFeedPatch.Serialization.cs | 2 +- .../Models/PostgreSqlDataFeedPatch.cs | 2 +- .../Models/RootCauseList.Serialization.cs | 2 +- .../src/Generated/Models/RootCauseList.cs | 2 +- .../Models/SQLServerDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/SQLServerDataFeed.cs | 2 +- .../SQLServerDataFeedPatch.Serialization.cs | 2 +- .../Models/SQLServerDataFeedPatch.cs | 2 +- .../Models/SeriesIdentity.Serialization.cs | 2 +- .../src/Generated/Models/SeriesIdentity.cs | 2 +- .../Models/SeriesResultList.Serialization.cs | 2 +- .../src/Generated/Models/SeriesResultList.cs | 2 +- .../SeverityFilterCondition.Serialization.cs | 2 +- .../Models/SeverityFilterCondition.cs | 2 +- .../SqlSourceParameter.Serialization.cs | 34 ++------ .../Generated/Models/SqlSourceParameter.cs | 14 +++- .../Models/UsageStats.Serialization.cs | 2 +- .../src/Generated/Models/UsageStats.cs | 2 +- .../WebhookHookInfoPatch.Serialization.cs | 2 +- .../Generated/Models/WebhookHookInfoPatch.cs | 2 +- .../src/Generated/ContainerRestClient.cs | 1 - .../src/Generated/ServiceRestClient.cs | 1 - .../DetectedLanguageInternal.Serialization.cs | 10 --- .../Models/DetectedLanguageInternal.cs | 12 +++ .../Models/DocumentEntities.Serialization.cs | 2 +- .../src/Generated/Models/DocumentEntities.cs | 2 +- .../Models/DocumentError.Serialization.cs | 2 +- .../src/Generated/Models/DocumentError.cs | 2 +- .../DocumentKeyPhrases.Serialization.cs | 2 +- .../Generated/Models/DocumentKeyPhrases.cs | 2 +- .../Models/DocumentLanguage.Serialization.cs | 2 +- .../src/Generated/Models/DocumentLanguage.cs | 2 +- .../DocumentLinkedEntities.Serialization.cs | 2 +- .../Models/DocumentLinkedEntities.cs | 2 +- .../Models/EntitiesResult.Serialization.cs | 2 +- .../src/Generated/Models/EntitiesResult.cs | 2 +- .../Models/EntitiesTask.Serialization.cs | 2 +- .../src/Generated/Models/EntitiesTask.cs | 2 +- .../Generated/Models/Entity.Serialization.cs | 2 +- .../src/Generated/Models/Entity.cs | 2 +- .../EntityLinkingResult.Serialization.cs | 2 +- .../Generated/Models/EntityLinkingResult.cs | 2 +- .../Models/EntityLinkingTask.Serialization.cs | 2 +- .../src/Generated/Models/EntityLinkingTask.cs | 2 +- .../Models/JobDescriptor.Serialization.cs | 2 +- .../src/Generated/Models/JobDescriptor.cs | 2 +- .../Models/JobManifest.Serialization.cs | 2 +- .../src/Generated/Models/JobManifest.cs | 2 +- .../Models/KeyPhraseResult.Serialization.cs | 2 +- .../src/Generated/Models/KeyPhraseResult.cs | 2 +- .../Models/KeyPhrasesTask.Serialization.cs | 2 +- .../src/Generated/Models/KeyPhrasesTask.cs | 2 +- .../LanguageBatchInput.Serialization.cs | 2 +- .../Generated/Models/LanguageBatchInput.cs | 2 +- .../Models/LanguageInput.Serialization.cs | 24 ++---- .../src/Generated/Models/LanguageInput.cs | 14 +++- .../Models/LanguageResult.Serialization.cs | 2 +- .../src/Generated/Models/LanguageResult.cs | 2 +- .../MultiLanguageBatchInput.Serialization.cs | 2 +- .../Models/MultiLanguageBatchInput.cs | 2 +- .../MultiLanguageInput.Serialization.cs | 2 +- .../Generated/Models/MultiLanguageInput.cs | 2 +- .../PiiDocumentEntities.Serialization.cs | 2 +- .../Generated/Models/PiiDocumentEntities.cs | 2 +- .../Generated/Models/PiiTask.Serialization.cs | 2 +- .../src/Generated/Models/PiiTask.cs | 2 +- .../Models/SentimentResponse.Serialization.cs | 2 +- .../src/Generated/Models/SentimentResponse.cs | 2 +- ...argetConfidenceScoreLabel.Serialization.cs | 2 +- .../Models/TargetConfidenceScoreLabel.cs | 2 +- .../Models/TargetRelation.Serialization.cs | 2 +- .../src/Generated/Models/TargetRelation.cs | 2 +- ...pdateModelSettingsRequest.Serialization.cs | 2 +- .../Models/UpdateModelSettingsRequest.cs | 2 +- 204 files changed, 647 insertions(+), 1022 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 17e2a1632ade9..c7c0afff50eb5 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -122,7 +122,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs index 72bf76ae53acd..f4dc80cff3d15 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs @@ -17,15 +17,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(KeyVaultProperties)) { - if (KeyVaultProperties != null) - { - writer.WritePropertyName("keyVaultProperties"); - writer.WriteObjectValue(KeyVaultProperties); - } - else - { - writer.WriteNull("keyVaultProperties"); - } + writer.WritePropertyName("keyVaultProperties"); + writer.WriteObjectValue(KeyVaultProperties); } writer.WriteEndObject(); } @@ -39,7 +32,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement { if (property.Value.ValueKind == JsonValueKind.Null) { - keyVaultProperties = null; + property.ThrowNonNullablePropertyIsNull(); continue; } keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs index a443e09737711..6e33995e5d3e9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AlertingResultQuery : IUtf8JsonSerializable + public partial class AlertingResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs index 20568989da294..a1b64a1f725cb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AlertingResultQuery. - internal partial class AlertingResultQuery + public partial class AlertingResultQuery { /// Initializes a new instance of AlertingResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs index 6ec1e71f8cc1d..3f2e13d2bdd2d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs @@ -15,10 +15,10 @@ public partial class AnomalyAlert { internal static AnomalyAlert DeserializeAnomalyAlert(JsonElement element) { - string alertId = default; - DateTimeOffset timestamp = default; - DateTimeOffset createdTime = default; - DateTimeOffset modifiedTime = default; + Optional alertId = default; + Optional timestamp = default; + Optional createdTime = default; + Optional modifiedTime = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("alertId")) @@ -28,21 +28,36 @@ internal static AnomalyAlert DeserializeAnomalyAlert(JsonElement element) } if (property.NameEquals("timestamp")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("createdTime")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } createdTime = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("modifiedTime")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } modifiedTime = property.Value.GetDateTimeOffset("O"); continue; } } - return new AnomalyAlert(alertId, timestamp, createdTime, modifiedTime); + return new AnomalyAlert(alertId.Value, timestamp, createdTime, modifiedTime); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs index 32d4f66386590..2393fac1225ff 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs @@ -12,19 +12,18 @@ namespace Azure.AI.MetricsAdvisor.Models /// The AlertResult. public partial class AnomalyAlert { + /// Initializes a new instance of AnomalyAlert. + internal AnomalyAlert() + { + } + /// Initializes a new instance of AnomalyAlert. /// alert id. /// anomaly time. /// created time. /// modified time. - /// is null. internal AnomalyAlert(string id, DateTimeOffset timestamp, DateTimeOffset createdTime, DateTimeOffset modifiedTime) { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - Id = id; Timestamp = timestamp; CreatedTime = createdTime; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs index 8aaef89ff8e56..8fbb8204f741c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AnomalyAlertingConfigurationList + public partial class AnomalyAlertingConfigurationList { internal static AnomalyAlertingConfigurationList DeserializeAnomalyAlertingConfigurationList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs index a8eb1579054fc..8fdd3571ee6ee 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyAlertingConfigurationList. - internal partial class AnomalyAlertingConfigurationList + public partial class AnomalyAlertingConfigurationList { /// Initializes a new instance of AnomalyAlertingConfigurationList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs index 0b7be3e97faca..f679cd970ca98 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AnomalyDetectionConfigurationList + public partial class AnomalyDetectionConfigurationList { internal static AnomalyDetectionConfigurationList DeserializeAnomalyDetectionConfigurationList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs index 9060ebd4edca4..c7d12d8276f1f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyDetectionConfigurationList. - internal partial class AnomalyDetectionConfigurationList + public partial class AnomalyDetectionConfigurationList { /// Initializes a new instance of AnomalyDetectionConfigurationList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs index 843695973dd7c..fbd3db3396c29 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AnomalyDimensionQuery : IUtf8JsonSerializable + public partial class AnomalyDimensionQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs index 8d3e2b0076cb1..d5be96b6bc1b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyDimensionQuery. - internal partial class AnomalyDimensionQuery + public partial class AnomalyDimensionQuery { /// Initializes a new instance of AnomalyDimensionQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs index 0cc4298dfec3b..6f80de055c1eb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AnomalyFeedbackValue : IUtf8JsonSerializable + public partial class AnomalyFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs index 94102e12124b1..e59a993af0b22 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyFeedbackValue. - internal partial class AnomalyFeedbackValue + public partial class AnomalyFeedbackValue { /// Initializes a new instance of AnomalyFeedbackValue. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs index e79fee83d27fc..aabb1407906a6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AnomalyProperty + public partial class AnomalyProperty { internal static AnomalyProperty DeserializeAnomalyProperty(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs index f0bef75aac675..da544a401325d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyProperty. - internal partial class AnomalyProperty + public partial class AnomalyProperty { /// Initializes a new instance of AnomalyProperty. /// anomaly severity. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs index 6c91e552af435..2e3286f7132bc 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureApplicationInsightsDataFeed : IUtf8JsonSerializable + public partial class AzureApplicationInsightsDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureApplicationInsightsDataFeed DeserializeAzureApplicationInsi string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureApplicationInsightsDataFeed DeserializeAzureApplicationInsi { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs index c79142a27d0ef..971954a30868e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsDataFeed. - internal partial class AzureApplicationInsightsDataFeed : DataFeedDetail + public partial class AzureApplicationInsightsDataFeed : DataFeedDetail { /// Initializes a new instance of AzureApplicationInsightsDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs index 5e5e490450977..8315cea416327 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureApplicationInsightsDataFeedPatch : IUtf8JsonSerializable + public partial class AzureApplicationInsightsDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs index 121549939e576..2874388f514f4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsDataFeedPatch. - internal partial class AzureApplicationInsightsDataFeedPatch : DataFeedDetailPatch + public partial class AzureApplicationInsightsDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureApplicationInsightsDataFeedPatch. public AzureApplicationInsightsDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs index 2dfa510e68d20..39f1773a8f56f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs @@ -10,47 +10,19 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureApplicationInsightsParameter : IUtf8JsonSerializable + public partial class AzureApplicationInsightsParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (AzureCloud != null) - { - writer.WritePropertyName("azureCloud"); - writer.WriteStringValue(AzureCloud); - } - else - { - writer.WriteNull("azureCloud"); - } - if (ApplicationId != null) - { - writer.WritePropertyName("applicationId"); - writer.WriteStringValue(ApplicationId); - } - else - { - writer.WriteNull("applicationId"); - } - if (ApiKey != null) - { - writer.WritePropertyName("apiKey"); - writer.WriteStringValue(ApiKey); - } - else - { - writer.WriteNull("apiKey"); - } - if (Query != null) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); - } - else - { - writer.WriteNull("query"); - } + writer.WritePropertyName("azureCloud"); + writer.WriteStringValue(AzureCloud); + writer.WritePropertyName("applicationId"); + writer.WriteStringValue(ApplicationId); + writer.WritePropertyName("apiKey"); + writer.WriteStringValue(ApiKey); + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); writer.WriteEndObject(); } @@ -64,41 +36,21 @@ internal static AzureApplicationInsightsParameter DeserializeAzureApplicationIns { if (property.NameEquals("azureCloud")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - azureCloud = null; - continue; - } azureCloud = property.Value.GetString(); continue; } if (property.NameEquals("applicationId")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - applicationId = null; - continue; - } applicationId = property.Value.GetString(); continue; } if (property.NameEquals("apiKey")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - apiKey = null; - continue; - } apiKey = property.Value.GetString(); continue; } if (property.NameEquals("query")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - query = null; - continue; - } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs index fddfb7c0b89ef..7dad3019c9b5a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs @@ -5,18 +5,38 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsParameter. - internal partial class AzureApplicationInsightsParameter + public partial class AzureApplicationInsightsParameter { /// Initializes a new instance of AzureApplicationInsightsParameter. /// Azure cloud environment. /// Azure Application Insights ID. /// API Key. /// Query. + /// , , , or is null. public AzureApplicationInsightsParameter(string azureCloud, string applicationId, string apiKey, string query) { + if (azureCloud == null) + { + throw new ArgumentNullException(nameof(azureCloud)); + } + if (applicationId == null) + { + throw new ArgumentNullException(nameof(applicationId)); + } + if (apiKey == null) + { + throw new ArgumentNullException(nameof(apiKey)); + } + if (query == null) + { + throw new ArgumentNullException(nameof(query)); + } + AzureCloud = azureCloud; ApplicationId = applicationId; ApiKey = apiKey; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs index 7fffaaeb34f13..0f819227edc8f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureBlobDataFeed : IUtf8JsonSerializable + public partial class AzureBlobDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureBlobDataFeed DeserializeAzureBlobDataFeed(JsonElement eleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureBlobDataFeed DeserializeAzureBlobDataFeed(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs index 69a47c3ba393f..34ea6544436cb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobDataFeed. - internal partial class AzureBlobDataFeed : DataFeedDetail + public partial class AzureBlobDataFeed : DataFeedDetail { /// Initializes a new instance of AzureBlobDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs index 453543d8baa72..5c83cd71d5643 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureBlobDataFeedPatch : IUtf8JsonSerializable + public partial class AzureBlobDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs index 81eab0600b50b..1bfa2bcb7c689 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobDataFeedPatch. - internal partial class AzureBlobDataFeedPatch : DataFeedDetailPatch + public partial class AzureBlobDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureBlobDataFeedPatch. public AzureBlobDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs index 8d2ca73a0383c..bf7c79426e05c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs @@ -10,38 +10,17 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureBlobParameter : IUtf8JsonSerializable + public partial class AzureBlobParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (Container != null) - { - writer.WritePropertyName("container"); - writer.WriteStringValue(Container); - } - else - { - writer.WriteNull("container"); - } - if (BlobTemplate != null) - { - writer.WritePropertyName("blobTemplate"); - writer.WriteStringValue(BlobTemplate); - } - else - { - writer.WriteNull("blobTemplate"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("container"); + writer.WriteStringValue(Container); + writer.WritePropertyName("blobTemplate"); + writer.WriteStringValue(BlobTemplate); writer.WriteEndObject(); } @@ -54,31 +33,16 @@ internal static AzureBlobParameter DeserializeAzureBlobParameter(JsonElement ele { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("container")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - container = null; - continue; - } container = property.Value.GetString(); continue; } if (property.NameEquals("blobTemplate")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - blobTemplate = null; - continue; - } blobTemplate = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs index e6680f04cd5d6..6e36778098d3c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs @@ -5,17 +5,33 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobParameter. - internal partial class AzureBlobParameter + public partial class AzureBlobParameter { /// Initializes a new instance of AzureBlobParameter. /// Azure Blob connection string. /// Container. /// Blob Template. + /// , , or is null. public AzureBlobParameter(string connectionString, string container, string blobTemplate) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (container == null) + { + throw new ArgumentNullException(nameof(container)); + } + if (blobTemplate == null) + { + throw new ArgumentNullException(nameof(blobTemplate)); + } + ConnectionString = connectionString; Container = container; BlobTemplate = blobTemplate; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs index 6f4d7587dafb2..53f799b8e2972 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureCosmosDBDataFeed : IUtf8JsonSerializable + public partial class AzureCosmosDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureCosmosDBDataFeed DeserializeAzureCosmosDBDataFeed(JsonEleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureCosmosDBDataFeed DeserializeAzureCosmosDBDataFeed(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs index 941817fab1b3e..7ddf2e2297a83 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBDataFeed. - internal partial class AzureCosmosDBDataFeed : DataFeedDetail + public partial class AzureCosmosDBDataFeed : DataFeedDetail { /// Initializes a new instance of AzureCosmosDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs index d8179bd5033a3..a711fb40dc5be 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureCosmosDBDataFeedPatch : IUtf8JsonSerializable + public partial class AzureCosmosDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs index f0c2edcfbe7f9..ab29293ce9c87 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBDataFeedPatch. - internal partial class AzureCosmosDBDataFeedPatch : DataFeedDetailPatch + public partial class AzureCosmosDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureCosmosDBDataFeedPatch. public AzureCosmosDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs index fc1a57e2bedd4..74ef6ab8bef39 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs @@ -10,47 +10,19 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureCosmosDBParameter : IUtf8JsonSerializable + public partial class AzureCosmosDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (SqlQuery != null) - { - writer.WritePropertyName("sqlQuery"); - writer.WriteStringValue(SqlQuery); - } - else - { - writer.WriteNull("sqlQuery"); - } - if (Database != null) - { - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - } - else - { - writer.WriteNull("database"); - } - if (CollectionId != null) - { - writer.WritePropertyName("collectionId"); - writer.WriteStringValue(CollectionId); - } - else - { - writer.WriteNull("collectionId"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("sqlQuery"); + writer.WriteStringValue(SqlQuery); + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + writer.WritePropertyName("collectionId"); + writer.WriteStringValue(CollectionId); writer.WriteEndObject(); } @@ -64,41 +36,21 @@ internal static AzureCosmosDBParameter DeserializeAzureCosmosDBParameter(JsonEle { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("sqlQuery")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - sqlQuery = null; - continue; - } sqlQuery = property.Value.GetString(); continue; } if (property.NameEquals("database")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - database = null; - continue; - } database = property.Value.GetString(); continue; } if (property.NameEquals("collectionId")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - collectionId = null; - continue; - } collectionId = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs index 8734111de8a51..8c14de4fc17dd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs @@ -5,18 +5,38 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBParameter. - internal partial class AzureCosmosDBParameter + public partial class AzureCosmosDBParameter { /// Initializes a new instance of AzureCosmosDBParameter. /// Azure CosmosDB connection string. /// Query script. /// Database name. /// Collection id. + /// , , , or is null. public AzureCosmosDBParameter(string connectionString, string sqlQuery, string database, string collectionId) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (sqlQuery == null) + { + throw new ArgumentNullException(nameof(sqlQuery)); + } + if (database == null) + { + throw new ArgumentNullException(nameof(database)); + } + if (collectionId == null) + { + throw new ArgumentNullException(nameof(collectionId)); + } + ConnectionString = connectionString; SqlQuery = sqlQuery; Database = database; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs index 08152399ceae3..cd1584559cb9d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureDataExplorerDataFeed : IUtf8JsonSerializable + public partial class AzureDataExplorerDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureDataExplorerDataFeed DeserializeAzureDataExplorerDataFeed(J string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureDataExplorerDataFeed DeserializeAzureDataExplorerDataFeed(J { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs index 91c8d1433b7a3..acf36036db8f7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataExplorerDataFeed. - internal partial class AzureDataExplorerDataFeed : DataFeedDetail + public partial class AzureDataExplorerDataFeed : DataFeedDetail { /// Initializes a new instance of AzureDataExplorerDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs index e5ca1057b6bed..3baaee3cd15ef 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureDataExplorerDataFeedPatch : IUtf8JsonSerializable + public partial class AzureDataExplorerDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs index 007eea96b312e..970d5f4b5d27b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataExplorerDataFeedPatch. - internal partial class AzureDataExplorerDataFeedPatch : DataFeedDetailPatch + public partial class AzureDataExplorerDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureDataExplorerDataFeedPatch. public AzureDataExplorerDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs index 31ee7635d327c..51ba8c3e33e15 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureDataLakeStorageGen2DataFeed : IUtf8JsonSerializable + public partial class AzureDataLakeStorageGen2DataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureDataLakeStorageGen2DataFeed DeserializeAzureDataLakeStorage string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureDataLakeStorageGen2DataFeed DeserializeAzureDataLakeStorage { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs index 83d21c807a2c8..c07fecd7755cf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2DataFeed. - internal partial class AzureDataLakeStorageGen2DataFeed : DataFeedDetail + public partial class AzureDataLakeStorageGen2DataFeed : DataFeedDetail { /// Initializes a new instance of AzureDataLakeStorageGen2DataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs index c8d8faec375b9..e6cdc9b8b128f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureDataLakeStorageGen2DataFeedPatch : IUtf8JsonSerializable + public partial class AzureDataLakeStorageGen2DataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs index d47b87d7d978c..5cec94cea9b48 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2DataFeedPatch. - internal partial class AzureDataLakeStorageGen2DataFeedPatch : DataFeedDetailPatch + public partial class AzureDataLakeStorageGen2DataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureDataLakeStorageGen2DataFeedPatch. public AzureDataLakeStorageGen2DataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs index 8b59a135dc99e..fde148d87ab1c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs @@ -10,56 +10,21 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureDataLakeStorageGen2Parameter : IUtf8JsonSerializable + public partial class AzureDataLakeStorageGen2Parameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (AccountName != null) - { - writer.WritePropertyName("accountName"); - writer.WriteStringValue(AccountName); - } - else - { - writer.WriteNull("accountName"); - } - if (AccountKey != null) - { - writer.WritePropertyName("accountKey"); - writer.WriteStringValue(AccountKey); - } - else - { - writer.WriteNull("accountKey"); - } - if (FileSystemName != null) - { - writer.WritePropertyName("fileSystemName"); - writer.WriteStringValue(FileSystemName); - } - else - { - writer.WriteNull("fileSystemName"); - } - if (DirectoryTemplate != null) - { - writer.WritePropertyName("directoryTemplate"); - writer.WriteStringValue(DirectoryTemplate); - } - else - { - writer.WriteNull("directoryTemplate"); - } - if (FileTemplate != null) - { - writer.WritePropertyName("fileTemplate"); - writer.WriteStringValue(FileTemplate); - } - else - { - writer.WriteNull("fileTemplate"); - } + writer.WritePropertyName("accountName"); + writer.WriteStringValue(AccountName); + writer.WritePropertyName("accountKey"); + writer.WriteStringValue(AccountKey); + writer.WritePropertyName("fileSystemName"); + writer.WriteStringValue(FileSystemName); + writer.WritePropertyName("directoryTemplate"); + writer.WriteStringValue(DirectoryTemplate); + writer.WritePropertyName("fileTemplate"); + writer.WriteStringValue(FileTemplate); writer.WriteEndObject(); } @@ -74,51 +39,26 @@ internal static AzureDataLakeStorageGen2Parameter DeserializeAzureDataLakeStorag { if (property.NameEquals("accountName")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - accountName = null; - continue; - } accountName = property.Value.GetString(); continue; } if (property.NameEquals("accountKey")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - accountKey = null; - continue; - } accountKey = property.Value.GetString(); continue; } if (property.NameEquals("fileSystemName")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - fileSystemName = null; - continue; - } fileSystemName = property.Value.GetString(); continue; } if (property.NameEquals("directoryTemplate")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - directoryTemplate = null; - continue; - } directoryTemplate = property.Value.GetString(); continue; } if (property.NameEquals("fileTemplate")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - fileTemplate = null; - continue; - } fileTemplate = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs index 9f7dff6a3a3b4..7bfb21decc928 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs @@ -5,10 +5,12 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2Parameter. - internal partial class AzureDataLakeStorageGen2Parameter + public partial class AzureDataLakeStorageGen2Parameter { /// Initializes a new instance of AzureDataLakeStorageGen2Parameter. /// Account name. @@ -16,8 +18,30 @@ internal partial class AzureDataLakeStorageGen2Parameter /// File system name (Container). /// Directory template. /// File template. + /// , , , , or is null. public AzureDataLakeStorageGen2Parameter(string accountName, string accountKey, string fileSystemName, string directoryTemplate, string fileTemplate) { + if (accountName == null) + { + throw new ArgumentNullException(nameof(accountName)); + } + if (accountKey == null) + { + throw new ArgumentNullException(nameof(accountKey)); + } + if (fileSystemName == null) + { + throw new ArgumentNullException(nameof(fileSystemName)); + } + if (directoryTemplate == null) + { + throw new ArgumentNullException(nameof(directoryTemplate)); + } + if (fileTemplate == null) + { + throw new ArgumentNullException(nameof(fileTemplate)); + } + AccountName = accountName; AccountKey = accountKey; FileSystemName = fileSystemName; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs index c0c2f838fff45..28a9825f744ac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureTableDataFeed : IUtf8JsonSerializable + public partial class AzureTableDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static AzureTableDataFeed DeserializeAzureTableDataFeed(JsonElement ele string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static AzureTableDataFeed DeserializeAzureTableDataFeed(JsonElement ele { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs index f35d4df8853b1..f5eafb306405f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableDataFeed. - internal partial class AzureTableDataFeed : DataFeedDetail + public partial class AzureTableDataFeed : DataFeedDetail { /// Initializes a new instance of AzureTableDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs index a4212694a9e62..784434bec5ea1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureTableDataFeedPatch : IUtf8JsonSerializable + public partial class AzureTableDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs index 390f4722b4de5..bd295a0ae462c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableDataFeedPatch. - internal partial class AzureTableDataFeedPatch : DataFeedDetailPatch + public partial class AzureTableDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureTableDataFeedPatch. public AzureTableDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs index de146e6cd199b..6a20adbcfaf7c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs @@ -10,38 +10,17 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class AzureTableParameter : IUtf8JsonSerializable + public partial class AzureTableParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (Table != null) - { - writer.WritePropertyName("table"); - writer.WriteStringValue(Table); - } - else - { - writer.WriteNull("table"); - } - if (Query != null) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); - } - else - { - writer.WriteNull("query"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("table"); + writer.WriteStringValue(Table); + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); writer.WriteEndObject(); } @@ -54,31 +33,16 @@ internal static AzureTableParameter DeserializeAzureTableParameter(JsonElement e { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("table")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - table = null; - continue; - } table = property.Value.GetString(); continue; } if (property.NameEquals("query")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - query = null; - continue; - } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs index dcd9f3b5f4266..341c890e37f3d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs @@ -5,17 +5,33 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableParameter. - internal partial class AzureTableParameter + public partial class AzureTableParameter { /// Initializes a new instance of AzureTableParameter. /// Azure Table connection string. /// Table name. /// Query script. + /// , , or is null. public AzureTableParameter(string connectionString, string table, string query) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (table == null) + { + throw new ArgumentNullException(nameof(table)); + } + if (query == null) + { + throw new ArgumentNullException(nameof(query)); + } + ConnectionString = connectionString; Table = table; Query = query; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs index 8fd39639c4e2c..9c0f92deb7425 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ChangePointFeedbackValue : IUtf8JsonSerializable + public partial class ChangePointFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs index ecd7e116d9c7f..bb76e12373113 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ChangePointFeedbackValue. - internal partial class ChangePointFeedbackValue + public partial class ChangePointFeedbackValue { /// Initializes a new instance of ChangePointFeedbackValue. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs index 77ee818055af5..3493a9d276369 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class CommentFeedbackValue : IUtf8JsonSerializable + public partial class CommentFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs index 18ef7d53a390d..df6db771f8818 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The CommentFeedbackValue. - internal partial class CommentFeedbackValue + public partial class CommentFeedbackValue { /// Initializes a new instance of CommentFeedbackValue. /// the comment string. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs index 7e95033de0815..e5fb11ca4de24 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs @@ -30,15 +30,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -178,7 +171,7 @@ internal static DataFeedDetail DeserializeDataFeedDetail(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -232,7 +225,7 @@ internal static DataFeedDetail DeserializeDataFeedDetail(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs index 0afa3ae85592e..3546f3f2d1f3e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs @@ -15,15 +15,15 @@ public partial class DataFeedIngestionProgress { internal static DataFeedIngestionProgress DeserializeDataFeedIngestionProgress(JsonElement element) { - Optional latestSuccessTimestamp = default; - Optional latestActiveTimestamp = default; + Optional latestSuccessTimestamp = default; + Optional latestActiveTimestamp = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("latestSuccessTimestamp")) { if (property.Value.ValueKind == JsonValueKind.Null) { - latestSuccessTimestamp = null; + property.ThrowNonNullablePropertyIsNull(); continue; } latestSuccessTimestamp = property.Value.GetDateTimeOffset("O"); @@ -33,7 +33,7 @@ internal static DataFeedIngestionProgress DeserializeDataFeedIngestionProgress(J { if (property.Value.ValueKind == JsonValueKind.Null) { - latestActiveTimestamp = null; + property.ThrowNonNullablePropertyIsNull(); continue; } latestActiveTimestamp = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs index aa65eaec9aeeb..be21a7d32e6f4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs @@ -15,18 +15,28 @@ public partial class DataFeedIngestionStatus { internal static DataFeedIngestionStatus DeserializeDataFeedIngestionStatus(JsonElement element) { - DateTimeOffset timestamp = default; - IngestionStatusType status = default; - string message = default; + Optional timestamp = default; + Optional status = default; + Optional message = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("timestamp")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } status = new IngestionStatusType(property.Value.GetString()); continue; } @@ -36,7 +46,7 @@ internal static DataFeedIngestionStatus DeserializeDataFeedIngestionStatus(JsonE continue; } } - return new DataFeedIngestionStatus(timestamp, status, message); + return new DataFeedIngestionStatus(timestamp, status, message.Value); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs index 7bf8518736250..7d1a42a075090 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs @@ -12,18 +12,17 @@ namespace Azure.AI.MetricsAdvisor.Models /// The IngestionStatus. public partial class DataFeedIngestionStatus { + /// Initializes a new instance of DataFeedIngestionStatus. + internal DataFeedIngestionStatus() + { + } + /// 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. internal DataFeedIngestionStatus(DateTimeOffset timestamp, IngestionStatusType status, string message) { - if (message == null) - { - throw new ArgumentNullException(nameof(message)); - } - Timestamp = timestamp; Status = status; Message = message; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs index 8a93fd0c61cb3..42bb370f5afe3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class DetectionAnomalyFilterCondition : IUtf8JsonSerializable + public partial class DetectionAnomalyFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs index 2e75e1cab8922..5db83a3ba2e0e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionAnomalyFilterCondition. - internal partial class DetectionAnomalyFilterCondition + public partial class DetectionAnomalyFilterCondition { /// Initializes a new instance of DetectionAnomalyFilterCondition. public DetectionAnomalyFilterCondition() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs index a27049abc537d..d68a716a03081 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class DetectionAnomalyResultQuery : IUtf8JsonSerializable + public partial class DetectionAnomalyResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs index b2789fe1a7453..746c961d224db 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionAnomalyResultQuery. - internal partial class DetectionAnomalyResultQuery + public partial class DetectionAnomalyResultQuery { /// Initializes a new instance of DetectionAnomalyResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs index 8670f753c042f..a021593e21b3e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class DetectionIncidentFilterCondition : IUtf8JsonSerializable + public partial class DetectionIncidentFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs index aeab004609ab3..9b7b0ce2493bb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionIncidentFilterCondition. - internal partial class DetectionIncidentFilterCondition + public partial class DetectionIncidentFilterCondition { /// Initializes a new instance of DetectionIncidentFilterCondition. public DetectionIncidentFilterCondition() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs index 18eb84eb4d9b8..abacd3a1a5834 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class DetectionIncidentResultQuery : IUtf8JsonSerializable + public partial class DetectionIncidentResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs index 05ff2d4ded728..fc9fed152b099 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionIncidentResultQuery. - internal partial class DetectionIncidentResultQuery + public partial class DetectionIncidentResultQuery { /// Initializes a new instance of DetectionIncidentResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs index c0675aab07638..3f8bc3c23d13a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class DetectionSeriesQuery : IUtf8JsonSerializable + public partial class DetectionSeriesQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs index 858fe099b097f..3b0119b3efb6a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionSeriesQuery. - internal partial class DetectionSeriesQuery + public partial class DetectionSeriesQuery { /// Initializes a new instance of DetectionSeriesQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs index f34e497daa15f..16f9b6280762f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ElasticsearchDataFeed : IUtf8JsonSerializable + public partial class ElasticsearchDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static ElasticsearchDataFeed DeserializeElasticsearchDataFeed(JsonEleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static ElasticsearchDataFeed DeserializeElasticsearchDataFeed(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs index 127464a45516e..58560ea75b9f0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchDataFeed. - internal partial class ElasticsearchDataFeed : DataFeedDetail + public partial class ElasticsearchDataFeed : DataFeedDetail { /// Initializes a new instance of ElasticsearchDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs index 1fc3fc61a045d..09fa9c21c719c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ElasticsearchDataFeedPatch : IUtf8JsonSerializable + public partial class ElasticsearchDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs index 837dc72a22566..e9ac39e299c86 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchDataFeedPatch. - internal partial class ElasticsearchDataFeedPatch : DataFeedDetailPatch + public partial class ElasticsearchDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of ElasticsearchDataFeedPatch. public ElasticsearchDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs index 39d163f7f97d1..1aacec9eb1059 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs @@ -10,47 +10,19 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ElasticsearchParameter : IUtf8JsonSerializable + public partial class ElasticsearchParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Host != null) - { - writer.WritePropertyName("host"); - writer.WriteStringValue(Host); - } - else - { - writer.WriteNull("host"); - } - if (Port != null) - { - writer.WritePropertyName("port"); - writer.WriteStringValue(Port); - } - else - { - writer.WriteNull("port"); - } - if (AuthHeader != null) - { - writer.WritePropertyName("authHeader"); - writer.WriteStringValue(AuthHeader); - } - else - { - writer.WriteNull("authHeader"); - } - if (Query != null) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); - } - else - { - writer.WriteNull("query"); - } + writer.WritePropertyName("host"); + writer.WriteStringValue(Host); + writer.WritePropertyName("port"); + writer.WriteStringValue(Port); + writer.WritePropertyName("authHeader"); + writer.WriteStringValue(AuthHeader); + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); writer.WriteEndObject(); } @@ -64,41 +36,21 @@ internal static ElasticsearchParameter DeserializeElasticsearchParameter(JsonEle { if (property.NameEquals("host")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - host = null; - continue; - } host = property.Value.GetString(); continue; } if (property.NameEquals("port")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - port = null; - continue; - } port = property.Value.GetString(); continue; } if (property.NameEquals("authHeader")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - authHeader = null; - continue; - } authHeader = property.Value.GetString(); continue; } if (property.NameEquals("query")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - query = null; - continue; - } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs index dcb5b1ec8269c..7cf0856989ed7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs @@ -5,18 +5,38 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchParameter. - internal partial class ElasticsearchParameter + public partial class ElasticsearchParameter { /// Initializes a new instance of ElasticsearchParameter. /// Host. /// Port. /// Authorization header. /// Query. + /// , , , or is null. public ElasticsearchParameter(string host, string port, string authHeader, string query) { + if (host == null) + { + throw new ArgumentNullException(nameof(host)); + } + if (port == null) + { + throw new ArgumentNullException(nameof(port)); + } + if (authHeader == null) + { + throw new ArgumentNullException(nameof(authHeader)); + } + if (query == null) + { + throw new ArgumentNullException(nameof(query)); + } + Host = host; Port = port; AuthHeader = authHeader; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs index 37f0ef3393a72..4e1b451802893 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class EmailHookInfoPatch : IUtf8JsonSerializable + public partial class EmailHookInfoPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs index 94cdacef93b59..e1f9a6280e56e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EmailHookInfoPatch. - internal partial class EmailHookInfoPatch : HookInfoPatch + public partial class EmailHookInfoPatch : HookInfoPatch { /// Initializes a new instance of EmailHookInfoPatch. public EmailHookInfoPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs index 526038c2d5bae..8c265e783a6e3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class EmailHookParameter : IUtf8JsonSerializable + public partial class EmailHookParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs index 94aacd61ddee5..584ba8069a222 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EmailHookParameter. - internal partial class EmailHookParameter + public partial class EmailHookParameter { /// Initializes a new instance of EmailHookParameter. /// Email TO: list. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs index 6f2670291a468..c0ea060e6625d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs @@ -15,13 +15,18 @@ public partial class EnrichmentStatus { internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element) { - DateTimeOffset timestamp = default; - string status = default; - string message = default; + Optional timestamp = default; + Optional status = default; + Optional message = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("timestamp")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } @@ -36,7 +41,7 @@ internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element continue; } } - return new EnrichmentStatus(timestamp, status, message); + return new EnrichmentStatus(timestamp, status.Value, message.Value); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs index 3a83508c36f9e..723b789f710f4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs @@ -12,22 +12,17 @@ namespace Azure.AI.MetricsAdvisor.Models /// The EnrichmentStatus. public partial class EnrichmentStatus { + /// Initializes a new instance of EnrichmentStatus. + internal EnrichmentStatus() + { + } + /// 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. internal EnrichmentStatus(DateTimeOffset timestamp, string status, string message) { - if (status == null) - { - throw new ArgumentNullException(nameof(status)); - } - if (message == null) - { - throw new ArgumentNullException(nameof(message)); - } - Timestamp = timestamp; Status = status; Message = message; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs index b18d5c818ca25..24b3404e63b42 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class EnrichmentStatusQueryOption : IUtf8JsonSerializable + public partial class EnrichmentStatusQueryOption : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs index 2a0dffb5d023a..0764451520e60 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EnrichmentStatusQueryOption. - internal partial class EnrichmentStatusQueryOption + public partial class EnrichmentStatusQueryOption { /// Initializes a new instance of EnrichmentStatusQueryOption. /// the start point of time range to query anomaly detection status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs index b363652d34ac4..7ec601d7a3fef 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class HttpRequestDataFeed : IUtf8JsonSerializable + public partial class HttpRequestDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static HttpRequestDataFeed DeserializeHttpRequestDataFeed(JsonElement e string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static HttpRequestDataFeed DeserializeHttpRequestDataFeed(JsonElement e { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs index 205b7ddca8671..bd9af6bd85edc 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestDataFeed. - internal partial class HttpRequestDataFeed : DataFeedDetail + public partial class HttpRequestDataFeed : DataFeedDetail { /// Initializes a new instance of HttpRequestDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs index 79b81fb1571e6..bfca7f02689e8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class HttpRequestDataFeedPatch : IUtf8JsonSerializable + public partial class HttpRequestDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs index 9bb3be6c926b1..623401ed80fe8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestDataFeedPatch. - internal partial class HttpRequestDataFeedPatch : DataFeedDetailPatch + public partial class HttpRequestDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of HttpRequestDataFeedPatch. public HttpRequestDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs index a742e761a8468..f552ab3b153c1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs @@ -10,47 +10,19 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class HttpRequestParameter : IUtf8JsonSerializable + public partial class HttpRequestParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Url != null) - { - writer.WritePropertyName("url"); - writer.WriteStringValue(Url); - } - else - { - writer.WriteNull("url"); - } - if (HttpHeader != null) - { - writer.WritePropertyName("httpHeader"); - writer.WriteStringValue(HttpHeader); - } - else - { - writer.WriteNull("httpHeader"); - } - if (HttpMethod != null) - { - writer.WritePropertyName("httpMethod"); - writer.WriteStringValue(HttpMethod); - } - else - { - writer.WriteNull("httpMethod"); - } - if (Payload != null) - { - writer.WritePropertyName("payload"); - writer.WriteStringValue(Payload); - } - else - { - writer.WriteNull("payload"); - } + writer.WritePropertyName("url"); + writer.WriteStringValue(Url); + writer.WritePropertyName("httpHeader"); + writer.WriteStringValue(HttpHeader); + writer.WritePropertyName("httpMethod"); + writer.WriteStringValue(HttpMethod); + writer.WritePropertyName("payload"); + writer.WriteStringValue(Payload); writer.WriteEndObject(); } @@ -64,41 +36,21 @@ internal static HttpRequestParameter DeserializeHttpRequestParameter(JsonElement { if (property.NameEquals("url")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - url = null; - continue; - } url = property.Value.GetString(); continue; } if (property.NameEquals("httpHeader")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - httpHeader = null; - continue; - } httpHeader = property.Value.GetString(); continue; } if (property.NameEquals("httpMethod")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - httpMethod = null; - continue; - } httpMethod = property.Value.GetString(); continue; } if (property.NameEquals("payload")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - payload = null; - continue; - } payload = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs index 8988c8a44d2af..082776769a364 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs @@ -5,18 +5,38 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestParameter. - internal partial class HttpRequestParameter + public partial class HttpRequestParameter { /// Initializes a new instance of HttpRequestParameter. /// HTTP URL. /// HTTP header. /// HTTP method. /// HTTP request body. + /// , , , or is null. public HttpRequestParameter(string url, string httpHeader, string httpMethod, string payload) { + if (url == null) + { + throw new ArgumentNullException(nameof(url)); + } + if (httpHeader == null) + { + throw new ArgumentNullException(nameof(httpHeader)); + } + if (httpMethod == null) + { + throw new ArgumentNullException(nameof(httpMethod)); + } + if (payload == null) + { + throw new ArgumentNullException(nameof(payload)); + } + Url = url; HttpHeader = httpHeader; HttpMethod = httpMethod; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs index ae19c4e08e0b3..e6517414d8d63 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class IncidentProperty + public partial class IncidentProperty { internal static IncidentProperty DeserializeIncidentProperty(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs index 43b712c5c8d2f..909ad8b5317ea 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IncidentProperty. - internal partial class IncidentProperty + public partial class IncidentProperty { /// Initializes a new instance of IncidentProperty. /// max severity of latest anomalies in the incident. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs index 28fbb7be8001c..7d24ab636a133 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class InfluxDBDataFeed : IUtf8JsonSerializable + public partial class InfluxDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static InfluxDBDataFeed DeserializeInfluxDBDataFeed(JsonElement element string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static InfluxDBDataFeed DeserializeInfluxDBDataFeed(JsonElement element { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs index e93904d71e8b9..87eab67b546b9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBDataFeed. - internal partial class InfluxDBDataFeed : DataFeedDetail + public partial class InfluxDBDataFeed : DataFeedDetail { /// Initializes a new instance of InfluxDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs index 37454a757055a..e5dc6796be72d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class InfluxDBDataFeedPatch : IUtf8JsonSerializable + public partial class InfluxDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs index 6221d3e3156f6..b5893934dce25 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBDataFeedPatch. - internal partial class InfluxDBDataFeedPatch : DataFeedDetailPatch + public partial class InfluxDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of InfluxDBDataFeedPatch. public InfluxDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs index f3b28abbd6ec4..2ea77383627b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs @@ -10,56 +10,21 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class InfluxDBParameter : IUtf8JsonSerializable + public partial class InfluxDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (Database != null) - { - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - } - else - { - writer.WriteNull("database"); - } - if (UserName != null) - { - writer.WritePropertyName("userName"); - writer.WriteStringValue(UserName); - } - else - { - writer.WriteNull("userName"); - } - if (Password != null) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(Password); - } - else - { - writer.WriteNull("password"); - } - if (Query != null) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); - } - else - { - writer.WriteNull("query"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + writer.WritePropertyName("userName"); + writer.WriteStringValue(UserName); + writer.WritePropertyName("password"); + writer.WriteStringValue(Password); + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); writer.WriteEndObject(); } @@ -74,51 +39,26 @@ internal static InfluxDBParameter DeserializeInfluxDBParameter(JsonElement eleme { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("database")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - database = null; - continue; - } database = property.Value.GetString(); continue; } if (property.NameEquals("userName")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - userName = null; - continue; - } userName = property.Value.GetString(); continue; } if (property.NameEquals("password")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - password = null; - continue; - } password = property.Value.GetString(); continue; } if (property.NameEquals("query")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - query = null; - continue; - } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs index ff96728c6e4ed..fba2d33acd55b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs @@ -5,10 +5,12 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBParameter. - internal partial class InfluxDBParameter + public partial class InfluxDBParameter { /// Initializes a new instance of InfluxDBParameter. /// InfluxDB connection string. @@ -16,8 +18,30 @@ internal partial class InfluxDBParameter /// Database access user. /// Database access password. /// Query script. + /// , , , , or is null. public InfluxDBParameter(string connectionString, string database, string userName, string password, string query) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (database == null) + { + throw new ArgumentNullException(nameof(database)); + } + if (userName == null) + { + throw new ArgumentNullException(nameof(userName)); + } + if (password == null) + { + throw new ArgumentNullException(nameof(password)); + } + if (query == null) + { + throw new ArgumentNullException(nameof(query)); + } + ConnectionString = connectionString; Database = database; UserName = userName; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs index 70cf9d41d3bd7..c0d96732bfa07 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class IngestionProgressResetOptions : IUtf8JsonSerializable + public partial class IngestionProgressResetOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs index cadb76eb7e049..23057faafb942 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IngestionProgressResetOptions. - internal partial class IngestionProgressResetOptions + public partial class IngestionProgressResetOptions { /// Initializes a new instance of IngestionProgressResetOptions. /// the start point of time range to reset data ingestion status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs index e678915a8beb0..ecdad52ce6b17 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class IngestionStatusQueryOptions : IUtf8JsonSerializable + public partial class IngestionStatusQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs index 06b94d11d546f..1eb021892061d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IngestionStatusQueryOptions. - internal partial class IngestionStatusQueryOptions + public partial class IngestionStatusQueryOptions { /// Initializes a new instance of IngestionStatusQueryOptions. /// the start point of time range to query data ingestion status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs index 2fbd384418916..0fda43167d653 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs @@ -33,27 +33,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } if (Optional.IsDefined(AnomalyDetectionConfigurationId)) { - if (AnomalyDetectionConfigurationId != null) - { - writer.WritePropertyName("anomalyDetectionConfigurationId"); - writer.WriteStringValue(AnomalyDetectionConfigurationId); - } - else - { - writer.WriteNull("anomalyDetectionConfigurationId"); - } + writer.WritePropertyName("anomalyDetectionConfigurationId"); + writer.WriteStringValue(AnomalyDetectionConfigurationId); } if (Optional.IsDefined(AnomalyDetectionConfigurationSnapshot)) { - if (AnomalyDetectionConfigurationSnapshot != null) - { - writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); - writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); - } - else - { - writer.WriteNull("anomalyDetectionConfigurationSnapshot"); - } + writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); + writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); } writer.WritePropertyName("feedbackType"); writer.WriteStringValue(Type.ToString()); @@ -111,11 +97,6 @@ internal static MetricAnomalyFeedback DeserializeMetricAnomalyFeedback(JsonEleme } if (property.NameEquals("anomalyDetectionConfigurationId")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - anomalyDetectionConfigurationId = null; - continue; - } anomalyDetectionConfigurationId = property.Value.GetString(); continue; } @@ -123,7 +104,7 @@ internal static MetricAnomalyFeedback DeserializeMetricAnomalyFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - anomalyDetectionConfigurationSnapshot = null; + property.ThrowNonNullablePropertyIsNull(); continue; } anomalyDetectionConfigurationSnapshot = AnomalyDetectionConfiguration.DeserializeAnomalyDetectionConfiguration(property.Value); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs index 639a1c2fe4f7f..0fb9447e36673 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs @@ -18,27 +18,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(StartTime)) { - if (StartTime != null) - { - writer.WritePropertyName("startTime"); - writer.WriteStringValue(StartTime.Value, "O"); - } - else - { - writer.WriteNull("startTime"); - } + writer.WritePropertyName("startTime"); + writer.WriteStringValue(StartTime.Value, "O"); } if (Optional.IsDefined(EndTime)) { - if (EndTime != null) - { - writer.WritePropertyName("endTime"); - writer.WriteStringValue(EndTime.Value, "O"); - } - else - { - writer.WriteNull("endTime"); - } + writer.WritePropertyName("endTime"); + writer.WriteStringValue(EndTime.Value, "O"); } if (Optional.IsDefined(ValueInternal)) { @@ -56,8 +42,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonElement element) { - Optional startTime = default; - Optional endTime = default; + Optional startTime = default; + Optional endTime = default; Optional value = default; FeedbackType feedbackType = default; Optional feedbackId = default; @@ -71,7 +57,7 @@ internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - startTime = null; + property.ThrowNonNullablePropertyIsNull(); continue; } startTime = property.Value.GetDateTimeOffset("O"); @@ -81,7 +67,7 @@ internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - endTime = null; + property.ThrowNonNullablePropertyIsNull(); continue; } endTime = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs index faec053995edd..3fa459fd44c14 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricDataList + public partial class MetricDataList { internal static MetricDataList DeserializeMetricDataList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs index fe559995517c7..aba68a1a8911e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDataList. - internal partial class MetricDataList + public partial class MetricDataList { /// Initializes a new instance of MetricDataList. internal MetricDataList() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs index c72622bc0cb0a..d417c633e249e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricDataQueryOptions : IUtf8JsonSerializable + public partial class MetricDataQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs index 3e4548cbd2308..775bd947f4d10 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDataQueryOptions. - internal partial class MetricDataQueryOptions + public partial class MetricDataQueryOptions { /// Initializes a new instance of MetricDataQueryOptions. /// start time of query a time series data, and format should be yyyy-MM-ddThh:mm:ssZ. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs index 8ca7436c87f6b..2e6c93077f51a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricDimensionQueryOptions : IUtf8JsonSerializable + public partial class MetricDimensionQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs index 9544d9e5a15eb..b25d562e6a631 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDimensionQueryOptions. - internal partial class MetricDimensionQueryOptions + public partial class MetricDimensionQueryOptions { /// Initializes a new instance of MetricDimensionQueryOptions. /// dimension name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs index fcb1aef7a9611..cc9802e562d7f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricFeedbackFilter : IUtf8JsonSerializable + public partial class MetricFeedbackFilter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs index 1651d9ec1c373..691bed700ed5e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricFeedbackFilter. - internal partial class MetricFeedbackFilter + public partial class MetricFeedbackFilter { /// Initializes a new instance of MetricFeedbackFilter. /// filter feedbacks by metric id. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs index 841530b7c7e60..1c99556db2ee0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs @@ -16,18 +16,28 @@ public partial class MetricSeriesData { internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element) { - MetricSeriesDefinition id = default; - IReadOnlyList timestampList = default; - IReadOnlyList valueList = default; + Optional id = default; + Optional> timestampList = default; + Optional> valueList = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } id = MetricSeriesDefinition.DeserializeMetricSeriesDefinition(property.Value); continue; } if (property.NameEquals("timestampList")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -38,6 +48,11 @@ internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element } if (property.NameEquals("valueList")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -47,7 +62,7 @@ internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element continue; } } - return new MetricSeriesData(id, timestampList, valueList); + return new MetricSeriesData(id.Value, Optional.ToList(timestampList), Optional.ToList(valueList)); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs index 19f88d2b36b0f..fae3a1eb02d1f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using System.Linq; +using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { @@ -15,28 +15,10 @@ namespace Azure.AI.MetricsAdvisor.Models public partial class MetricSeriesData { /// Initializes a new instance of MetricSeriesData. - /// . - /// timestamps of the data related to this time series. - /// values of the data related to this time series. - /// , , or is null. - internal MetricSeriesData(MetricSeriesDefinition definition, IEnumerable timestamps, IEnumerable values) + internal MetricSeriesData() { - if (definition == null) - { - throw new ArgumentNullException(nameof(definition)); - } - if (timestamps == null) - { - throw new ArgumentNullException(nameof(timestamps)); - } - if (values == null) - { - throw new ArgumentNullException(nameof(values)); - } - - Definition = definition; - Timestamps = timestamps.ToList(); - Values = values.ToList(); + Timestamps = new ChangeTrackingList(); + Values = new ChangeTrackingList(); } /// Initializes a new instance of MetricSeriesData. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs index 503f4ee6da363..6036c85a7beae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs @@ -15,8 +15,8 @@ public partial class MetricSeriesDefinition { internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonElement element) { - string metricId = default; - IReadOnlyDictionary dimension = default; + Optional metricId = default; + Optional> dimension = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("metricId")) @@ -26,6 +26,11 @@ internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonEle } if (property.NameEquals("dimension")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { @@ -35,7 +40,7 @@ internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonEle continue; } } - return new MetricSeriesDefinition(metricId, dimension); + return new MetricSeriesDefinition(metricId.Value, Optional.ToDictionary(dimension)); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs index 5a4c25b6a1a1a..18ac1b8b1ab90 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs @@ -5,29 +5,25 @@ #nullable disable -using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { /// The MetricSeriesItem. public partial class MetricSeriesDefinition { + /// Initializes a new instance of MetricSeriesDefinition. + internal MetricSeriesDefinition() + { + Dimension = new ChangeTrackingDictionary(); + } + /// Initializes a new instance of MetricSeriesDefinition. /// metric unique id. /// dimension name and value pair. - /// or is null. internal MetricSeriesDefinition(string metricId, IReadOnlyDictionary dimension) { - if (metricId == null) - { - throw new ArgumentNullException(nameof(metricId)); - } - if (dimension == null) - { - throw new ArgumentNullException(nameof(dimension)); - } - MetricId = metricId; Dimension = dimension; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs index dc890b573d3dd..9ebc2f23b9691 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricSeriesQueryOptions : IUtf8JsonSerializable + public partial class MetricSeriesQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs index 9204c87f9135c..94ea61fe94378 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricSeriesQueryOptions. - internal partial class MetricSeriesQueryOptions + public partial class MetricSeriesQueryOptions { /// Initializes a new instance of MetricSeriesQueryOptions. /// query series ingested after this time, the format should be yyyy-MM-ddTHH:mm:ssZ. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs index ee5af8841efa7..3c38adf0c4f15 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MongoDBDataFeed : IUtf8JsonSerializable + public partial class MongoDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static MongoDBDataFeed DeserializeMongoDBDataFeed(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static MongoDBDataFeed DeserializeMongoDBDataFeed(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs index e28593e0114b9..70af3cde05275 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBDataFeed. - internal partial class MongoDBDataFeed : DataFeedDetail + public partial class MongoDBDataFeed : DataFeedDetail { /// Initializes a new instance of MongoDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs index e0838288c6fdb..3c81918ab0433 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MongoDBDataFeedPatch : IUtf8JsonSerializable + public partial class MongoDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs index a8d5ee0490d49..5c256c47fc438 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBDataFeedPatch. - internal partial class MongoDBDataFeedPatch : DataFeedDetailPatch + public partial class MongoDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of MongoDBDataFeedPatch. public MongoDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs index e366b8b91d0ff..65a9149c938db 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs @@ -10,38 +10,17 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MongoDBParameter : IUtf8JsonSerializable + public partial class MongoDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (Database != null) - { - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - } - else - { - writer.WriteNull("database"); - } - if (Command != null) - { - writer.WritePropertyName("command"); - writer.WriteStringValue(Command); - } - else - { - writer.WriteNull("command"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + writer.WritePropertyName("command"); + writer.WriteStringValue(Command); writer.WriteEndObject(); } @@ -54,31 +33,16 @@ internal static MongoDBParameter DeserializeMongoDBParameter(JsonElement element { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("database")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - database = null; - continue; - } database = property.Value.GetString(); continue; } if (property.NameEquals("command")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - command = null; - continue; - } command = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs index 33c1428c8c3ec..f814ff414e490 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs @@ -5,17 +5,33 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBParameter. - internal partial class MongoDBParameter + public partial class MongoDBParameter { /// Initializes a new instance of MongoDBParameter. /// MongoDB connection string. /// Database name. /// Query script. + /// , , or is null. public MongoDBParameter(string connectionString, string database, string command) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (database == null) + { + throw new ArgumentNullException(nameof(database)); + } + if (command == null) + { + throw new ArgumentNullException(nameof(command)); + } + ConnectionString = connectionString; Database = database; Command = command; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs index 83e69e6ef1d0c..067b0d5b8fd37 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MySqlDataFeed : IUtf8JsonSerializable + public partial class MySqlDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static MySqlDataFeed DeserializeMySqlDataFeed(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static MySqlDataFeed DeserializeMySqlDataFeed(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs index 8cc0ec01aacd4..9caf78760ff55 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MySqlDataFeed. - internal partial class MySqlDataFeed : DataFeedDetail + public partial class MySqlDataFeed : DataFeedDetail { /// Initializes a new instance of MySqlDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs index 8d42bbe14559e..4c6c2b60d2955 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MySqlDataFeedPatch : IUtf8JsonSerializable + public partial class MySqlDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs index 549ad2e32f912..4935bbb80c5e8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MySqlDataFeedPatch. - internal partial class MySqlDataFeedPatch : DataFeedDetailPatch + public partial class MySqlDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of MySqlDataFeedPatch. public MySqlDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs index 13adea59eb5e3..c4150167d1502 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class PeriodFeedbackValue : IUtf8JsonSerializable + public partial class PeriodFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs index 00cc06fe8171d..07a03da8e1958 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PeriodFeedbackValue. - internal partial class PeriodFeedbackValue + public partial class PeriodFeedbackValue { /// Initializes a new instance of PeriodFeedbackValue. /// the type of setting period. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs index d0e3ff7533536..ac5c42187ec2c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class PostgreSqlDataFeed : IUtf8JsonSerializable + public partial class PostgreSqlDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static PostgreSqlDataFeed DeserializePostgreSqlDataFeed(JsonElement ele string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static PostgreSqlDataFeed DeserializePostgreSqlDataFeed(JsonElement ele { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs index cc255c53bfecf..ffc7e15be5190 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PostgreSqlDataFeed. - internal partial class PostgreSqlDataFeed : DataFeedDetail + public partial class PostgreSqlDataFeed : DataFeedDetail { /// Initializes a new instance of PostgreSqlDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs index 2581b10d662d5..feb7f26d63a6b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class PostgreSqlDataFeedPatch : IUtf8JsonSerializable + public partial class PostgreSqlDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs index 9793d333d0b61..5be94f81161e7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PostgreSqlDataFeedPatch. - internal partial class PostgreSqlDataFeedPatch : DataFeedDetailPatch + public partial class PostgreSqlDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of PostgreSqlDataFeedPatch. public PostgreSqlDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs index c3b2e051b0f71..697c2177e1e34 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class RootCauseList + public partial class RootCauseList { internal static RootCauseList DeserializeRootCauseList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs index 2513a4222498f..af420e66ccc9c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The RootCauseList. - internal partial class RootCauseList + public partial class RootCauseList { /// Initializes a new instance of RootCauseList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs index 56c1974bf6fed..43b7ea324e5ea 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SQLServerDataFeed : IUtf8JsonSerializable + public partial class SQLServerDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - if (GranularityAmount != null) - { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); - } - else - { - writer.WriteNull("granularityAmount"); - } + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -165,7 +158,7 @@ internal static SQLServerDataFeed DeserializeSQLServerDataFeed(JsonElement eleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -229,7 +222,7 @@ internal static SQLServerDataFeed DeserializeSQLServerDataFeed(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { - granularityAmount = null; + property.ThrowNonNullablePropertyIsNull(); continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs index 0abdb8946297f..47eaf45272b12 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SQLServerDataFeed. - internal partial class SQLServerDataFeed : DataFeedDetail + public partial class SQLServerDataFeed : DataFeedDetail { /// Initializes a new instance of SQLServerDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs index cd56631fbe389..ca158c86ffbc5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SQLServerDataFeedPatch : IUtf8JsonSerializable + public partial class SQLServerDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs index d20647370493d..a54b8b3dc5eaa 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SQLServerDataFeedPatch. - internal partial class SQLServerDataFeedPatch : DataFeedDetailPatch + public partial class SQLServerDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of SQLServerDataFeedPatch. public SQLServerDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs index 4fbd7b7667e8e..9615d6bdf7313 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SeriesIdentity : IUtf8JsonSerializable + public partial class SeriesIdentity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs index 8985c72900736..12af8f484ae18 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeriesIdentity. - internal partial class SeriesIdentity + public partial class SeriesIdentity { /// Initializes a new instance of SeriesIdentity. /// dimension specified for series. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs index d24bc4d14c35e..cc7fa879f8ced 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SeriesResultList + public partial class SeriesResultList { internal static SeriesResultList DeserializeSeriesResultList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs index 96c9ca1c8776e..301e585304d89 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeriesResultList. - internal partial class SeriesResultList + public partial class SeriesResultList { /// Initializes a new instance of SeriesResultList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs index 5f5cbd0552e1f..ddd02a6012888 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SeverityFilterCondition : IUtf8JsonSerializable + public partial class SeverityFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs index 882ddced0703b..f5276163f8ab6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeverityFilterCondition. - internal partial class SeverityFilterCondition + public partial class SeverityFilterCondition { /// Initializes a new instance of SeverityFilterCondition. /// min severity. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs index 7ff8b429a540e..406ef1c61e12a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs @@ -10,29 +10,15 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class SqlSourceParameter : IUtf8JsonSerializable + public partial class SqlSourceParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (ConnectionString != null) - { - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - } - else - { - writer.WriteNull("connectionString"); - } - if (Query != null) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); - } - else - { - writer.WriteNull("query"); - } + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); writer.WriteEndObject(); } @@ -44,21 +30,11 @@ internal static SqlSourceParameter DeserializeSqlSourceParameter(JsonElement ele { if (property.NameEquals("connectionString")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - connectionString = null; - continue; - } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("query")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - query = null; - continue; - } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs index 49a4fb9d04b95..6214873dcabc2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs @@ -5,16 +5,28 @@ #nullable disable +using System; + namespace Azure.AI.MetricsAdvisor.Models { /// The SqlSourceParameter. - internal partial class SqlSourceParameter + public partial class SqlSourceParameter { /// Initializes a new instance of SqlSourceParameter. /// Database connection string. /// Query script. + /// or is null. public SqlSourceParameter(string connectionString, string query) { + if (connectionString == null) + { + throw new ArgumentNullException(nameof(connectionString)); + } + if (query == null) + { + throw new ArgumentNullException(nameof(query)); + } + ConnectionString = connectionString; Query = query; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs index 6f4ce4943ccc0..3af75a2a69b91 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class UsageStats + public partial class UsageStats { internal static UsageStats DeserializeUsageStats(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs index 334435862df75..2ed1c60fb4797 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The UsageStats. - internal partial class UsageStats + public partial class UsageStats { /// Initializes a new instance of UsageStats. internal UsageStats() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs index 77ccc779a6341..e9f170efec2d1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class WebhookHookInfoPatch : IUtf8JsonSerializable + public partial class WebhookHookInfoPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs index 8bd564a6ec351..e4f98bf91b136 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The WebhookHookInfoPatch. - internal partial class WebhookHookInfoPatch : HookInfoPatch + public partial class WebhookHookInfoPatch : HookInfoPatch { /// Initializes a new instance of WebhookHookInfoPatch. public WebhookHookInfoPatch() diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/ContainerRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/ContainerRestClient.cs index 642d6c0b9f847..dddc2eda396dd 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/ContainerRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/ContainerRestClient.cs @@ -680,7 +680,6 @@ internal HttpMessage CreateSubmitBatchRequest(long contentLength, string multipa request.Headers.Add("Accept", "application/xml"); request.Headers.Add("Content-Length", contentLength); request.Headers.Add("Content-Type", multipartContentType); - request.Headers.Add("Content-Type", "application/xml"); request.Content = RequestContent.Create(body); return message; } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs index f469d1cab578e..ce49f2cd97746 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs @@ -506,7 +506,6 @@ internal HttpMessage CreateSubmitBatchRequest(long contentLength, string multipa request.Headers.Add("Accept", "application/xml"); request.Headers.Add("Content-Length", contentLength); request.Headers.Add("Content-Type", multipartContentType); - request.Headers.Add("Content-Type", "application/xml"); request.Content = RequestContent.Create(body); return message; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs index 8099a246ccce5..086c41e87f6fa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs @@ -21,21 +21,11 @@ internal static DetectedLanguageInternal DeserializeDetectedLanguageInternal(Jso { if (property.NameEquals("name")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - name = null; - continue; - } name = property.Value.GetString(); continue; } if (property.NameEquals("iso6391Name")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - iso6391Name = null; - continue; - } iso6391Name = property.Value.GetString(); continue; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs index 4b54206d97268..7e9aadfa2aea1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.AI.TextAnalytics.Models { /// The DetectedLanguage. @@ -14,8 +16,18 @@ internal readonly partial struct DetectedLanguageInternal /// Long name of a detected language (e.g. English, French). /// A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr). /// A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. + /// or is null. internal DetectedLanguageInternal(string name, string iso6391Name, double confidenceScore) { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (iso6391Name == null) + { + throw new ArgumentNullException(nameof(iso6391Name)); + } + Name = name; Iso6391Name = iso6391Name; ConfidenceScore = confidenceScore; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs index 0e6406dc2200d..c386567e7da41 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class DocumentEntities + public partial class DocumentEntities { internal static DocumentEntities DeserializeDocumentEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs index f754a58757948..0938a1fea2c90 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentEntities. - internal partial class DocumentEntities + public partial class DocumentEntities { /// Initializes a new instance of DocumentEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs index 7c74386d95bf9..327df9d631183 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class DocumentError + public partial class DocumentError { internal static DocumentError DeserializeDocumentError(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs index e779c0f15ded5..541085aea8b5d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentError. - internal partial class DocumentError + public partial class DocumentError { /// Initializes a new instance of DocumentError. /// Document Id. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs index d28fedaa6b9be..cd41250f5303b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class DocumentKeyPhrases + public partial class DocumentKeyPhrases { internal static DocumentKeyPhrases DeserializeDocumentKeyPhrases(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs index 7c0cde854dbb2..6080199bf4474 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentKeyPhrases. - internal partial class DocumentKeyPhrases + public partial class DocumentKeyPhrases { /// Initializes a new instance of DocumentKeyPhrases. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs index f29355b6e5de2..8975d0fa1876e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class DocumentLanguage + public partial class DocumentLanguage { internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs index 4bfa460bedcbe..e6b1755b2f1ba 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentLanguage. - internal partial class DocumentLanguage + public partial class DocumentLanguage { /// Initializes a new instance of DocumentLanguage. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs index 62c1edf9ff2db..d9fc4977d0e9b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class DocumentLinkedEntities + public partial class DocumentLinkedEntities { internal static DocumentLinkedEntities DeserializeDocumentLinkedEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs index 1d3ec8abce18f..83bba2de06f70 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentLinkedEntities. - internal partial class DocumentLinkedEntities + public partial class DocumentLinkedEntities { /// Initializes a new instance of DocumentLinkedEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs index 6422d046d3473..4c57b5d5b3a7f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntitiesResult + public partial class EntitiesResult { internal static EntitiesResult DeserializeEntitiesResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs index fde41810f2710..f46c270cf8929 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntitiesResult. - internal partial class EntitiesResult + public partial class EntitiesResult { /// Initializes a new instance of EntitiesResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs index 649ae0ae1f3ea..04ba580672dcf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntitiesTask : IUtf8JsonSerializable + public partial class EntitiesTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs index 1adaadc70044a..5a5578afd3c0e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntitiesTask. - internal partial class EntitiesTask + public partial class EntitiesTask { /// Initializes a new instance of EntitiesTask. public EntitiesTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs index 94e1ec99bf2bc..506a1bd57c326 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class Entity + public partial class Entity { internal static Entity DeserializeEntity(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs index 56a5002e7305a..20186666456fa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The Entity. - internal partial class Entity + public partial class Entity { /// Initializes a new instance of Entity. /// Entity text as appears in the request. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs index 6b6d1df358b9d..d690d8fbfee1b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntityLinkingResult + public partial class EntityLinkingResult { internal static EntityLinkingResult DeserializeEntityLinkingResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs index f6e8d9efd823f..e111aa4b1d5d1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntityLinkingResult. - internal partial class EntityLinkingResult + public partial class EntityLinkingResult { /// Initializes a new instance of EntityLinkingResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs index 73b4985cb8f11..a35787843e37a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntityLinkingTask : IUtf8JsonSerializable + public partial class EntityLinkingTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs index f338c593e48ad..78c45ad37528d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntityLinkingTask. - internal partial class EntityLinkingTask + public partial class EntityLinkingTask { /// Initializes a new instance of EntityLinkingTask. public EntityLinkingTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs index 2f17bcbdcd03a..523b3934919cb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class JobDescriptor : IUtf8JsonSerializable + public partial class JobDescriptor : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs index 1c8f028ed44e6..f3c9fc07c64a4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The JobDescriptor. - internal partial class JobDescriptor + public partial class JobDescriptor { /// Initializes a new instance of JobDescriptor. public JobDescriptor() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs index 82749d35315f6..93083df67dbf1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class JobManifest : IUtf8JsonSerializable + public partial class JobManifest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs index 472c310b30f62..2af6bc29fd8be 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs @@ -11,7 +11,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The JobManifest. - internal partial class JobManifest + public partial class JobManifest { /// Initializes a new instance of JobManifest. /// The set of tasks to execute on the input documents. Cannot specify the same task more than once. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs index 7b59eed439d42..68f5dc72c04eb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class KeyPhraseResult + public partial class KeyPhraseResult { internal static KeyPhraseResult DeserializeKeyPhraseResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs index 0359a5add1036..62fc12f4ab9bd 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The KeyPhraseResult. - internal partial class KeyPhraseResult + public partial class KeyPhraseResult { /// Initializes a new instance of KeyPhraseResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs index 7404db43068e9..0f0e9556214fc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class KeyPhrasesTask : IUtf8JsonSerializable + public partial class KeyPhrasesTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs index 010f11ef9494f..00a8f9cabaaec 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The KeyPhrasesTask. - internal partial class KeyPhrasesTask + public partial class KeyPhrasesTask { /// Initializes a new instance of KeyPhrasesTask. public KeyPhrasesTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs index c3055214c7643..51ead482b2882 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class LanguageBatchInput : IUtf8JsonSerializable + public partial class LanguageBatchInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs index 9fd3d08296049..a678ae788f9d3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The LanguageBatchInput. - internal partial class LanguageBatchInput + public partial class LanguageBatchInput { /// Initializes a new instance of LanguageBatchInput. /// . diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs index 30c461c280df0..4ea2a4181f488 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs @@ -10,29 +10,15 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class LanguageInput : IUtf8JsonSerializable + public partial class LanguageInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Id != null) - { - writer.WritePropertyName("id"); - writer.WriteStringValue(Id); - } - else - { - writer.WriteNull("id"); - } - if (Text != null) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(Text); - } - else - { - writer.WriteNull("text"); - } + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + writer.WritePropertyName("text"); + writer.WriteStringValue(Text); if (Optional.IsDefined(CountryHint)) { writer.WritePropertyName("countryHint"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs index e7992b59911b8..9f09aba1c60d8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs @@ -5,16 +5,28 @@ #nullable disable +using System; + namespace Azure.AI.TextAnalytics.Models { /// The LanguageInput. - internal partial class LanguageInput + public partial class LanguageInput { /// Initializes a new instance of LanguageInput. /// Unique, non-empty document identifier. /// . + /// or is null. public LanguageInput(string id, string text) { + if (id == null) + { + throw new ArgumentNullException(nameof(id)); + } + if (text == null) + { + throw new ArgumentNullException(nameof(text)); + } + Id = id; Text = text; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs index 93f03dbc75d15..8af937ed0d75b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class LanguageResult + public partial class LanguageResult { internal static LanguageResult DeserializeLanguageResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs index 62fe3d1a694ea..5bf853706f2a1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The LanguageResult. - internal partial class LanguageResult + public partial class LanguageResult { /// Initializes a new instance of LanguageResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs index 61c15a7d5fb2b..04cdfd5c1813b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class MultiLanguageBatchInput : IUtf8JsonSerializable + public partial class MultiLanguageBatchInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs index f03ac8d5d9bd2..10c7c48614a76 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Contains a set of input documents to be analyzed by the service. - internal partial class MultiLanguageBatchInput + public partial class MultiLanguageBatchInput { /// Initializes a new instance of MultiLanguageBatchInput. /// The set of documents to process as part of this batch. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs index 10928df43be23..f121ab08f9514 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class MultiLanguageInput : IUtf8JsonSerializable + public partial class MultiLanguageInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs index 14db71884db5f..bfd062e488ae4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Contains an input document to be analyzed by the service. - internal partial class MultiLanguageInput + public partial class MultiLanguageInput { /// Initializes a new instance of MultiLanguageInput. /// A unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs index 16b147dc33128..197a1bac0b12d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class PiiDocumentEntities + public partial class PiiDocumentEntities { internal static PiiDocumentEntities DeserializePiiDocumentEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs index abd3230d01181..83f58bdac1d25 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The PiiDocumentEntities. - internal partial class PiiDocumentEntities + public partial class PiiDocumentEntities { /// Initializes a new instance of PiiDocumentEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs index 6f2adbf4dc6d1..b5d528514db00 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class PiiTask : IUtf8JsonSerializable + public partial class PiiTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs index 0bb15ca2db21c..31fa21b7a6947 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The PiiTask. - internal partial class PiiTask + public partial class PiiTask { /// Initializes a new instance of PiiTask. public PiiTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs index e90d143b9d900..058eb8f08edc0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class SentimentResponse + public partial class SentimentResponse { internal static SentimentResponse DeserializeSentimentResponse(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs index 4735339b50990..5f0c3199dde34 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The SentimentResponse. - internal partial class SentimentResponse + public partial class SentimentResponse { /// Initializes a new instance of SentimentResponse. /// Sentiment analysis per document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs index 1e5e230a3c57b..8f3211eeb584a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class TargetConfidenceScoreLabel + public partial class TargetConfidenceScoreLabel { internal static TargetConfidenceScoreLabel DeserializeTargetConfidenceScoreLabel(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs index f178ab4eea6d8..04fde97ce2937 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Represents the confidence scores across all sentiment classes: positive, neutral, negative. - internal partial class TargetConfidenceScoreLabel + public partial class TargetConfidenceScoreLabel { /// Initializes a new instance of TargetConfidenceScoreLabel. /// . diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs index a191710716276..bf26f540e8f5f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class TargetRelation + public partial class TargetRelation { internal static TargetRelation DeserializeTargetRelation(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs index 0306466e923ef..3854f2ba0c512 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The TargetRelation. - internal partial class TargetRelation + public partial class TargetRelation { /// Initializes a new instance of TargetRelation. /// The type related to the target. diff --git a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs index a6ade4f7ed09f..c235490c744c6 100644 --- a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.Iot.TimeSeriesInsights { - internal partial class UpdateModelSettingsRequest : IUtf8JsonSerializable + public partial class UpdateModelSettingsRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs index 2bcabf687e321..3056d135d4a20 100644 --- a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs +++ b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs @@ -8,7 +8,7 @@ namespace Azure.Iot.TimeSeriesInsights { /// Request to update model settings. One of "name" or "defaultTypeId" must be set. - internal partial class UpdateModelSettingsRequest + public partial class UpdateModelSettingsRequest { /// Initializes a new instance of UpdateModelSettingsRequest. public UpdateModelSettingsRequest() From c7921c279e59ab911e149e58351ee0d90a577bb0 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 15:05:17 -0800 Subject: [PATCH 2/8] Revert App config --- eng/Packages.Data.props | 2 +- .../src/Generated/CodeModel.yaml | 4878 +++++++++++++++++ .../src/Generated/Configuration.json | 1 + .../EncryptionProperties.Serialization.cs | 13 +- .../src/autorest.md | 1 + 5 files changed, 4891 insertions(+), 4 deletions(-) create mode 100644 sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml create mode 100644 sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index c7c0afff50eb5..17e2a1632ade9 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -122,7 +122,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml new file mode 100644 index 0000000000000..30bfcda395a0f --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml @@ -0,0 +1,4878 @@ +!CodeModel +info: !Info + title: AppConfigurationManagementClient +schemas: !Schemas + booleans: + - !BooleanSchema &ref_43 + type: boolean + language: !Languages + default: + name: Boolean + description: The value indicating whether the resource name is available. + protocol: !Protocols {} + - !BooleanSchema &ref_51 + type: boolean + language: !Languages + default: + name: Boolean + description: Whether this key can only be used for read operations. + protocol: !Protocols {} + - !BooleanSchema &ref_71 + type: boolean + language: !Languages + default: + name: Boolean + description: "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked." + protocol: !Protocols {} + strings: + - !StringSchema &ref_0 + type: string + language: !Languages + default: + name: String + description: simple string + protocol: !Protocols {} + - !StringSchema &ref_3 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_1 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: UserIdentityPrincipalId + description: The principal ID of the user-assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_2 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: UserIdentityClientId + description: The client ID of the user-assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_13 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ResourceIdentityPrincipalId + description: The principal id of the identity. This property will only be provided for a system-assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_14 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ResourceIdentityTenantId + description: The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_18 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ConfigurationStorePropertiesEndpoint + description: The DNS endpoint where the configuration store API will be available. + protocol: !Protocols {} + - !StringSchema &ref_19 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyVaultPropertiesKeyIdentifier + description: The URI of the key vault key used to encrypt data. + protocol: !Protocols {} + - !StringSchema &ref_20 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyVaultPropertiesIdentityClientId + description: The client id of the identity which will be used to access key vault. + protocol: !Protocols {} + - !StringSchema &ref_21 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionReferenceId + description: The resource ID. + protocol: !Protocols {} + - !StringSchema &ref_22 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionReferenceName + description: The name of the resource. + protocol: !Protocols {} + - !StringSchema &ref_23 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionReferenceType + description: The type of the resource. + protocol: !Protocols {} + - !StringSchema &ref_24 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointId + description: The resource Id for private endpoint + protocol: !Protocols {} + - !StringSchema &ref_26 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkServiceConnectionStateDescription + description: The private link service connection description. + protocol: !Protocols {} + - !StringSchema &ref_15 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: SkuName + description: The SKU name of the configuration store. + protocol: !Protocols {} + - !StringSchema &ref_5 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ResourceId + description: The resource ID. + protocol: !Protocols {} + - !StringSchema &ref_6 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ResourceName + description: The name of the resource. + protocol: !Protocols {} + - !StringSchema &ref_7 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ResourceType + description: The type of the resource. + protocol: !Protocols {} + - !StringSchema &ref_8 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + extensions: + x-ms-mutability: + - read + - create + language: !Languages + default: + name: ResourceLocation + description: The location of the resource. This cannot be changed after the resource is created. + protocol: !Protocols {} + - !StringSchema &ref_29 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ConfigurationStoreListResultNextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + - !StringSchema &ref_38 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ErrorCode + description: Error code. + protocol: !Protocols {} + - !StringSchema &ref_39 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ErrorMessage + description: Error message. + protocol: !Protocols {} + - !StringSchema &ref_104 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + maxLength: 50 + minLength: 5 + pattern: ^[a-zA-Z0-9_-]*$ + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_41 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: CheckNameAvailabilityParametersName + description: The name to check for availability. + protocol: !Protocols {} + - !StringSchema &ref_44 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: NameAvailabilityStatusMessage + description: If any, the error message that provides more detail for the reason that the name is not available. + protocol: !Protocols {} + - !StringSchema &ref_45 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: NameAvailabilityStatusReason + description: If any, the reason that the name is not available. + protocol: !Protocols {} + - !StringSchema &ref_46 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyId + description: The key ID. + protocol: !Protocols {} + - !StringSchema &ref_47 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyName + description: A name for the key describing its usage. + protocol: !Protocols {} + - !StringSchema &ref_48 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyValue + description: The value of the key that is used for authentication purposes. + protocol: !Protocols {} + - !StringSchema &ref_49 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyConnectionString + description: A connection string that can be used by supporting clients for authentication. + protocol: !Protocols {} + - !StringSchema &ref_52 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyListResultNextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + - !StringSchema &ref_54 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: RegenerateKeyParametersId + description: The id of the key to regenerate. + protocol: !Protocols {} + - !StringSchema &ref_55 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionName + description: 'Operation name: {provider}/{resource}/{operation}.' + protocol: !Protocols {} + - !StringSchema &ref_56 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionDisplayProvider + description: 'The resource provider name: Microsoft App Configuration."' + protocol: !Protocols {} + - !StringSchema &ref_57 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionDisplayResource + description: The resource on which the operation is performed. + protocol: !Protocols {} + - !StringSchema &ref_58 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionDisplayOperation + description: The operation that users can perform. + protocol: !Protocols {} + - !StringSchema &ref_59 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionDisplayDescription + description: The description for the operation. + protocol: !Protocols {} + - !StringSchema &ref_60 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: OperationDefinitionListResultNextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + - !StringSchema &ref_63 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ListKeyValueParametersKey + description: The key to retrieve. + protocol: !Protocols {} + - !StringSchema &ref_64 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ListKeyValueParametersLabel + description: The label of the key. + protocol: !Protocols {} + - !StringSchema &ref_65 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValueKey + description: "The primary identifier of a key-value.\r\nThe key is used in unison with the label to uniquely identify a key-value." + protocol: !Protocols {} + - !StringSchema &ref_66 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValueLabel + description: "A value used to group key-values.\r\nThe label is used in unison with the key to uniquely identify a key-value." + protocol: !Protocols {} + - !StringSchema &ref_67 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValue + description: The value of the key-value. + protocol: !Protocols {} + - !StringSchema &ref_68 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValueContentType + description: "The content type of the key-value's value.\r\nProviding a proper content-type can enable transformations of values when they are retrieved by applications." + protocol: !Protocols {} + - !StringSchema &ref_69 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValueETag + description: An ETag indicating the state of a key-value within a configuration store. + protocol: !Protocols {} + - !StringSchema &ref_73 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionId + description: The resource ID. + protocol: !Protocols {} + - !StringSchema &ref_74 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionName + description: The name of the resource. + protocol: !Protocols {} + - !StringSchema &ref_75 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionType + description: The type of the resource. + protocol: !Protocols {} + - !StringSchema &ref_76 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateEndpointConnectionListResultNextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + - !StringSchema &ref_78 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourceId + description: The resource ID. + protocol: !Protocols {} + - !StringSchema &ref_79 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourceName + description: The name of the resource. + protocol: !Protocols {} + - !StringSchema &ref_80 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourceType + description: The type of the resource. + protocol: !Protocols {} + - !StringSchema &ref_81 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourcePropertiesGroupId + description: The private link resource group id. + protocol: !Protocols {} + - !StringSchema &ref_82 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourcePropertiesRequiredMembersItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_83 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourcePropertiesRequiredZoneNamesItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_84 + type: string + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: PrivateLinkResourceListResultNextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + choices: + - !ChoiceSchema &ref_11 + choices: + - !ChoiceValue + value: None + language: + default: + name: None + description: '' + - !ChoiceValue + value: SystemAssigned + language: + default: + name: SystemAssigned + description: '' + - !ChoiceValue + value: UserAssigned + language: + default: + name: UserAssigned + description: '' + - !ChoiceValue + value: SystemAssigned, UserAssigned + language: + default: + name: SystemAssignedUserAssigned + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: IdentityType + description: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. + protocol: !Protocols {} + - !ChoiceSchema &ref_16 + choices: + - !ChoiceValue + value: Creating + language: + default: + name: Creating + description: '' + - !ChoiceValue + value: Updating + language: + default: + name: Updating + description: '' + - !ChoiceValue + value: Deleting + language: + default: + name: Deleting + description: '' + - !ChoiceValue + value: Succeeded + language: + default: + name: Succeeded + description: '' + - !ChoiceValue + value: Failed + language: + default: + name: Failed + description: '' + - !ChoiceValue + value: Canceled + language: + default: + name: Canceled + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: ProvisioningState + description: The provisioning state of the configuration store. + protocol: !Protocols {} + - !ChoiceSchema &ref_25 + choices: + - !ChoiceValue + value: Pending + language: + default: + name: Pending + description: '' + - !ChoiceValue + value: Approved + language: + default: + name: Approved + description: '' + - !ChoiceValue + value: Rejected + language: + default: + name: Rejected + description: '' + - !ChoiceValue + value: Disconnected + language: + default: + name: Disconnected + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: ConnectionStatus + description: The private link service connection status. + protocol: !Protocols {} + - !ChoiceSchema &ref_27 + choices: + - !ChoiceValue + value: None + language: + default: + name: None + description: '' + - !ChoiceValue + value: Recreate + language: + default: + name: Recreate + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: ActionsRequired + description: Any action that is required beyond basic workflow (approve/ reject/ disconnect) + protocol: !Protocols {} + - !ChoiceSchema &ref_28 + choices: + - !ChoiceValue + value: Enabled + language: + default: + name: Enabled + description: '' + - !ChoiceValue + value: Disabled + language: + default: + name: Disabled + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: PublicNetworkAccess + description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. + protocol: !Protocols {} + - !ChoiceSchema &ref_42 + choices: + - !ChoiceValue + value: Microsoft.AppConfiguration/configurationStores + language: + default: + name: MicrosoftAppConfigurationConfigurationStores + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-06-01' + choiceType: *ref_0 + language: !Languages + default: + name: ConfigurationResourceType + description: The resource type to check for name availability. + protocol: !Protocols {} + constants: + - !ConstantSchema &ref_94 + type: constant + value: !ConstantValue + value: '2020-06-01' + valueType: *ref_0 + language: !Languages + default: + name: ApiVersion20200601 + description: Api Version (2020-06-01) + protocol: !Protocols {} + - !ConstantSchema &ref_98 + type: constant + value: !ConstantValue + value: application/json + valueType: *ref_0 + language: !Languages + default: + name: Accept + description: 'Accept: application/json' + protocol: !Protocols {} + - !ConstantSchema &ref_107 + type: constant + value: !ConstantValue + value: application/json + valueType: *ref_0 + language: !Languages + default: + name: ApplicationJson + description: Content Type 'application/json' + protocol: !Protocols {} + dictionaries: + - !DictionarySchema &ref_12 + type: dictionary + elementType: !ObjectSchema &ref_31 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_1 + readOnly: true + serializedName: principalId + language: !Languages + default: + name: principalId + description: The principal ID of the user-assigned identity. + protocol: !Protocols {} + - !Property + schema: *ref_2 + readOnly: true + serializedName: clientId + language: !Languages + default: + name: clientId + description: The client ID of the user-assigned identity. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: UserIdentity + description: A resource identity that is managed by the user of the service. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ResourceIdentityUserAssignedIdentities + description: >- + The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + protocol: !Protocols {} + - !DictionarySchema &ref_9 + type: dictionary + elementType: *ref_3 + language: !Languages + default: + name: ResourceTags + description: The tags of the resource. + protocol: !Protocols {} + - !DictionarySchema &ref_40 + type: dictionary + elementType: *ref_3 + language: !Languages + default: + name: ConfigurationStoreUpdateParametersTags + description: The ARM resource tags. + protocol: !Protocols {} + - !DictionarySchema &ref_72 + type: dictionary + elementType: *ref_3 + language: !Languages + default: + name: KeyValueTags + description: A dictionary of tags that can help identify what a key-value may be applicable for. + protocol: !Protocols {} + dateTimes: + - !DateTimeSchema &ref_17 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ConfigurationStorePropertiesCreationDate + description: The creation date of configuration store. + protocol: !Protocols {} + - !DateTimeSchema &ref_50 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: ApiKeyLastModified + description: The last time any of the key's properties were modified. + protocol: !Protocols {} + - !DateTimeSchema &ref_70 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2020-06-01' + language: !Languages + default: + name: KeyValueLastModified + description: The last time a modifying operation was performed on the given key-value. + protocol: !Protocols {} + objects: + - !ObjectSchema &ref_100 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ArraySchema &ref_87 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_4 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + parents: !Relations + all: + - !ObjectSchema &ref_10 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + children: !Relations + all: + - *ref_4 + immediate: + - *ref_4 + properties: + - !Property + schema: *ref_5 + readOnly: true + required: false + serializedName: id + language: !Languages + default: + name: id + description: The resource ID. + protocol: !Protocols {} + - !Property + schema: *ref_6 + readOnly: true + required: false + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_7 + readOnly: true + required: false + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_8 + required: true + serializedName: location + language: !Languages + default: + name: location + description: The location of the resource. This cannot be changed after the resource is created. + protocol: !Protocols {} + - !Property + schema: *ref_9 + required: false + serializedName: tags + language: !Languages + default: + name: tags + description: The tags of the resource. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: Resource + description: An Azure resource. + namespace: '' + protocol: !Protocols {} + immediate: + - *ref_10 + properties: + - !Property + schema: !ObjectSchema &ref_30 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_11 + serializedName: type + language: !Languages + default: + name: type + description: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. + protocol: !Protocols {} + - !Property + schema: *ref_12 + serializedName: userAssignedIdentities + language: !Languages + default: + name: userAssignedIdentities + description: >- + The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + protocol: !Protocols {} + - !Property + schema: *ref_13 + readOnly: true + serializedName: principalId + language: !Languages + default: + name: principalId + description: The principal id of the identity. This property will only be provided for a system-assigned identity. + protocol: !Protocols {} + - !Property + schema: *ref_14 + readOnly: true + serializedName: tenantId + language: !Languages + default: + name: tenantId + description: The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: ResourceIdentity + description: An identity that can be associated with a resource. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: identity + language: !Languages + default: + name: identity + description: The managed identity information, if configured. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_37 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_15 + required: true + serializedName: name + language: !Languages + default: + name: name + description: The SKU name of the configuration store. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: Sku + description: Describes a configuration store SKU. + namespace: '' + protocol: !Protocols {} + required: true + serializedName: sku + language: !Languages + default: + name: sku + description: The sku of the configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_16 + flattenedNames: + - properties + - provisioningState + readOnly: true + required: false + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The provisioning state of the configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_17 + flattenedNames: + - properties + - creationDate + readOnly: true + required: false + serializedName: creationDate + language: !Languages + default: + name: creationDate + description: The creation date of configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_18 + flattenedNames: + - properties + - endpoint + readOnly: true + required: false + serializedName: endpoint + language: !Languages + default: + name: endpoint + description: The DNS endpoint where the configuration store API will be available. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_32 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ObjectSchema &ref_33 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_19 + serializedName: keyIdentifier + language: !Languages + default: + name: keyIdentifier + description: The URI of the key vault key used to encrypt data. + protocol: !Protocols {} + - !Property + schema: *ref_20 + serializedName: identityClientId + language: !Languages + default: + name: identityClientId + description: The client id of the identity which will be used to access key vault. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: KeyVaultProperties + description: Settings concerning key vault encryption for a configuration store. + namespace: '' + protocol: !Protocols {} + nullable: true + serializedName: keyVaultProperties + extensions: + x-nullable: true + language: !Languages + default: + name: keyVaultProperties + description: Key vault properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: EncryptionProperties + description: The encryption settings for a configuration store. + namespace: '' + protocol: !Protocols {} + flattenedNames: + - properties + - encryption + required: false + serializedName: encryption + language: !Languages + default: + name: encryption + description: The encryption settings of the configuration store. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_86 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_34 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_21 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The resource ID. + protocol: !Protocols {} + - !Property + schema: *ref_22 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_23 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_16 + flattenedNames: + - properties + - provisioningState + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The provisioning status of the private endpoint connection. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_35 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_24 + serializedName: id + language: !Languages + default: + name: id + description: The resource Id for private endpoint + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: PrivateEndpoint + description: Private endpoint which a connection belongs to. + namespace: '' + protocol: !Protocols {} + flattenedNames: + - properties + - privateEndpoint + serializedName: privateEndpoint + language: !Languages + default: + name: privateEndpoint + description: The resource of private endpoint. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_36 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_25 + serializedName: status + language: !Languages + default: + name: status + description: The private link service connection status. + protocol: !Protocols {} + - !Property + schema: *ref_26 + serializedName: description + language: !Languages + default: + name: description + description: The private link service connection description. + protocol: !Protocols {} + - !Property + schema: *ref_27 + readOnly: true + serializedName: actionsRequired + language: !Languages + default: + name: actionsRequired + description: Any action that is required beyond basic workflow (approve/ reject/ disconnect) + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: PrivateLinkServiceConnectionState + description: The state of a private link service connection. + namespace: '' + protocol: !Protocols {} + flattenedNames: + - properties + - privateLinkServiceConnectionState + serializedName: privateLinkServiceConnectionState + language: !Languages + default: + name: privateLinkServiceConnectionState + description: A collection of information about the state of the connection between service consumer and provider. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: PrivateEndpointConnectionReference + description: A reference to a related private endpoint connection. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ConfigurationStorePropertiesPrivateEndpointConnections + description: The list of private endpoint connections that are set up for this resource. + protocol: !Protocols {} + flattenedNames: + - properties + - privateEndpointConnections + nullable: true + readOnly: true + required: false + serializedName: privateEndpointConnections + language: !Languages + default: + name: privateEndpointConnections + description: The list of private endpoint connections that are set up for this resource. + protocol: !Protocols {} + - !Property + schema: *ref_28 + flattenedNames: + - properties + - publicNetworkAccess + required: false + serializedName: publicNetworkAccess + language: !Languages + default: + name: publicNetworkAccess + description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: ConfigurationStore + description: The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ConfigurationStoreListResultValue + description: The collection value. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The collection value. + protocol: !Protocols {} + - !Property + schema: *ref_29 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ConfigurationStoreListResult + description: The result of a request to list configuration stores. + namespace: '' + protocol: !Protocols {} + - *ref_4 + - *ref_30 + - *ref_31 + - *ref_32 + - *ref_33 + - *ref_34 + - *ref_35 + - *ref_36 + - *ref_37 + - *ref_10 + - !ObjectSchema &ref_101 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_38 + serializedName: code + language: !Languages + default: + name: code + description: Error code. + protocol: !Protocols {} + - !Property + schema: *ref_39 + serializedName: message + language: !Languages + default: + name: message + description: Error message. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - exception + language: !Languages + default: + name: Error + description: AppConfiguration error object. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_113 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_30 + serializedName: identity + language: !Languages + default: + name: identity + description: The managed identity information for the configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_37 + serializedName: sku + language: !Languages + default: + name: sku + description: The SKU of the configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_40 + serializedName: tags + language: !Languages + default: + name: tags + description: The ARM resource tags. + protocol: !Protocols {} + - !Property + schema: *ref_32 + flattenedNames: + - properties + - encryption + serializedName: encryption + language: !Languages + default: + name: encryption + description: The encryption settings of the configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_28 + flattenedNames: + - properties + - publicNetworkAccess + serializedName: publicNetworkAccess + language: !Languages + default: + name: publicNetworkAccess + description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: ConfigurationStoreUpdateParameters + description: The parameters for updating a configuration store. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_130 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_41 + required: true + serializedName: name + language: !Languages + default: + name: name + description: The name to check for availability. + protocol: !Protocols {} + - !Property + schema: *ref_42 + required: true + serializedName: type + language: !Languages + default: + name: type + description: The resource type to check for name availability. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: CheckNameAvailabilityParameters + description: Parameters used for checking whether a resource name is available. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_132 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_43 + readOnly: true + serializedName: nameAvailable + language: !Languages + default: + name: nameAvailable + description: The value indicating whether the resource name is available. + protocol: !Protocols {} + - !Property + schema: *ref_44 + readOnly: true + serializedName: message + language: !Languages + default: + name: message + description: If any, the error message that provides more detail for the reason that the name is not available. + protocol: !Protocols {} + - !Property + schema: *ref_45 + readOnly: true + serializedName: reason + language: !Languages + default: + name: reason + description: If any, the reason that the name is not available. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: NameAvailabilityStatus + description: The result of a request to check the availability of a resource name. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_120 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ArraySchema &ref_88 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_53 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_46 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The key ID. + protocol: !Protocols {} + - !Property + schema: *ref_47 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: A name for the key describing its usage. + protocol: !Protocols {} + - !Property + schema: *ref_48 + readOnly: true + serializedName: value + language: !Languages + default: + name: value + description: The value of the key that is used for authentication purposes. + protocol: !Protocols {} + - !Property + schema: *ref_49 + readOnly: true + serializedName: connectionString + language: !Languages + default: + name: connectionString + description: A connection string that can be used by supporting clients for authentication. + protocol: !Protocols {} + - !Property + schema: *ref_50 + readOnly: true + serializedName: lastModified + language: !Languages + default: + name: lastModified + description: The last time any of the key's properties were modified. + protocol: !Protocols {} + - !Property + schema: *ref_51 + readOnly: true + serializedName: readOnly + language: !Languages + default: + name: readOnly + description: Whether this key can only be used for read operations. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ApiKey + description: An API key used for authenticating with a configuration store endpoint. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ApiKeyListResultValue + description: The collection value. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The collection value. + protocol: !Protocols {} + - !Property + schema: *ref_52 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ApiKeyListResult + description: The result of a request to list API keys. + namespace: '' + protocol: !Protocols {} + - *ref_53 + - !ObjectSchema &ref_121 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_54 + serializedName: id + language: !Languages + default: + name: id + description: The id of the key to regenerate. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: RegenerateKeyParameters + description: The parameters used to regenerate an API key. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_134 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ArraySchema &ref_89 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_61 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_55 + serializedName: name + language: !Languages + default: + name: name + description: 'Operation name: {provider}/{resource}/{operation}.' + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_62 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_56 + readOnly: true + serializedName: provider + language: !Languages + default: + name: provider + description: 'The resource provider name: Microsoft App Configuration."' + protocol: !Protocols {} + - !Property + schema: *ref_57 + serializedName: resource + language: !Languages + default: + name: resource + description: The resource on which the operation is performed. + protocol: !Protocols {} + - !Property + schema: *ref_58 + serializedName: operation + language: !Languages + default: + name: operation + description: The operation that users can perform. + protocol: !Protocols {} + - !Property + schema: *ref_59 + serializedName: description + language: !Languages + default: + name: description + description: The description for the operation. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: OperationDefinitionDisplay + description: The display information for a configuration store operation. + namespace: '' + protocol: !Protocols {} + serializedName: display + language: !Languages + default: + name: display + description: The display information for the configuration store operation. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: OperationDefinition + description: The definition of a configuration store operation. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: OperationDefinitionListResultValue + description: The collection value. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The collection value. + protocol: !Protocols {} + - !Property + schema: *ref_60 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: OperationDefinitionListResult + description: The result of a request to list configuration store operations. + namespace: '' + protocol: !Protocols {} + - *ref_61 + - *ref_62 + - !ObjectSchema &ref_125 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_63 + required: true + serializedName: key + language: !Languages + default: + name: key + description: The key to retrieve. + protocol: !Protocols {} + - !Property + schema: *ref_64 + required: false + serializedName: label + language: !Languages + default: + name: label + description: The label of the key. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: ListKeyValueParameters + description: The parameters used to list a configuration store key-value + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_129 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_65 + readOnly: true + serializedName: key + language: !Languages + default: + name: key + description: "The primary identifier of a key-value.\r\nThe key is used in unison with the label to uniquely identify a key-value." + protocol: !Protocols {} + - !Property + schema: *ref_66 + readOnly: true + serializedName: label + language: !Languages + default: + name: label + description: "A value used to group key-values.\r\nThe label is used in unison with the key to uniquely identify a key-value." + protocol: !Protocols {} + - !Property + schema: *ref_67 + readOnly: true + serializedName: value + language: !Languages + default: + name: value + description: The value of the key-value. + protocol: !Protocols {} + - !Property + schema: *ref_68 + readOnly: true + serializedName: contentType + language: !Languages + default: + name: contentType + description: "The content type of the key-value's value.\r\nProviding a proper content-type can enable transformations of values when they are retrieved by applications." + protocol: !Protocols {} + - !Property + schema: *ref_69 + readOnly: true + serializedName: eTag + language: !Languages + default: + name: eTag + description: An ETag indicating the state of a key-value within a configuration store. + protocol: !Protocols {} + - !Property + schema: *ref_70 + readOnly: true + serializedName: lastModified + language: !Languages + default: + name: lastModified + description: The last time a modifying operation was performed on the given key-value. + protocol: !Protocols {} + - !Property + schema: *ref_71 + readOnly: true + serializedName: locked + language: !Languages + default: + name: locked + description: "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked." + protocol: !Protocols {} + - !Property + schema: *ref_72 + readOnly: true + serializedName: tags + language: !Languages + default: + name: tags + description: A dictionary of tags that can help identify what a key-value may be applicable for. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: KeyValue + description: The result of a request to retrieve a key-value from the specified configuration store. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_137 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ArraySchema &ref_90 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_77 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_73 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The resource ID. + protocol: !Protocols {} + - !Property + schema: *ref_74 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_75 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_16 + flattenedNames: + - properties + - provisioningState + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The provisioning status of the private endpoint connection. + protocol: !Protocols {} + - !Property + schema: *ref_35 + flattenedNames: + - properties + - privateEndpoint + serializedName: privateEndpoint + language: !Languages + default: + name: privateEndpoint + description: The resource of private endpoint. + protocol: !Protocols {} + - !Property + schema: *ref_36 + flattenedNames: + - properties + - privateLinkServiceConnectionState + serializedName: privateLinkServiceConnectionState + language: !Languages + default: + name: privateLinkServiceConnectionState + description: A collection of information about the state of the connection between service consumer and provider. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: PrivateEndpointConnection + description: A private endpoint connection + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: PrivateEndpointConnectionListResultValue + description: The collection value. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The collection value. + protocol: !Protocols {} + - !Property + schema: *ref_76 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: PrivateEndpointConnectionListResult + description: A list of private endpoint connections + namespace: '' + protocol: !Protocols {} + - *ref_77 + - !ObjectSchema &ref_150 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: !ArraySchema &ref_93 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: !ObjectSchema &ref_85 + type: object + apiVersions: + - !ApiVersion + version: '2020-06-01' + properties: + - !Property + schema: *ref_78 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The resource ID. + protocol: !Protocols {} + - !Property + schema: *ref_79 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_80 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_81 + flattenedNames: + - properties + - groupId + readOnly: true + serializedName: groupId + language: !Languages + default: + name: groupId + description: The private link resource group id. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_91 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: *ref_82 + language: !Languages + default: + name: PrivateLinkResourcePropertiesRequiredMembers + description: The private link resource required member names. + protocol: !Protocols {} + flattenedNames: + - properties + - requiredMembers + readOnly: true + serializedName: requiredMembers + language: !Languages + default: + name: requiredMembers + description: The private link resource required member names. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_92 + type: array + apiVersions: + - !ApiVersion + version: '2020-06-01' + elementType: *ref_83 + language: !Languages + default: + name: PrivateLinkResourcePropertiesRequiredZoneNames + description: The list of required DNS zone names of the private link resource. + protocol: !Protocols {} + flattenedNames: + - properties + - requiredZoneNames + readOnly: true + serializedName: requiredZoneNames + language: !Languages + default: + name: requiredZoneNames + description: The list of required DNS zone names of the private link resource. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: PrivateLinkResource + description: A resource that supports private link capabilities. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: PrivateLinkResourceListResultValue + description: The collection value. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The collection value. + protocol: !Protocols {} + - !Property + schema: *ref_84 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URI that can be used to request the next set of paged results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: PrivateLinkResourceListResult + description: A list of private link resources. + namespace: '' + protocol: !Protocols {} + - *ref_85 + arrays: + - *ref_86 + - *ref_87 + - *ref_88 + - *ref_89 + - *ref_90 + - *ref_91 + - *ref_92 + - *ref_93 +globalParameters: + - !Parameter &ref_96 + schema: *ref_3 + implementation: Client + required: true + extensions: + x-ms-priority: 0 + language: !Languages + default: + name: SubscriptionId + description: The Microsoft Azure subscription ID. + serializedName: subscriptionId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_95 + schema: *ref_0 + clientDefaultValue: https://management.azure.com + implementation: Client + origin: modelerfour:synthesized/host + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: $host + description: server parameter + serializedName: $host + protocol: !Protocols + http: !HttpParameter + in: uri + - !Parameter &ref_97 + schema: *ref_94 + implementation: Client + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query +operationGroups: + - !OperationGroup + $key: ConfigurationStores + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - *ref_97 + - !Parameter &ref_99 + schema: *ref_3 + implementation: Method + language: !Languages + default: + name: skipToken + description: >- + A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that + specifies a starting point to use for subsequent calls. + serializedName: $skipToken + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores + method: get + uri: '{$host}' + signatureParameters: + - *ref_99 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_List: + parameters: + api-version: '2020-06-01' + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + value: + - name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: {} + - name: contoso2 + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso2 + identity: + type: SystemAssigned + principalId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + location: westus + properties: + creationDate: '2018-04-24T23:06:59+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso2.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: List + description: Lists the configuration stores for a given subscription. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_102 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_103 + schema: *ref_3 + implementation: Method + language: !Languages + default: + name: skipToken + description: >- + A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that + specifies a starting point to use for subsequent calls. + serializedName: $skipToken + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores + method: get + uri: '{$host}' + signatureParameters: + - *ref_102 + - *ref_103 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_ListByResourceGroup: + parameters: + api-version: '2020-06-01' + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + value: + - name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: {} + - name: contoso2 + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso2 + location: westus + properties: + creationDate: '2018-04-24T23:06:59+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso2.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListByResourceGroup + description: Lists the configuration stores for a given resource group. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_105 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_106 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_105 + - *ref_106 + responses: + - !SchemaResponse + schema: *ref_4 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_Get: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: {} + language: !Languages + default: + name: Get + description: Gets the properties of the specified configuration store. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_109 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_110 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_108 + schema: *ref_4 + implementation: Method + required: true + language: !Languages + default: + name: configStoreCreationParameters + description: The parameters for creating a configuration store. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_108 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_109 + - *ref_110 + responses: + - !SchemaResponse + schema: *ref_4 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_4 + language: !Languages + default: + name: '' + description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_Create: + parameters: + api-version: '2020-06-01' + configStoreCreationParameters: + location: westus + sku: + name: Standard + tags: + myTag: myTagValue + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + myTag: myTagValue + '201': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Creating + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + myTag: myTagValue + ConfigurationStores_Create_WithIdentity: + parameters: + api-version: '2020-06-01' + configStoreCreationParameters: + identity: + type: SystemAssigned, UserAssigned + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: {} + location: westus + sku: + name: Standard + tags: + myTag: myTagValue + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned, UserAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: + clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC + principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + myTag: myTagValue + '201': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned, UserAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: + clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC + principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Creating + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + myTag: myTagValue + x-ms-long-running-operation: true + language: !Languages + default: + name: Create + description: Creates a configuration store with the specified parameters. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_111 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_112 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_111 + - *ref_112 + responses: + - !Response + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: The request was successful; the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content - the specified resource was not found. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_Delete: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': {} + '202': {} + '204': {} + x-ms-long-running-operation: true + language: !Languages + default: + name: Delete + description: Deletes a configuration store. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_115 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_116 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_114 + schema: *ref_113 + implementation: Method + required: true + language: !Languages + default: + name: configStoreUpdateParameters + description: The parameters for updating a configuration store. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_114 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} + method: patch + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_115 + - *ref_116 + responses: + - !SchemaResponse + schema: *ref_4 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_4 + language: !Languages + default: + name: '' + description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_Update: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + configStoreUpdateParameters: + sku: + name: Standard + tags: + Category: Marketing + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + Category: Marketing + '201': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Updating + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + Category: Marketing + ConfigurationStores_Update_WithIdentity: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + configStoreUpdateParameters: + identity: + type: SystemAssigned, UserAssigned + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: {} + sku: + name: Standard + tags: + Category: Marketing + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned, UserAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: + clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC + principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Succeeded + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + Category: Marketing + '201': + body: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso + identity: + type: SystemAssigned, UserAssigned + principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA + tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB + userAssignedIdentities: + /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: + clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC + principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD + location: westus + properties: + creationDate: '2018-04-24T16:30:55+00:00' + encryption: + keyVaultProperties: + identityClientId: null + keyIdentifier: null + endpoint: https://contoso.azconfig.io + privateEndpointConnections: [] + provisioningState: Updating + publicNetworkAccess: Disabled + sku: + name: Standard + tags: + Category: Marketing + x-ms-long-running-operation: true + language: !Languages + default: + name: Update + description: Updates a configuration store with the specified parameters. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_117 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_118 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_119 + schema: *ref_3 + implementation: Method + language: !Languages + default: + name: skipToken + description: >- + A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that + specifies a starting point to use for subsequent calls. + serializedName: $skipToken + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys + method: post + uri: '{$host}' + signatureParameters: + - *ref_117 + - *ref_118 + - *ref_119 + responses: + - !SchemaResponse + schema: *ref_120 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_ListKeys: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + value: + - name: Primary + connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + id: 439AD01B4BE67DB1 + lastModified: '2018-04-24T16:30:54+00:00' + readOnly: false + value: '000000000000000000000000000000000000000000000000000000' + - name: Secondary + connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + id: CB45E100456857B9 + lastModified: '2018-04-24T16:30:54+00:00' + readOnly: false + value: '000000000000000000000000000000000000000000000000000000' + - name: Primary Read Only + connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + id: B3AC55B7E71431A9 + lastModified: '2018-04-24T16:30:54+00:00' + readOnly: true + value: '000000000000000000000000000000000000000000000000000000' + - name: Secondary Read Only + connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + id: E2AF6A9A89DCC177 + lastModified: '2018-04-24T16:30:54+00:00' + readOnly: true + value: '000000000000000000000000000000000000000000000000000000' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListKeys + description: Lists the access key for the specified configuration store. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_123 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_124 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_122 + schema: *ref_121 + implementation: Method + required: true + language: !Languages + default: + name: regenerateKeyParameters + description: The parameters for regenerating an access key. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_122 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_123 + - *ref_124 + responses: + - !SchemaResponse + schema: *ref_53 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_RegenerateKey: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + regenerateKeyParameters: + id: 439AD01B4BE67DB1 + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: Primary + connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + id: 439AD01B4BE67DB1 + lastModified: '2018-04-26T22:59:24.2370906+00:00' + readOnly: false + value: '000000000000000000000000000000000000000000000000000000' + language: !Languages + default: + name: RegenerateKey + description: Regenerates an access key for the specified configuration store. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_127 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_128 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_126 + schema: *ref_125 + implementation: Method + required: true + language: !Languages + default: + name: listKeyValueParameters + description: The parameters for retrieving a key-value. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_126 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_127 + - *ref_128 + responses: + - !SchemaResponse + schema: *ref_129 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_ListKeyValue: + parameters: + api-version: '2020-06-01' + configStoreName: fayeh + listKeyValueParameters: + key: MaxRequests + label: dev + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + contentType: '' + eTag: 4f6dd610dd5e4deebc7fbaef685fb903 + key: MaxRequests + label: dev + lastModified: '2017-12-05T02:41:26+00:00' + locked: false + tags: + t1: value1 + t2: value2 + value: '100' + language: !Languages + default: + name: ListKeyValue + description: Lists a configuration store key-value. + protocol: !Protocols {} + language: !Languages + default: + name: ConfigurationStores + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: Operations + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_131 + schema: *ref_130 + implementation: Method + required: true + language: !Languages + default: + name: checkNameAvailabilityParameters + description: The object containing information for the availability request. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_131 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: [] + responses: + - !SchemaResponse + schema: *ref_132 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ConfigurationStores_CheckNameAvailable: + parameters: + api-version: '2020-06-01' + checkNameAvailabilityParameters: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + message: The specified name is available. + nameAvailable: true + reason: null + ConfigurationStores_CheckNameNotAvailable: + parameters: + api-version: '2020-06-01' + checkNameAvailabilityParameters: + name: contoso + type: Microsoft.AppConfiguration/configurationStores + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + message: The specified name is already in use. + nameAvailable: false + reason: AlreadyExists + language: !Languages + default: + name: CheckNameAvailability + description: Checks whether the configuration store name is available for use. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_97 + - !Parameter &ref_133 + schema: *ref_3 + implementation: Method + language: !Languages + default: + name: skipToken + description: >- + A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that + specifies a starting point to use for subsequent calls. + serializedName: $skipToken + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.AppConfiguration/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_133 + responses: + - !SchemaResponse + schema: *ref_134 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: List + description: Lists the operations available from this provider. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + language: !Languages + default: + name: Operations + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: PrivateEndpointConnections + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_135 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_136 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections + method: get + uri: '{$host}' + signatureParameters: + - *ref_135 + - *ref_136 + responses: + - !SchemaResponse + schema: *ref_137 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateEndpointConnection_List: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + value: + - name: myConnection + type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection + properties: + privateEndpoint: + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 + privateLinkServiceConnectionState: + description: Auto-Approved + actionsRequired: None + status: Approved + provisioningState: Succeeded + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListByConfigurationStore + description: Lists all private endpoint connections for a configuration store. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_138 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_139 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_140 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: privateEndpointConnectionName + description: Private endpoint connection name + serializedName: privateEndpointConnectionName + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_138 + - *ref_139 + - *ref_140 + responses: + - !SchemaResponse + schema: *ref_77 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateEndpointConnection_GetConnection: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + privateEndpointConnectionName: myConnection + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: myConnection + type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection + properties: + privateEndpoint: + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 + privateLinkServiceConnectionState: + description: Auto-Approved + actionsRequired: None + status: Approved + provisioningState: Succeeded + language: !Languages + default: + name: Get + description: Gets the specified private endpoint connection associated with the configuration store. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_142 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_143 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_144 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: privateEndpointConnectionName + description: Private endpoint connection name + serializedName: privateEndpointConnectionName + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_107 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_141 + schema: *ref_77 + implementation: Method + required: true + language: !Languages + default: + name: privateEndpointConnection + description: The private endpoint connection properties. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_141 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_142 + - *ref_143 + - *ref_144 + responses: + - !SchemaResponse + schema: *ref_77 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_77 + language: !Languages + default: + name: '' + description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateEndpointConnection_CreateOrUpdate: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + privateEndpointConnection: + properties: + privateLinkServiceConnectionState: + description: Auto-Approved + status: Approved + privateEndpointConnectionName: myConnection + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: myConnection + type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection + properties: + privateEndpoint: + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 + privateLinkServiceConnectionState: + description: Auto-Approved + actionsRequired: None + status: Approved + provisioningState: Succeeded + '201': + body: + name: myConnection + type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection + properties: + privateEndpoint: + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 + privateLinkServiceConnectionState: + description: Auto-Approved + actionsRequired: None + status: Approved + provisioningState: Succeeded + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdate + description: Update the state of the specified private endpoint connection associated with the configuration store. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_145 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_146 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_147 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: privateEndpointConnectionName + description: Private endpoint connection name + serializedName: privateEndpointConnectionName + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_145 + - *ref_146 + - *ref_147 + responses: + - !Response + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: The request was successful; the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content - the specified resource was not found. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateEndpointConnections_Delete: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + privateEndpointConnectionName: myConnection + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': {} + '202': {} + '204': {} + x-ms-long-running-operation: true + language: !Languages + default: + name: Delete + description: Deletes a private endpoint connection. + protocol: !Protocols {} + language: !Languages + default: + name: PrivateEndpointConnections + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: PrivateLinkResources + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_148 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_149 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources + method: get + uri: '{$host}' + signatureParameters: + - *ref_148 + - *ref_149 + responses: + - !SchemaResponse + schema: *ref_150 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateLinkResources_ListGroupIds: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + value: + - name: configurationStores + type: Microsoft.AppConfiguraiton/configurationStores/privateLinkResources + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateLinkResources/configurationStores + properties: + groupId: configurationStores + requiredMembers: + - configurationStores + requiredZoneNames: + - privatelink.azconfig.io + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListByConfigurationStore + description: Gets the private link resources that need to be created for a configuration store. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-06-01' + parameters: + - *ref_95 + - *ref_96 + - !Parameter &ref_151 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to which the container registry belongs. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_152 + schema: *ref_104 + implementation: Method + required: true + language: !Languages + default: + name: configStoreName + description: The name of the configuration store. + serializedName: configStoreName + protocol: !Protocols + http: !HttpParameter + in: path + - *ref_97 + - !Parameter &ref_153 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: groupName + description: The name of the private link resource group. + serializedName: groupName + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_98 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_151 + - *ref_152 + - *ref_153 + responses: + - !SchemaResponse + schema: *ref_85 + language: !Languages + default: + name: '' + description: The request was successful; the request was well-formed and received properly. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_101 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + PrivateLinkResources_Get: + parameters: + api-version: '2020-06-01' + configStoreName: contoso + groupName: configurationStores + resourceGroupName: myResourceGroup + subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 + responses: + '200': + body: + name: configurationStores + type: Microsoft.AppConfiguraiton/configurationStores/privateLinkResources + id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateLinkResources/configurationStores + properties: + groupId: configurationStores + requiredMembers: + - configurationStores + requiredZoneNames: + - privatelink.azconfig.io + language: !Languages + default: + name: Get + description: Gets a private link resource that need to be created for a configuration store. + protocol: !Protocols {} + language: !Languages + default: + name: PrivateLinkResources + description: '' + protocol: !Protocols {} +security: !Security + authenticationRequired: true +language: !Languages + default: + name: AppConfigurationManagementClient + description: '' +protocol: !Protocols + http: !HttpModel {} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json new file mode 100644 index 0000000000000..4dd5d6b53fe59 --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json @@ -0,0 +1 @@ +{"OutputFolder":".","Namespace":"Azure.ResourceManager.AppConfiguration","LibraryName":null,"SharedSourceFolders":["..\\..\\..\\..\\core\\Azure.Core\\src\\Shared\\","..\\..\\..\\..\\..\\..\\.nuget\\packages\\microsoft.azure.autorest.csharp\\3.0.0-beta.20210302.2\\content\\Generator.Shared\\"],"AzureArm":true,"PublicClients":true,"ModelNamespace":true,"HeadAsBoolean":true,"SkipCSProjPackageReference":false,"CredentialTypes":[],"CredentialScopes":[],"CredentialHeaderName":"api-key"} \ No newline at end of file diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs index f4dc80cff3d15..72bf76ae53acd 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs @@ -17,8 +17,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(KeyVaultProperties)) { - writer.WritePropertyName("keyVaultProperties"); - writer.WriteObjectValue(KeyVaultProperties); + if (KeyVaultProperties != null) + { + writer.WritePropertyName("keyVaultProperties"); + writer.WriteObjectValue(KeyVaultProperties); + } + else + { + writer.WriteNull("keyVaultProperties"); + } } writer.WriteEndObject(); } @@ -32,7 +39,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + keyVaultProperties = null; continue; } keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 0915f9c2ed8c3..274b54dbfc6c8 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -5,6 +5,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d302c82f32daec0feb68cd7d68d45ba898b67ee7/specification/appconfiguration/resource-manager/readme.md +save-inputs: true ``` ## Swagger workarounds From d68466b47b1e339464918695b4d705364191529c Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 15:06:57 -0800 Subject: [PATCH 3/8] Generate app config --- eng/Packages.Data.props | 2 +- .../src/Generated/CodeModel.yaml | 3 --- .../src/Generated/Configuration.json | 2 +- .../Models/EncryptionProperties.Serialization.cs | 13 +++---------- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 17e2a1632ade9..c7c0afff50eb5 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -122,7 +122,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml index 30bfcda395a0f..7451c6cafda5f 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml @@ -1180,10 +1180,7 @@ schemas: !Schemas description: Settings concerning key vault encryption for a configuration store. namespace: '' protocol: !Protocols {} - nullable: true serializedName: keyVaultProperties - extensions: - x-nullable: true language: !Languages default: name: keyVaultProperties diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json index 4dd5d6b53fe59..42745d768547a 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json @@ -1 +1 @@ -{"OutputFolder":".","Namespace":"Azure.ResourceManager.AppConfiguration","LibraryName":null,"SharedSourceFolders":["..\\..\\..\\..\\core\\Azure.Core\\src\\Shared\\","..\\..\\..\\..\\..\\..\\.nuget\\packages\\microsoft.azure.autorest.csharp\\3.0.0-beta.20210302.2\\content\\Generator.Shared\\"],"AzureArm":true,"PublicClients":true,"ModelNamespace":true,"HeadAsBoolean":true,"SkipCSProjPackageReference":false,"CredentialTypes":[],"CredentialScopes":[],"CredentialHeaderName":"api-key"} \ No newline at end of file +{"OutputFolder":".","Namespace":"Azure.ResourceManager.AppConfiguration","LibraryName":null,"SharedSourceFolders":["..\\..\\..\\..\\core\\Azure.Core\\src\\Shared\\","..\\..\\..\\..\\..\\..\\.nuget\\packages\\microsoft.azure.autorest.csharp\\3.0.0-beta.20210308.3\\content\\Generator.Shared\\"],"AzureArm":true,"PublicClients":true,"ModelNamespace":true,"HeadAsBoolean":true,"SkipCSProjPackageReference":false,"CredentialTypes":[],"CredentialScopes":[],"CredentialHeaderName":"api-key"} \ No newline at end of file diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs index 72bf76ae53acd..f4dc80cff3d15 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs @@ -17,15 +17,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(KeyVaultProperties)) { - if (KeyVaultProperties != null) - { - writer.WritePropertyName("keyVaultProperties"); - writer.WriteObjectValue(KeyVaultProperties); - } - else - { - writer.WriteNull("keyVaultProperties"); - } + writer.WritePropertyName("keyVaultProperties"); + writer.WriteObjectValue(KeyVaultProperties); } writer.WriteEndObject(); } @@ -39,7 +32,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement { if (property.Value.ValueKind == JsonValueKind.Null) { - keyVaultProperties = null; + property.ThrowNonNullablePropertyIsNull(); continue; } keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); From d77e29956c4bc10747cc9fe3f5e7f6f8d48bdf4d Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 15:54:17 -0800 Subject: [PATCH 4/8] Update autorest.md --- .../Azure.ResourceManager.AppConfiguration/src/autorest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 274b54dbfc6c8..30889a2620c2d 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -15,9 +15,9 @@ save-inputs: true ``` yaml directive: from: swagger-document - where: $.definitions.EncryptionProperties + where: $.definitions.KeyVaultProperties transform: > - $.properties.keyVaultProperties["x-nullable"] = true; + $["x-nullable"] = true; ```` From 7b96abed0c3c037d3ae1b339e301364b7380d299 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 16:19:31 -0800 Subject: [PATCH 5/8] Update autorest.md --- .../Azure.ResourceManager.AppConfiguration/src/autorest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 30889a2620c2d..3c6e2ae6f1e61 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -18,7 +18,7 @@ directive: where: $.definitions.KeyVaultProperties transform: > $["x-nullable"] = true; -```` +``` ``` yaml @@ -27,4 +27,4 @@ directive: where: $.definitions.ConfigurationStoreProperties transform: > $.properties.privateEndpointConnections["x-nullable"] = true; -```` \ No newline at end of file +``` \ No newline at end of file From 83c6d6a273155ba36398a0683ab2a5ed296d2891 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 17:19:47 -0800 Subject: [PATCH 6/8] Fix App config --- .../src/Generated/CodeModel.yaml | 4875 ----------------- .../src/Generated/Configuration.json | 1 - .../EncryptionProperties.Serialization.cs | 13 +- .../src/autorest.md | 19 +- 4 files changed, 19 insertions(+), 4889 deletions(-) delete mode 100644 sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml delete mode 100644 sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml deleted file mode 100644 index 7451c6cafda5f..0000000000000 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/CodeModel.yaml +++ /dev/null @@ -1,4875 +0,0 @@ -!CodeModel -info: !Info - title: AppConfigurationManagementClient -schemas: !Schemas - booleans: - - !BooleanSchema &ref_43 - type: boolean - language: !Languages - default: - name: Boolean - description: The value indicating whether the resource name is available. - protocol: !Protocols {} - - !BooleanSchema &ref_51 - type: boolean - language: !Languages - default: - name: Boolean - description: Whether this key can only be used for read operations. - protocol: !Protocols {} - - !BooleanSchema &ref_71 - type: boolean - language: !Languages - default: - name: Boolean - description: "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked." - protocol: !Protocols {} - strings: - - !StringSchema &ref_0 - type: string - language: !Languages - default: - name: String - description: simple string - protocol: !Protocols {} - - !StringSchema &ref_3 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_1 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: UserIdentityPrincipalId - description: The principal ID of the user-assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_2 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: UserIdentityClientId - description: The client ID of the user-assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_13 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ResourceIdentityPrincipalId - description: The principal id of the identity. This property will only be provided for a system-assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_14 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ResourceIdentityTenantId - description: The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_18 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ConfigurationStorePropertiesEndpoint - description: The DNS endpoint where the configuration store API will be available. - protocol: !Protocols {} - - !StringSchema &ref_19 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyVaultPropertiesKeyIdentifier - description: The URI of the key vault key used to encrypt data. - protocol: !Protocols {} - - !StringSchema &ref_20 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyVaultPropertiesIdentityClientId - description: The client id of the identity which will be used to access key vault. - protocol: !Protocols {} - - !StringSchema &ref_21 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionReferenceId - description: The resource ID. - protocol: !Protocols {} - - !StringSchema &ref_22 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionReferenceName - description: The name of the resource. - protocol: !Protocols {} - - !StringSchema &ref_23 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionReferenceType - description: The type of the resource. - protocol: !Protocols {} - - !StringSchema &ref_24 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointId - description: The resource Id for private endpoint - protocol: !Protocols {} - - !StringSchema &ref_26 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkServiceConnectionStateDescription - description: The private link service connection description. - protocol: !Protocols {} - - !StringSchema &ref_15 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: SkuName - description: The SKU name of the configuration store. - protocol: !Protocols {} - - !StringSchema &ref_5 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ResourceId - description: The resource ID. - protocol: !Protocols {} - - !StringSchema &ref_6 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ResourceName - description: The name of the resource. - protocol: !Protocols {} - - !StringSchema &ref_7 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ResourceType - description: The type of the resource. - protocol: !Protocols {} - - !StringSchema &ref_8 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - extensions: - x-ms-mutability: - - read - - create - language: !Languages - default: - name: ResourceLocation - description: The location of the resource. This cannot be changed after the resource is created. - protocol: !Protocols {} - - !StringSchema &ref_29 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ConfigurationStoreListResultNextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - - !StringSchema &ref_38 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ErrorCode - description: Error code. - protocol: !Protocols {} - - !StringSchema &ref_39 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ErrorMessage - description: Error message. - protocol: !Protocols {} - - !StringSchema &ref_104 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - maxLength: 50 - minLength: 5 - pattern: ^[a-zA-Z0-9_-]*$ - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_41 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: CheckNameAvailabilityParametersName - description: The name to check for availability. - protocol: !Protocols {} - - !StringSchema &ref_44 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: NameAvailabilityStatusMessage - description: If any, the error message that provides more detail for the reason that the name is not available. - protocol: !Protocols {} - - !StringSchema &ref_45 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: NameAvailabilityStatusReason - description: If any, the reason that the name is not available. - protocol: !Protocols {} - - !StringSchema &ref_46 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyId - description: The key ID. - protocol: !Protocols {} - - !StringSchema &ref_47 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyName - description: A name for the key describing its usage. - protocol: !Protocols {} - - !StringSchema &ref_48 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyValue - description: The value of the key that is used for authentication purposes. - protocol: !Protocols {} - - !StringSchema &ref_49 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyConnectionString - description: A connection string that can be used by supporting clients for authentication. - protocol: !Protocols {} - - !StringSchema &ref_52 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyListResultNextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - - !StringSchema &ref_54 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: RegenerateKeyParametersId - description: The id of the key to regenerate. - protocol: !Protocols {} - - !StringSchema &ref_55 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionName - description: 'Operation name: {provider}/{resource}/{operation}.' - protocol: !Protocols {} - - !StringSchema &ref_56 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionDisplayProvider - description: 'The resource provider name: Microsoft App Configuration."' - protocol: !Protocols {} - - !StringSchema &ref_57 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionDisplayResource - description: The resource on which the operation is performed. - protocol: !Protocols {} - - !StringSchema &ref_58 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionDisplayOperation - description: The operation that users can perform. - protocol: !Protocols {} - - !StringSchema &ref_59 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionDisplayDescription - description: The description for the operation. - protocol: !Protocols {} - - !StringSchema &ref_60 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: OperationDefinitionListResultNextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - - !StringSchema &ref_63 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ListKeyValueParametersKey - description: The key to retrieve. - protocol: !Protocols {} - - !StringSchema &ref_64 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ListKeyValueParametersLabel - description: The label of the key. - protocol: !Protocols {} - - !StringSchema &ref_65 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValueKey - description: "The primary identifier of a key-value.\r\nThe key is used in unison with the label to uniquely identify a key-value." - protocol: !Protocols {} - - !StringSchema &ref_66 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValueLabel - description: "A value used to group key-values.\r\nThe label is used in unison with the key to uniquely identify a key-value." - protocol: !Protocols {} - - !StringSchema &ref_67 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValue - description: The value of the key-value. - protocol: !Protocols {} - - !StringSchema &ref_68 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValueContentType - description: "The content type of the key-value's value.\r\nProviding a proper content-type can enable transformations of values when they are retrieved by applications." - protocol: !Protocols {} - - !StringSchema &ref_69 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValueETag - description: An ETag indicating the state of a key-value within a configuration store. - protocol: !Protocols {} - - !StringSchema &ref_73 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionId - description: The resource ID. - protocol: !Protocols {} - - !StringSchema &ref_74 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionName - description: The name of the resource. - protocol: !Protocols {} - - !StringSchema &ref_75 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionType - description: The type of the resource. - protocol: !Protocols {} - - !StringSchema &ref_76 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateEndpointConnectionListResultNextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - - !StringSchema &ref_78 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourceId - description: The resource ID. - protocol: !Protocols {} - - !StringSchema &ref_79 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourceName - description: The name of the resource. - protocol: !Protocols {} - - !StringSchema &ref_80 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourceType - description: The type of the resource. - protocol: !Protocols {} - - !StringSchema &ref_81 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourcePropertiesGroupId - description: The private link resource group id. - protocol: !Protocols {} - - !StringSchema &ref_82 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourcePropertiesRequiredMembersItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_83 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourcePropertiesRequiredZoneNamesItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_84 - type: string - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: PrivateLinkResourceListResultNextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - choices: - - !ChoiceSchema &ref_11 - choices: - - !ChoiceValue - value: None - language: - default: - name: None - description: '' - - !ChoiceValue - value: SystemAssigned - language: - default: - name: SystemAssigned - description: '' - - !ChoiceValue - value: UserAssigned - language: - default: - name: UserAssigned - description: '' - - !ChoiceValue - value: SystemAssigned, UserAssigned - language: - default: - name: SystemAssignedUserAssigned - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: IdentityType - description: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. - protocol: !Protocols {} - - !ChoiceSchema &ref_16 - choices: - - !ChoiceValue - value: Creating - language: - default: - name: Creating - description: '' - - !ChoiceValue - value: Updating - language: - default: - name: Updating - description: '' - - !ChoiceValue - value: Deleting - language: - default: - name: Deleting - description: '' - - !ChoiceValue - value: Succeeded - language: - default: - name: Succeeded - description: '' - - !ChoiceValue - value: Failed - language: - default: - name: Failed - description: '' - - !ChoiceValue - value: Canceled - language: - default: - name: Canceled - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: ProvisioningState - description: The provisioning state of the configuration store. - protocol: !Protocols {} - - !ChoiceSchema &ref_25 - choices: - - !ChoiceValue - value: Pending - language: - default: - name: Pending - description: '' - - !ChoiceValue - value: Approved - language: - default: - name: Approved - description: '' - - !ChoiceValue - value: Rejected - language: - default: - name: Rejected - description: '' - - !ChoiceValue - value: Disconnected - language: - default: - name: Disconnected - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: ConnectionStatus - description: The private link service connection status. - protocol: !Protocols {} - - !ChoiceSchema &ref_27 - choices: - - !ChoiceValue - value: None - language: - default: - name: None - description: '' - - !ChoiceValue - value: Recreate - language: - default: - name: Recreate - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: ActionsRequired - description: Any action that is required beyond basic workflow (approve/ reject/ disconnect) - protocol: !Protocols {} - - !ChoiceSchema &ref_28 - choices: - - !ChoiceValue - value: Enabled - language: - default: - name: Enabled - description: '' - - !ChoiceValue - value: Disabled - language: - default: - name: Disabled - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: PublicNetworkAccess - description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. - protocol: !Protocols {} - - !ChoiceSchema &ref_42 - choices: - - !ChoiceValue - value: Microsoft.AppConfiguration/configurationStores - language: - default: - name: MicrosoftAppConfigurationConfigurationStores - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-06-01' - choiceType: *ref_0 - language: !Languages - default: - name: ConfigurationResourceType - description: The resource type to check for name availability. - protocol: !Protocols {} - constants: - - !ConstantSchema &ref_94 - type: constant - value: !ConstantValue - value: '2020-06-01' - valueType: *ref_0 - language: !Languages - default: - name: ApiVersion20200601 - description: Api Version (2020-06-01) - protocol: !Protocols {} - - !ConstantSchema &ref_98 - type: constant - value: !ConstantValue - value: application/json - valueType: *ref_0 - language: !Languages - default: - name: Accept - description: 'Accept: application/json' - protocol: !Protocols {} - - !ConstantSchema &ref_107 - type: constant - value: !ConstantValue - value: application/json - valueType: *ref_0 - language: !Languages - default: - name: ApplicationJson - description: Content Type 'application/json' - protocol: !Protocols {} - dictionaries: - - !DictionarySchema &ref_12 - type: dictionary - elementType: !ObjectSchema &ref_31 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_1 - readOnly: true - serializedName: principalId - language: !Languages - default: - name: principalId - description: The principal ID of the user-assigned identity. - protocol: !Protocols {} - - !Property - schema: *ref_2 - readOnly: true - serializedName: clientId - language: !Languages - default: - name: clientId - description: The client ID of the user-assigned identity. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: UserIdentity - description: A resource identity that is managed by the user of the service. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ResourceIdentityUserAssignedIdentities - description: >- - The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - protocol: !Protocols {} - - !DictionarySchema &ref_9 - type: dictionary - elementType: *ref_3 - language: !Languages - default: - name: ResourceTags - description: The tags of the resource. - protocol: !Protocols {} - - !DictionarySchema &ref_40 - type: dictionary - elementType: *ref_3 - language: !Languages - default: - name: ConfigurationStoreUpdateParametersTags - description: The ARM resource tags. - protocol: !Protocols {} - - !DictionarySchema &ref_72 - type: dictionary - elementType: *ref_3 - language: !Languages - default: - name: KeyValueTags - description: A dictionary of tags that can help identify what a key-value may be applicable for. - protocol: !Protocols {} - dateTimes: - - !DateTimeSchema &ref_17 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ConfigurationStorePropertiesCreationDate - description: The creation date of configuration store. - protocol: !Protocols {} - - !DateTimeSchema &ref_50 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: ApiKeyLastModified - description: The last time any of the key's properties were modified. - protocol: !Protocols {} - - !DateTimeSchema &ref_70 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2020-06-01' - language: !Languages - default: - name: KeyValueLastModified - description: The last time a modifying operation was performed on the given key-value. - protocol: !Protocols {} - objects: - - !ObjectSchema &ref_100 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ArraySchema &ref_87 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_4 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - parents: !Relations - all: - - !ObjectSchema &ref_10 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - children: !Relations - all: - - *ref_4 - immediate: - - *ref_4 - properties: - - !Property - schema: *ref_5 - readOnly: true - required: false - serializedName: id - language: !Languages - default: - name: id - description: The resource ID. - protocol: !Protocols {} - - !Property - schema: *ref_6 - readOnly: true - required: false - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_7 - readOnly: true - required: false - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_8 - required: true - serializedName: location - language: !Languages - default: - name: location - description: The location of the resource. This cannot be changed after the resource is created. - protocol: !Protocols {} - - !Property - schema: *ref_9 - required: false - serializedName: tags - language: !Languages - default: - name: tags - description: The tags of the resource. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: Resource - description: An Azure resource. - namespace: '' - protocol: !Protocols {} - immediate: - - *ref_10 - properties: - - !Property - schema: !ObjectSchema &ref_30 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_11 - serializedName: type - language: !Languages - default: - name: type - description: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. - protocol: !Protocols {} - - !Property - schema: *ref_12 - serializedName: userAssignedIdentities - language: !Languages - default: - name: userAssignedIdentities - description: >- - The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - protocol: !Protocols {} - - !Property - schema: *ref_13 - readOnly: true - serializedName: principalId - language: !Languages - default: - name: principalId - description: The principal id of the identity. This property will only be provided for a system-assigned identity. - protocol: !Protocols {} - - !Property - schema: *ref_14 - readOnly: true - serializedName: tenantId - language: !Languages - default: - name: tenantId - description: The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: ResourceIdentity - description: An identity that can be associated with a resource. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: identity - language: !Languages - default: - name: identity - description: The managed identity information, if configured. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_37 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_15 - required: true - serializedName: name - language: !Languages - default: - name: name - description: The SKU name of the configuration store. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: Sku - description: Describes a configuration store SKU. - namespace: '' - protocol: !Protocols {} - required: true - serializedName: sku - language: !Languages - default: - name: sku - description: The sku of the configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_16 - flattenedNames: - - properties - - provisioningState - readOnly: true - required: false - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The provisioning state of the configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_17 - flattenedNames: - - properties - - creationDate - readOnly: true - required: false - serializedName: creationDate - language: !Languages - default: - name: creationDate - description: The creation date of configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_18 - flattenedNames: - - properties - - endpoint - readOnly: true - required: false - serializedName: endpoint - language: !Languages - default: - name: endpoint - description: The DNS endpoint where the configuration store API will be available. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_32 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ObjectSchema &ref_33 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_19 - serializedName: keyIdentifier - language: !Languages - default: - name: keyIdentifier - description: The URI of the key vault key used to encrypt data. - protocol: !Protocols {} - - !Property - schema: *ref_20 - serializedName: identityClientId - language: !Languages - default: - name: identityClientId - description: The client id of the identity which will be used to access key vault. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: KeyVaultProperties - description: Settings concerning key vault encryption for a configuration store. - namespace: '' - protocol: !Protocols {} - serializedName: keyVaultProperties - language: !Languages - default: - name: keyVaultProperties - description: Key vault properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: EncryptionProperties - description: The encryption settings for a configuration store. - namespace: '' - protocol: !Protocols {} - flattenedNames: - - properties - - encryption - required: false - serializedName: encryption - language: !Languages - default: - name: encryption - description: The encryption settings of the configuration store. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_86 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_34 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_21 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The resource ID. - protocol: !Protocols {} - - !Property - schema: *ref_22 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_23 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_16 - flattenedNames: - - properties - - provisioningState - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The provisioning status of the private endpoint connection. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_35 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_24 - serializedName: id - language: !Languages - default: - name: id - description: The resource Id for private endpoint - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: PrivateEndpoint - description: Private endpoint which a connection belongs to. - namespace: '' - protocol: !Protocols {} - flattenedNames: - - properties - - privateEndpoint - serializedName: privateEndpoint - language: !Languages - default: - name: privateEndpoint - description: The resource of private endpoint. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_36 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_25 - serializedName: status - language: !Languages - default: - name: status - description: The private link service connection status. - protocol: !Protocols {} - - !Property - schema: *ref_26 - serializedName: description - language: !Languages - default: - name: description - description: The private link service connection description. - protocol: !Protocols {} - - !Property - schema: *ref_27 - readOnly: true - serializedName: actionsRequired - language: !Languages - default: - name: actionsRequired - description: Any action that is required beyond basic workflow (approve/ reject/ disconnect) - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: PrivateLinkServiceConnectionState - description: The state of a private link service connection. - namespace: '' - protocol: !Protocols {} - flattenedNames: - - properties - - privateLinkServiceConnectionState - serializedName: privateLinkServiceConnectionState - language: !Languages - default: - name: privateLinkServiceConnectionState - description: A collection of information about the state of the connection between service consumer and provider. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: PrivateEndpointConnectionReference - description: A reference to a related private endpoint connection. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ConfigurationStorePropertiesPrivateEndpointConnections - description: The list of private endpoint connections that are set up for this resource. - protocol: !Protocols {} - flattenedNames: - - properties - - privateEndpointConnections - nullable: true - readOnly: true - required: false - serializedName: privateEndpointConnections - language: !Languages - default: - name: privateEndpointConnections - description: The list of private endpoint connections that are set up for this resource. - protocol: !Protocols {} - - !Property - schema: *ref_28 - flattenedNames: - - properties - - publicNetworkAccess - required: false - serializedName: publicNetworkAccess - language: !Languages - default: - name: publicNetworkAccess - description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: ConfigurationStore - description: The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ConfigurationStoreListResultValue - description: The collection value. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The collection value. - protocol: !Protocols {} - - !Property - schema: *ref_29 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ConfigurationStoreListResult - description: The result of a request to list configuration stores. - namespace: '' - protocol: !Protocols {} - - *ref_4 - - *ref_30 - - *ref_31 - - *ref_32 - - *ref_33 - - *ref_34 - - *ref_35 - - *ref_36 - - *ref_37 - - *ref_10 - - !ObjectSchema &ref_101 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_38 - serializedName: code - language: !Languages - default: - name: code - description: Error code. - protocol: !Protocols {} - - !Property - schema: *ref_39 - serializedName: message - language: !Languages - default: - name: message - description: Error message. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - exception - language: !Languages - default: - name: Error - description: AppConfiguration error object. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_113 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_30 - serializedName: identity - language: !Languages - default: - name: identity - description: The managed identity information for the configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_37 - serializedName: sku - language: !Languages - default: - name: sku - description: The SKU of the configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_40 - serializedName: tags - language: !Languages - default: - name: tags - description: The ARM resource tags. - protocol: !Protocols {} - - !Property - schema: *ref_32 - flattenedNames: - - properties - - encryption - serializedName: encryption - language: !Languages - default: - name: encryption - description: The encryption settings of the configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_28 - flattenedNames: - - properties - - publicNetworkAccess - serializedName: publicNetworkAccess - language: !Languages - default: - name: publicNetworkAccess - description: Control permission for data plane traffic coming from public networks while private endpoint is enabled. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: ConfigurationStoreUpdateParameters - description: The parameters for updating a configuration store. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_130 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_41 - required: true - serializedName: name - language: !Languages - default: - name: name - description: The name to check for availability. - protocol: !Protocols {} - - !Property - schema: *ref_42 - required: true - serializedName: type - language: !Languages - default: - name: type - description: The resource type to check for name availability. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: CheckNameAvailabilityParameters - description: Parameters used for checking whether a resource name is available. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_132 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_43 - readOnly: true - serializedName: nameAvailable - language: !Languages - default: - name: nameAvailable - description: The value indicating whether the resource name is available. - protocol: !Protocols {} - - !Property - schema: *ref_44 - readOnly: true - serializedName: message - language: !Languages - default: - name: message - description: If any, the error message that provides more detail for the reason that the name is not available. - protocol: !Protocols {} - - !Property - schema: *ref_45 - readOnly: true - serializedName: reason - language: !Languages - default: - name: reason - description: If any, the reason that the name is not available. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: NameAvailabilityStatus - description: The result of a request to check the availability of a resource name. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_120 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ArraySchema &ref_88 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_53 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_46 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The key ID. - protocol: !Protocols {} - - !Property - schema: *ref_47 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: A name for the key describing its usage. - protocol: !Protocols {} - - !Property - schema: *ref_48 - readOnly: true - serializedName: value - language: !Languages - default: - name: value - description: The value of the key that is used for authentication purposes. - protocol: !Protocols {} - - !Property - schema: *ref_49 - readOnly: true - serializedName: connectionString - language: !Languages - default: - name: connectionString - description: A connection string that can be used by supporting clients for authentication. - protocol: !Protocols {} - - !Property - schema: *ref_50 - readOnly: true - serializedName: lastModified - language: !Languages - default: - name: lastModified - description: The last time any of the key's properties were modified. - protocol: !Protocols {} - - !Property - schema: *ref_51 - readOnly: true - serializedName: readOnly - language: !Languages - default: - name: readOnly - description: Whether this key can only be used for read operations. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ApiKey - description: An API key used for authenticating with a configuration store endpoint. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ApiKeyListResultValue - description: The collection value. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The collection value. - protocol: !Protocols {} - - !Property - schema: *ref_52 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ApiKeyListResult - description: The result of a request to list API keys. - namespace: '' - protocol: !Protocols {} - - *ref_53 - - !ObjectSchema &ref_121 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_54 - serializedName: id - language: !Languages - default: - name: id - description: The id of the key to regenerate. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: RegenerateKeyParameters - description: The parameters used to regenerate an API key. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_134 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ArraySchema &ref_89 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_61 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_55 - serializedName: name - language: !Languages - default: - name: name - description: 'Operation name: {provider}/{resource}/{operation}.' - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_62 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_56 - readOnly: true - serializedName: provider - language: !Languages - default: - name: provider - description: 'The resource provider name: Microsoft App Configuration."' - protocol: !Protocols {} - - !Property - schema: *ref_57 - serializedName: resource - language: !Languages - default: - name: resource - description: The resource on which the operation is performed. - protocol: !Protocols {} - - !Property - schema: *ref_58 - serializedName: operation - language: !Languages - default: - name: operation - description: The operation that users can perform. - protocol: !Protocols {} - - !Property - schema: *ref_59 - serializedName: description - language: !Languages - default: - name: description - description: The description for the operation. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: OperationDefinitionDisplay - description: The display information for a configuration store operation. - namespace: '' - protocol: !Protocols {} - serializedName: display - language: !Languages - default: - name: display - description: The display information for the configuration store operation. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: OperationDefinition - description: The definition of a configuration store operation. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: OperationDefinitionListResultValue - description: The collection value. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The collection value. - protocol: !Protocols {} - - !Property - schema: *ref_60 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: OperationDefinitionListResult - description: The result of a request to list configuration store operations. - namespace: '' - protocol: !Protocols {} - - *ref_61 - - *ref_62 - - !ObjectSchema &ref_125 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_63 - required: true - serializedName: key - language: !Languages - default: - name: key - description: The key to retrieve. - protocol: !Protocols {} - - !Property - schema: *ref_64 - required: false - serializedName: label - language: !Languages - default: - name: label - description: The label of the key. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: ListKeyValueParameters - description: The parameters used to list a configuration store key-value - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_129 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_65 - readOnly: true - serializedName: key - language: !Languages - default: - name: key - description: "The primary identifier of a key-value.\r\nThe key is used in unison with the label to uniquely identify a key-value." - protocol: !Protocols {} - - !Property - schema: *ref_66 - readOnly: true - serializedName: label - language: !Languages - default: - name: label - description: "A value used to group key-values.\r\nThe label is used in unison with the key to uniquely identify a key-value." - protocol: !Protocols {} - - !Property - schema: *ref_67 - readOnly: true - serializedName: value - language: !Languages - default: - name: value - description: The value of the key-value. - protocol: !Protocols {} - - !Property - schema: *ref_68 - readOnly: true - serializedName: contentType - language: !Languages - default: - name: contentType - description: "The content type of the key-value's value.\r\nProviding a proper content-type can enable transformations of values when they are retrieved by applications." - protocol: !Protocols {} - - !Property - schema: *ref_69 - readOnly: true - serializedName: eTag - language: !Languages - default: - name: eTag - description: An ETag indicating the state of a key-value within a configuration store. - protocol: !Protocols {} - - !Property - schema: *ref_70 - readOnly: true - serializedName: lastModified - language: !Languages - default: - name: lastModified - description: The last time a modifying operation was performed on the given key-value. - protocol: !Protocols {} - - !Property - schema: *ref_71 - readOnly: true - serializedName: locked - language: !Languages - default: - name: locked - description: "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked." - protocol: !Protocols {} - - !Property - schema: *ref_72 - readOnly: true - serializedName: tags - language: !Languages - default: - name: tags - description: A dictionary of tags that can help identify what a key-value may be applicable for. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: KeyValue - description: The result of a request to retrieve a key-value from the specified configuration store. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_137 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ArraySchema &ref_90 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_77 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_73 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The resource ID. - protocol: !Protocols {} - - !Property - schema: *ref_74 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_75 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_16 - flattenedNames: - - properties - - provisioningState - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The provisioning status of the private endpoint connection. - protocol: !Protocols {} - - !Property - schema: *ref_35 - flattenedNames: - - properties - - privateEndpoint - serializedName: privateEndpoint - language: !Languages - default: - name: privateEndpoint - description: The resource of private endpoint. - protocol: !Protocols {} - - !Property - schema: *ref_36 - flattenedNames: - - properties - - privateLinkServiceConnectionState - serializedName: privateLinkServiceConnectionState - language: !Languages - default: - name: privateLinkServiceConnectionState - description: A collection of information about the state of the connection between service consumer and provider. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: PrivateEndpointConnection - description: A private endpoint connection - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: PrivateEndpointConnectionListResultValue - description: The collection value. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The collection value. - protocol: !Protocols {} - - !Property - schema: *ref_76 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: PrivateEndpointConnectionListResult - description: A list of private endpoint connections - namespace: '' - protocol: !Protocols {} - - *ref_77 - - !ObjectSchema &ref_150 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: !ArraySchema &ref_93 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: !ObjectSchema &ref_85 - type: object - apiVersions: - - !ApiVersion - version: '2020-06-01' - properties: - - !Property - schema: *ref_78 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The resource ID. - protocol: !Protocols {} - - !Property - schema: *ref_79 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_80 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_81 - flattenedNames: - - properties - - groupId - readOnly: true - serializedName: groupId - language: !Languages - default: - name: groupId - description: The private link resource group id. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_91 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: *ref_82 - language: !Languages - default: - name: PrivateLinkResourcePropertiesRequiredMembers - description: The private link resource required member names. - protocol: !Protocols {} - flattenedNames: - - properties - - requiredMembers - readOnly: true - serializedName: requiredMembers - language: !Languages - default: - name: requiredMembers - description: The private link resource required member names. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_92 - type: array - apiVersions: - - !ApiVersion - version: '2020-06-01' - elementType: *ref_83 - language: !Languages - default: - name: PrivateLinkResourcePropertiesRequiredZoneNames - description: The list of required DNS zone names of the private link resource. - protocol: !Protocols {} - flattenedNames: - - properties - - requiredZoneNames - readOnly: true - serializedName: requiredZoneNames - language: !Languages - default: - name: requiredZoneNames - description: The list of required DNS zone names of the private link resource. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: PrivateLinkResource - description: A resource that supports private link capabilities. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: PrivateLinkResourceListResultValue - description: The collection value. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The collection value. - protocol: !Protocols {} - - !Property - schema: *ref_84 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URI that can be used to request the next set of paged results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: PrivateLinkResourceListResult - description: A list of private link resources. - namespace: '' - protocol: !Protocols {} - - *ref_85 - arrays: - - *ref_86 - - *ref_87 - - *ref_88 - - *ref_89 - - *ref_90 - - *ref_91 - - *ref_92 - - *ref_93 -globalParameters: - - !Parameter &ref_96 - schema: *ref_3 - implementation: Client - required: true - extensions: - x-ms-priority: 0 - language: !Languages - default: - name: SubscriptionId - description: The Microsoft Azure subscription ID. - serializedName: subscriptionId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_95 - schema: *ref_0 - clientDefaultValue: https://management.azure.com - implementation: Client - origin: modelerfour:synthesized/host - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: $host - description: server parameter - serializedName: $host - protocol: !Protocols - http: !HttpParameter - in: uri - - !Parameter &ref_97 - schema: *ref_94 - implementation: Client - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query -operationGroups: - - !OperationGroup - $key: ConfigurationStores - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - *ref_97 - - !Parameter &ref_99 - schema: *ref_3 - implementation: Method - language: !Languages - default: - name: skipToken - description: >- - A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that - specifies a starting point to use for subsequent calls. - serializedName: $skipToken - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores - method: get - uri: '{$host}' - signatureParameters: - - *ref_99 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_List: - parameters: - api-version: '2020-06-01' - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - value: - - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: {} - - name: contoso2 - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso2 - identity: - type: SystemAssigned - principalId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - location: westus - properties: - creationDate: '2018-04-24T23:06:59+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso2.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: List - description: Lists the configuration stores for a given subscription. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_102 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_103 - schema: *ref_3 - implementation: Method - language: !Languages - default: - name: skipToken - description: >- - A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that - specifies a starting point to use for subsequent calls. - serializedName: $skipToken - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores - method: get - uri: '{$host}' - signatureParameters: - - *ref_102 - - *ref_103 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_ListByResourceGroup: - parameters: - api-version: '2020-06-01' - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - value: - - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: {} - - name: contoso2 - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso2 - location: westus - properties: - creationDate: '2018-04-24T23:06:59+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso2.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListByResourceGroup - description: Lists the configuration stores for a given resource group. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_105 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_106 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_105 - - *ref_106 - responses: - - !SchemaResponse - schema: *ref_4 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_Get: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: {} - language: !Languages - default: - name: Get - description: Gets the properties of the specified configuration store. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_109 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_110 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_108 - schema: *ref_4 - implementation: Method - required: true - language: !Languages - default: - name: configStoreCreationParameters - description: The parameters for creating a configuration store. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_108 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_109 - - *ref_110 - responses: - - !SchemaResponse - schema: *ref_4 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_4 - language: !Languages - default: - name: '' - description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_Create: - parameters: - api-version: '2020-06-01' - configStoreCreationParameters: - location: westus - sku: - name: Standard - tags: - myTag: myTagValue - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - myTag: myTagValue - '201': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Creating - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - myTag: myTagValue - ConfigurationStores_Create_WithIdentity: - parameters: - api-version: '2020-06-01' - configStoreCreationParameters: - identity: - type: SystemAssigned, UserAssigned - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: {} - location: westus - sku: - name: Standard - tags: - myTag: myTagValue - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned, UserAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: - clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC - principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - myTag: myTagValue - '201': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned, UserAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: - clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC - principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Creating - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - myTag: myTagValue - x-ms-long-running-operation: true - language: !Languages - default: - name: Create - description: Creates a configuration store with the specified parameters. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_111 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_112 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_111 - - *ref_112 - responses: - - !Response - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: The request was successful; the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - the specified resource was not found. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_Delete: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': {} - '202': {} - '204': {} - x-ms-long-running-operation: true - language: !Languages - default: - name: Delete - description: Deletes a configuration store. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_115 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_116 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_114 - schema: *ref_113 - implementation: Method - required: true - language: !Languages - default: - name: configStoreUpdateParameters - description: The parameters for updating a configuration store. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_114 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} - method: patch - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_115 - - *ref_116 - responses: - - !SchemaResponse - schema: *ref_4 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_4 - language: !Languages - default: - name: '' - description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_Update: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - configStoreUpdateParameters: - sku: - name: Standard - tags: - Category: Marketing - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - Category: Marketing - '201': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Updating - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - Category: Marketing - ConfigurationStores_Update_WithIdentity: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - configStoreUpdateParameters: - identity: - type: SystemAssigned, UserAssigned - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: {} - sku: - name: Standard - tags: - Category: Marketing - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned, UserAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: - clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC - principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Succeeded - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - Category: Marketing - '201': - body: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso - identity: - type: SystemAssigned, UserAssigned - principalId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA - tenantId: BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB - userAssignedIdentities: - /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2: - clientId: CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC - principalId: DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD - location: westus - properties: - creationDate: '2018-04-24T16:30:55+00:00' - encryption: - keyVaultProperties: - identityClientId: null - keyIdentifier: null - endpoint: https://contoso.azconfig.io - privateEndpointConnections: [] - provisioningState: Updating - publicNetworkAccess: Disabled - sku: - name: Standard - tags: - Category: Marketing - x-ms-long-running-operation: true - language: !Languages - default: - name: Update - description: Updates a configuration store with the specified parameters. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_117 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_118 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_119 - schema: *ref_3 - implementation: Method - language: !Languages - default: - name: skipToken - description: >- - A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that - specifies a starting point to use for subsequent calls. - serializedName: $skipToken - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys - method: post - uri: '{$host}' - signatureParameters: - - *ref_117 - - *ref_118 - - *ref_119 - responses: - - !SchemaResponse - schema: *ref_120 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_ListKeys: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - value: - - name: Primary - connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - id: 439AD01B4BE67DB1 - lastModified: '2018-04-24T16:30:54+00:00' - readOnly: false - value: '000000000000000000000000000000000000000000000000000000' - - name: Secondary - connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - id: CB45E100456857B9 - lastModified: '2018-04-24T16:30:54+00:00' - readOnly: false - value: '000000000000000000000000000000000000000000000000000000' - - name: Primary Read Only - connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - id: B3AC55B7E71431A9 - lastModified: '2018-04-24T16:30:54+00:00' - readOnly: true - value: '000000000000000000000000000000000000000000000000000000' - - name: Secondary Read Only - connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - id: E2AF6A9A89DCC177 - lastModified: '2018-04-24T16:30:54+00:00' - readOnly: true - value: '000000000000000000000000000000000000000000000000000000' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListKeys - description: Lists the access key for the specified configuration store. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_123 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_124 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_122 - schema: *ref_121 - implementation: Method - required: true - language: !Languages - default: - name: regenerateKeyParameters - description: The parameters for regenerating an access key. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_122 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_123 - - *ref_124 - responses: - - !SchemaResponse - schema: *ref_53 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_RegenerateKey: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - regenerateKeyParameters: - id: 439AD01B4BE67DB1 - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: Primary - connectionString: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - id: 439AD01B4BE67DB1 - lastModified: '2018-04-26T22:59:24.2370906+00:00' - readOnly: false - value: '000000000000000000000000000000000000000000000000000000' - language: !Languages - default: - name: RegenerateKey - description: Regenerates an access key for the specified configuration store. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_127 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_128 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_126 - schema: *ref_125 - implementation: Method - required: true - language: !Languages - default: - name: listKeyValueParameters - description: The parameters for retrieving a key-value. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_126 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_127 - - *ref_128 - responses: - - !SchemaResponse - schema: *ref_129 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_ListKeyValue: - parameters: - api-version: '2020-06-01' - configStoreName: fayeh - listKeyValueParameters: - key: MaxRequests - label: dev - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - contentType: '' - eTag: 4f6dd610dd5e4deebc7fbaef685fb903 - key: MaxRequests - label: dev - lastModified: '2017-12-05T02:41:26+00:00' - locked: false - tags: - t1: value1 - t2: value2 - value: '100' - language: !Languages - default: - name: ListKeyValue - description: Lists a configuration store key-value. - protocol: !Protocols {} - language: !Languages - default: - name: ConfigurationStores - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: Operations - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_131 - schema: *ref_130 - implementation: Method - required: true - language: !Languages - default: - name: checkNameAvailabilityParameters - description: The object containing information for the availability request. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_131 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: [] - responses: - - !SchemaResponse - schema: *ref_132 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ConfigurationStores_CheckNameAvailable: - parameters: - api-version: '2020-06-01' - checkNameAvailabilityParameters: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - message: The specified name is available. - nameAvailable: true - reason: null - ConfigurationStores_CheckNameNotAvailable: - parameters: - api-version: '2020-06-01' - checkNameAvailabilityParameters: - name: contoso - type: Microsoft.AppConfiguration/configurationStores - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - message: The specified name is already in use. - nameAvailable: false - reason: AlreadyExists - language: !Languages - default: - name: CheckNameAvailability - description: Checks whether the configuration store name is available for use. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_97 - - !Parameter &ref_133 - schema: *ref_3 - implementation: Method - language: !Languages - default: - name: skipToken - description: >- - A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that - specifies a starting point to use for subsequent calls. - serializedName: $skipToken - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.AppConfiguration/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_133 - responses: - - !SchemaResponse - schema: *ref_134 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: List - description: Lists the operations available from this provider. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - language: !Languages - default: - name: Operations - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: PrivateEndpointConnections - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_135 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_136 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections - method: get - uri: '{$host}' - signatureParameters: - - *ref_135 - - *ref_136 - responses: - - !SchemaResponse - schema: *ref_137 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateEndpointConnection_List: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - value: - - name: myConnection - type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection - properties: - privateEndpoint: - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 - privateLinkServiceConnectionState: - description: Auto-Approved - actionsRequired: None - status: Approved - provisioningState: Succeeded - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListByConfigurationStore - description: Lists all private endpoint connections for a configuration store. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_138 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_139 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_140 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: privateEndpointConnectionName - description: Private endpoint connection name - serializedName: privateEndpointConnectionName - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_138 - - *ref_139 - - *ref_140 - responses: - - !SchemaResponse - schema: *ref_77 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateEndpointConnection_GetConnection: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - privateEndpointConnectionName: myConnection - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: myConnection - type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection - properties: - privateEndpoint: - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 - privateLinkServiceConnectionState: - description: Auto-Approved - actionsRequired: None - status: Approved - provisioningState: Succeeded - language: !Languages - default: - name: Get - description: Gets the specified private endpoint connection associated with the configuration store. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_142 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_143 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_144 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: privateEndpointConnectionName - description: Private endpoint connection name - serializedName: privateEndpointConnectionName - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_107 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_141 - schema: *ref_77 - implementation: Method - required: true - language: !Languages - default: - name: privateEndpointConnection - description: The private endpoint connection properties. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_141 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_142 - - *ref_143 - - *ref_144 - responses: - - !SchemaResponse - schema: *ref_77 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_77 - language: !Languages - default: - name: '' - description: The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateEndpointConnection_CreateOrUpdate: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - privateEndpointConnection: - properties: - privateLinkServiceConnectionState: - description: Auto-Approved - status: Approved - privateEndpointConnectionName: myConnection - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: myConnection - type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection - properties: - privateEndpoint: - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 - privateLinkServiceConnectionState: - description: Auto-Approved - actionsRequired: None - status: Approved - provisioningState: Succeeded - '201': - body: - name: myConnection - type: Microsoft.AppConfiguration/configurationStores/privateEndpointConnections - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateEndpointConnections/myConnection - properties: - privateEndpoint: - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01 - privateLinkServiceConnectionState: - description: Auto-Approved - actionsRequired: None - status: Approved - provisioningState: Succeeded - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdate - description: Update the state of the specified private endpoint connection associated with the configuration store. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_145 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_146 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_147 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: privateEndpointConnectionName - description: Private endpoint connection name - serializedName: privateEndpointConnectionName - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_145 - - *ref_146 - - *ref_147 - responses: - - !Response - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: The request was successful; the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - the specified resource was not found. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateEndpointConnections_Delete: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - privateEndpointConnectionName: myConnection - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': {} - '202': {} - '204': {} - x-ms-long-running-operation: true - language: !Languages - default: - name: Delete - description: Deletes a private endpoint connection. - protocol: !Protocols {} - language: !Languages - default: - name: PrivateEndpointConnections - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: PrivateLinkResources - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_148 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_149 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources - method: get - uri: '{$host}' - signatureParameters: - - *ref_148 - - *ref_149 - responses: - - !SchemaResponse - schema: *ref_150 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateLinkResources_ListGroupIds: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - value: - - name: configurationStores - type: Microsoft.AppConfiguraiton/configurationStores/privateLinkResources - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateLinkResources/configurationStores - properties: - groupId: configurationStores - requiredMembers: - - configurationStores - requiredZoneNames: - - privatelink.azconfig.io - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListByConfigurationStore - description: Gets the private link resources that need to be created for a configuration store. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-06-01' - parameters: - - *ref_95 - - *ref_96 - - !Parameter &ref_151 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to which the container registry belongs. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_152 - schema: *ref_104 - implementation: Method - required: true - language: !Languages - default: - name: configStoreName - description: The name of the configuration store. - serializedName: configStoreName - protocol: !Protocols - http: !HttpParameter - in: path - - *ref_97 - - !Parameter &ref_153 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: groupName - description: The name of the private link resource group. - serializedName: groupName - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_98 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_151 - - *ref_152 - - *ref_153 - responses: - - !SchemaResponse - schema: *ref_85 - language: !Languages - default: - name: '' - description: The request was successful; the request was well-formed and received properly. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_101 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - PrivateLinkResources_Get: - parameters: - api-version: '2020-06-01' - configStoreName: contoso - groupName: configurationStores - resourceGroupName: myResourceGroup - subscriptionId: c80fb759-c965-4c6a-9110-9b2b2d038882 - responses: - '200': - body: - name: configurationStores - type: Microsoft.AppConfiguraiton/configurationStores/privateLinkResources - id: /subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso/privateLinkResources/configurationStores - properties: - groupId: configurationStores - requiredMembers: - - configurationStores - requiredZoneNames: - - privatelink.azconfig.io - language: !Languages - default: - name: Get - description: Gets a private link resource that need to be created for a configuration store. - protocol: !Protocols {} - language: !Languages - default: - name: PrivateLinkResources - description: '' - protocol: !Protocols {} -security: !Security - authenticationRequired: true -language: !Languages - default: - name: AppConfigurationManagementClient - description: '' -protocol: !Protocols - http: !HttpModel {} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json deleted file mode 100644 index 42745d768547a..0000000000000 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Configuration.json +++ /dev/null @@ -1 +0,0 @@ -{"OutputFolder":".","Namespace":"Azure.ResourceManager.AppConfiguration","LibraryName":null,"SharedSourceFolders":["..\\..\\..\\..\\core\\Azure.Core\\src\\Shared\\","..\\..\\..\\..\\..\\..\\.nuget\\packages\\microsoft.azure.autorest.csharp\\3.0.0-beta.20210308.3\\content\\Generator.Shared\\"],"AzureArm":true,"PublicClients":true,"ModelNamespace":true,"HeadAsBoolean":true,"SkipCSProjPackageReference":false,"CredentialTypes":[],"CredentialScopes":[],"CredentialHeaderName":"api-key"} \ No newline at end of file diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs index f4dc80cff3d15..72bf76ae53acd 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/EncryptionProperties.Serialization.cs @@ -17,8 +17,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(KeyVaultProperties)) { - writer.WritePropertyName("keyVaultProperties"); - writer.WriteObjectValue(KeyVaultProperties); + if (KeyVaultProperties != null) + { + writer.WritePropertyName("keyVaultProperties"); + writer.WriteObjectValue(KeyVaultProperties); + } + else + { + writer.WriteNull("keyVaultProperties"); + } } writer.WriteEndObject(); } @@ -32,7 +39,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + keyVaultProperties = null; continue; } keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 3c6e2ae6f1e61..813c96994ce8f 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d302c82f32daec0feb68cd7d68d45ba898b67ee7/specification/appconfiguration/resource-manager/readme.md -save-inputs: true ``` ## Swagger workarounds @@ -14,17 +13,17 @@ save-inputs: true ``` yaml directive: - from: swagger-document - where: $.definitions.KeyVaultProperties - transform: > - $["x-nullable"] = true; + - from: swagger-document + where: $.definitions.EncryptionProperties + transform: > + $.properties.keyVaultProperties["x-nullable"] = true; ``` ``` yaml directive: - from: swagger-document - where: $.definitions.ConfigurationStoreProperties - transform: > - $.properties.privateEndpointConnections["x-nullable"] = true; -``` \ No newline at end of file + - from: swagger-document + where: $.definitions.ConfigurationStoreProperties + transform: > + $.properties.privateEndpointConnections["x-nullable"] = true; +```` \ No newline at end of file From 4eb03c6d4212a9038d4e7809dc8f771baae8e5bd Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 23:38:44 -0800 Subject: [PATCH 7/8] Update autorest version --- eng/Packages.Data.props | 2 +- .../src/autorest.md | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 21641642b5c8a..03372fd5c5db7 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -122,7 +122,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index 813c96994ce8f..0915f9c2ed8c3 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -13,17 +13,17 @@ require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d302c82f32 ``` yaml directive: - - from: swagger-document - where: $.definitions.EncryptionProperties - transform: > - $.properties.keyVaultProperties["x-nullable"] = true; -``` + from: swagger-document + where: $.definitions.EncryptionProperties + transform: > + $.properties.keyVaultProperties["x-nullable"] = true; +```` ``` yaml directive: - - from: swagger-document - where: $.definitions.ConfigurationStoreProperties - transform: > - $.properties.privateEndpointConnections["x-nullable"] = true; + from: swagger-document + where: $.definitions.ConfigurationStoreProperties + transform: > + $.properties.privateEndpointConnections["x-nullable"] = true; ```` \ No newline at end of file From 0bf9528027f65be93d8e1ded64abd717b4e29740 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Tue, 9 Mar 2021 23:39:12 -0800 Subject: [PATCH 8/8] Generate code with the updated version --- .../AlertingResultQuery.Serialization.cs | 2 +- .../Generated/Models/AlertingResultQuery.cs | 2 +- .../Models/AnomalyAlert.Serialization.cs | 25 ++---- .../src/Generated/Models/AnomalyAlert.cs | 11 +-- ...AlertingConfigurationList.Serialization.cs | 2 +- .../AnomalyAlertingConfigurationList.cs | 2 +- ...etectionConfigurationList.Serialization.cs | 2 +- .../AnomalyDetectionConfigurationList.cs | 2 +- .../AnomalyDimensionQuery.Serialization.cs | 2 +- .../Generated/Models/AnomalyDimensionQuery.cs | 2 +- .../AnomalyFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/AnomalyFeedbackValue.cs | 2 +- .../Models/AnomalyProperty.Serialization.cs | 2 +- .../src/Generated/Models/AnomalyProperty.cs | 2 +- ...plicationInsightsDataFeed.Serialization.cs | 17 ++-- .../AzureApplicationInsightsDataFeed.cs | 2 +- ...tionInsightsDataFeedPatch.Serialization.cs | 2 +- .../AzureApplicationInsightsDataFeedPatch.cs | 2 +- ...licationInsightsParameter.Serialization.cs | 66 +++++++++++++-- .../AzureApplicationInsightsParameter.cs | 22 +---- .../Models/AzureBlobDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/AzureBlobDataFeed.cs | 2 +- .../AzureBlobDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureBlobDataFeedPatch.cs | 2 +- .../AzureBlobParameter.Serialization.cs | 50 +++++++++-- .../Generated/Models/AzureBlobParameter.cs | 18 +--- .../AzureCosmosDBDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/AzureCosmosDBDataFeed.cs | 2 +- ...zureCosmosDBDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureCosmosDBDataFeedPatch.cs | 2 +- .../AzureCosmosDBParameter.Serialization.cs | 66 +++++++++++++-- .../Models/AzureCosmosDBParameter.cs | 22 +---- ...AzureDataExplorerDataFeed.Serialization.cs | 17 ++-- .../Models/AzureDataExplorerDataFeed.cs | 2 +- ...DataExplorerDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureDataExplorerDataFeedPatch.cs | 2 +- ...taLakeStorageGen2DataFeed.Serialization.cs | 17 ++-- .../AzureDataLakeStorageGen2DataFeed.cs | 2 +- ...eStorageGen2DataFeedPatch.Serialization.cs | 2 +- .../AzureDataLakeStorageGen2DataFeedPatch.cs | 2 +- ...aLakeStorageGen2Parameter.Serialization.cs | 82 ++++++++++++++++--- .../AzureDataLakeStorageGen2Parameter.cs | 26 +----- .../AzureTableDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/AzureTableDataFeed.cs | 2 +- .../AzureTableDataFeedPatch.Serialization.cs | 2 +- .../Models/AzureTableDataFeedPatch.cs | 2 +- .../AzureTableParameter.Serialization.cs | 50 +++++++++-- .../Generated/Models/AzureTableParameter.cs | 18 +--- .../ChangePointFeedbackValue.Serialization.cs | 2 +- .../Models/ChangePointFeedbackValue.cs | 2 +- .../CommentFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/CommentFeedbackValue.cs | 2 +- .../Models/DataFeedDetail.Serialization.cs | 15 +++- ...DataFeedIngestionProgress.Serialization.cs | 8 +- .../DataFeedIngestionStatus.Serialization.cs | 18 +--- .../Models/DataFeedIngestionStatus.cs | 11 +-- ...ionAnomalyFilterCondition.Serialization.cs | 2 +- .../Models/DetectionAnomalyFilterCondition.cs | 2 +- ...tectionAnomalyResultQuery.Serialization.cs | 2 +- .../Models/DetectionAnomalyResultQuery.cs | 2 +- ...onIncidentFilterCondition.Serialization.cs | 2 +- .../DetectionIncidentFilterCondition.cs | 2 +- ...ectionIncidentResultQuery.Serialization.cs | 2 +- .../Models/DetectionIncidentResultQuery.cs | 2 +- .../DetectionSeriesQuery.Serialization.cs | 2 +- .../Generated/Models/DetectionSeriesQuery.cs | 2 +- .../ElasticsearchDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/ElasticsearchDataFeed.cs | 2 +- ...lasticsearchDataFeedPatch.Serialization.cs | 2 +- .../Models/ElasticsearchDataFeedPatch.cs | 2 +- .../ElasticsearchParameter.Serialization.cs | 66 +++++++++++++-- .../Models/ElasticsearchParameter.cs | 22 +---- .../EmailHookInfoPatch.Serialization.cs | 2 +- .../Generated/Models/EmailHookInfoPatch.cs | 2 +- .../EmailHookParameter.Serialization.cs | 2 +- .../Generated/Models/EmailHookParameter.cs | 2 +- .../Models/EnrichmentStatus.Serialization.cs | 13 +-- .../src/Generated/Models/EnrichmentStatus.cs | 15 ++-- ...richmentStatusQueryOption.Serialization.cs | 2 +- .../Models/EnrichmentStatusQueryOption.cs | 2 +- .../HttpRequestDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/HttpRequestDataFeed.cs | 2 +- .../HttpRequestDataFeedPatch.Serialization.cs | 2 +- .../Models/HttpRequestDataFeedPatch.cs | 2 +- .../HttpRequestParameter.Serialization.cs | 66 +++++++++++++-- .../Generated/Models/HttpRequestParameter.cs | 22 +---- .../Models/IncidentProperty.Serialization.cs | 2 +- .../src/Generated/Models/IncidentProperty.cs | 2 +- .../Models/InfluxDBDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/InfluxDBDataFeed.cs | 2 +- .../InfluxDBDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/InfluxDBDataFeedPatch.cs | 2 +- .../Models/InfluxDBParameter.Serialization.cs | 82 ++++++++++++++++--- .../src/Generated/Models/InfluxDBParameter.cs | 26 +----- ...stionProgressResetOptions.Serialization.cs | 2 +- .../Models/IngestionProgressResetOptions.cs | 2 +- ...gestionStatusQueryOptions.Serialization.cs | 2 +- .../Models/IngestionStatusQueryOptions.cs | 2 +- .../MetricAnomalyFeedback.Serialization.cs | 29 +++++-- .../MetricCommentFeedback.Serialization.cs | 30 +++++-- .../Models/MetricDataList.Serialization.cs | 2 +- .../src/Generated/Models/MetricDataList.cs | 2 +- .../MetricDataQueryOptions.Serialization.cs | 2 +- .../Models/MetricDataQueryOptions.cs | 2 +- ...tricDimensionQueryOptions.Serialization.cs | 2 +- .../Models/MetricDimensionQueryOptions.cs | 2 +- .../MetricFeedbackFilter.Serialization.cs | 2 +- .../Generated/Models/MetricFeedbackFilter.cs | 2 +- .../Models/MetricSeriesData.Serialization.cs | 23 +----- .../src/Generated/Models/MetricSeriesData.cs | 26 +++++- .../MetricSeriesDefinition.Serialization.cs | 11 +-- .../Models/MetricSeriesDefinition.cs | 18 ++-- .../MetricSeriesQueryOptions.Serialization.cs | 2 +- .../Models/MetricSeriesQueryOptions.cs | 2 +- .../Models/MongoDBDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/MongoDBDataFeed.cs | 2 +- .../MongoDBDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/MongoDBDataFeedPatch.cs | 2 +- .../Models/MongoDBParameter.Serialization.cs | 50 +++++++++-- .../src/Generated/Models/MongoDBParameter.cs | 18 +--- .../Models/MySqlDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/MySqlDataFeed.cs | 2 +- .../MySqlDataFeedPatch.Serialization.cs | 2 +- .../Generated/Models/MySqlDataFeedPatch.cs | 2 +- .../PeriodFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/PeriodFeedbackValue.cs | 2 +- .../PostgreSqlDataFeed.Serialization.cs | 17 ++-- .../Generated/Models/PostgreSqlDataFeed.cs | 2 +- .../PostgreSqlDataFeedPatch.Serialization.cs | 2 +- .../Models/PostgreSqlDataFeedPatch.cs | 2 +- .../Models/RootCauseList.Serialization.cs | 2 +- .../src/Generated/Models/RootCauseList.cs | 2 +- .../Models/SQLServerDataFeed.Serialization.cs | 17 ++-- .../src/Generated/Models/SQLServerDataFeed.cs | 2 +- .../SQLServerDataFeedPatch.Serialization.cs | 2 +- .../Models/SQLServerDataFeedPatch.cs | 2 +- .../Models/SeriesIdentity.Serialization.cs | 2 +- .../src/Generated/Models/SeriesIdentity.cs | 2 +- .../Models/SeriesResultList.Serialization.cs | 2 +- .../src/Generated/Models/SeriesResultList.cs | 2 +- .../SeverityFilterCondition.Serialization.cs | 2 +- .../Models/SeverityFilterCondition.cs | 2 +- .../SqlSourceParameter.Serialization.cs | 34 ++++++-- .../Generated/Models/SqlSourceParameter.cs | 14 +--- .../Models/UsageStats.Serialization.cs | 2 +- .../src/Generated/Models/UsageStats.cs | 2 +- .../WebhookHookInfoPatch.Serialization.cs | 2 +- .../Generated/Models/WebhookHookInfoPatch.cs | 2 +- .../DetectedLanguageInternal.Serialization.cs | 10 +++ .../Models/DetectedLanguageInternal.cs | 12 --- .../Models/DocumentEntities.Serialization.cs | 2 +- .../src/Generated/Models/DocumentEntities.cs | 2 +- .../Models/DocumentError.Serialization.cs | 2 +- .../src/Generated/Models/DocumentError.cs | 2 +- .../DocumentKeyPhrases.Serialization.cs | 2 +- .../Generated/Models/DocumentKeyPhrases.cs | 2 +- .../Models/DocumentLanguage.Serialization.cs | 2 +- .../src/Generated/Models/DocumentLanguage.cs | 2 +- .../DocumentLinkedEntities.Serialization.cs | 2 +- .../Models/DocumentLinkedEntities.cs | 2 +- .../Models/EntitiesResult.Serialization.cs | 2 +- .../src/Generated/Models/EntitiesResult.cs | 2 +- .../Models/EntitiesTask.Serialization.cs | 2 +- .../src/Generated/Models/EntitiesTask.cs | 2 +- .../Generated/Models/Entity.Serialization.cs | 2 +- .../src/Generated/Models/Entity.cs | 2 +- .../EntityLinkingResult.Serialization.cs | 2 +- .../Generated/Models/EntityLinkingResult.cs | 2 +- .../Models/EntityLinkingTask.Serialization.cs | 2 +- .../src/Generated/Models/EntityLinkingTask.cs | 2 +- .../Models/JobDescriptor.Serialization.cs | 2 +- .../src/Generated/Models/JobDescriptor.cs | 2 +- .../Models/JobManifest.Serialization.cs | 2 +- .../src/Generated/Models/JobManifest.cs | 2 +- .../Models/KeyPhraseResult.Serialization.cs | 2 +- .../src/Generated/Models/KeyPhraseResult.cs | 2 +- .../Models/KeyPhrasesTask.Serialization.cs | 2 +- .../src/Generated/Models/KeyPhrasesTask.cs | 2 +- .../LanguageBatchInput.Serialization.cs | 2 +- .../Generated/Models/LanguageBatchInput.cs | 2 +- .../Models/LanguageInput.Serialization.cs | 24 ++++-- .../src/Generated/Models/LanguageInput.cs | 14 +--- .../Models/LanguageResult.Serialization.cs | 2 +- .../src/Generated/Models/LanguageResult.cs | 2 +- .../MultiLanguageBatchInput.Serialization.cs | 2 +- .../Models/MultiLanguageBatchInput.cs | 2 +- .../MultiLanguageInput.Serialization.cs | 2 +- .../Generated/Models/MultiLanguageInput.cs | 2 +- .../PiiDocumentEntities.Serialization.cs | 2 +- .../Generated/Models/PiiDocumentEntities.cs | 2 +- .../Generated/Models/PiiTask.Serialization.cs | 2 +- .../src/Generated/Models/PiiTask.cs | 2 +- .../Models/SentimentResponse.Serialization.cs | 2 +- .../src/Generated/Models/SentimentResponse.cs | 2 +- ...argetConfidenceScoreLabel.Serialization.cs | 2 +- .../Models/TargetConfidenceScoreLabel.cs | 2 +- .../Models/TargetRelation.Serialization.cs | 2 +- .../src/Generated/Models/TargetRelation.cs | 2 +- ...pdateModelSettingsRequest.Serialization.cs | 2 +- .../Models/UpdateModelSettingsRequest.cs | 2 +- 200 files changed, 1009 insertions(+), 643 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs index 6e33995e5d3e9..a443e09737711 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AlertingResultQuery : IUtf8JsonSerializable + internal partial class AlertingResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs index a1b64a1f725cb..20568989da294 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AlertingResultQuery. - public partial class AlertingResultQuery + internal partial class AlertingResultQuery { /// Initializes a new instance of AlertingResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs index 3f2e13d2bdd2d..6ec1e71f8cc1d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs @@ -15,10 +15,10 @@ public partial class AnomalyAlert { internal static AnomalyAlert DeserializeAnomalyAlert(JsonElement element) { - Optional alertId = default; - Optional timestamp = default; - Optional createdTime = default; - Optional modifiedTime = default; + string alertId = default; + DateTimeOffset timestamp = default; + DateTimeOffset createdTime = default; + DateTimeOffset modifiedTime = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("alertId")) @@ -28,36 +28,21 @@ internal static AnomalyAlert DeserializeAnomalyAlert(JsonElement element) } if (property.NameEquals("timestamp")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } timestamp = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("createdTime")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } createdTime = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("modifiedTime")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } modifiedTime = property.Value.GetDateTimeOffset("O"); continue; } } - return new AnomalyAlert(alertId.Value, timestamp, createdTime, modifiedTime); + return new AnomalyAlert(alertId, timestamp, createdTime, modifiedTime); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs index 2393fac1225ff..32d4f66386590 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.cs @@ -12,18 +12,19 @@ namespace Azure.AI.MetricsAdvisor.Models /// The AlertResult. public partial class AnomalyAlert { - /// Initializes a new instance of AnomalyAlert. - internal AnomalyAlert() - { - } - /// Initializes a new instance of AnomalyAlert. /// alert id. /// anomaly time. /// created time. /// modified time. + /// is null. internal AnomalyAlert(string id, DateTimeOffset timestamp, DateTimeOffset createdTime, DateTimeOffset modifiedTime) { + if (id == null) + { + throw new ArgumentNullException(nameof(id)); + } + Id = id; Timestamp = timestamp; CreatedTime = createdTime; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs index 8fbb8204f741c..8aaef89ff8e56 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AnomalyAlertingConfigurationList + internal partial class AnomalyAlertingConfigurationList { internal static AnomalyAlertingConfigurationList DeserializeAnomalyAlertingConfigurationList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs index 8fdd3571ee6ee..a8eb1579054fc 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyAlertingConfigurationList. - public partial class AnomalyAlertingConfigurationList + internal partial class AnomalyAlertingConfigurationList { /// Initializes a new instance of AnomalyAlertingConfigurationList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs index f679cd970ca98..0b7be3e97faca 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AnomalyDetectionConfigurationList + internal partial class AnomalyDetectionConfigurationList { internal static AnomalyDetectionConfigurationList DeserializeAnomalyDetectionConfigurationList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs index c7d12d8276f1f..9060ebd4edca4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyDetectionConfigurationList. - public partial class AnomalyDetectionConfigurationList + internal partial class AnomalyDetectionConfigurationList { /// Initializes a new instance of AnomalyDetectionConfigurationList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs index fbd3db3396c29..843695973dd7c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AnomalyDimensionQuery : IUtf8JsonSerializable + internal partial class AnomalyDimensionQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs index d5be96b6bc1b1..8d3e2b0076cb1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyDimensionQuery. - public partial class AnomalyDimensionQuery + internal partial class AnomalyDimensionQuery { /// Initializes a new instance of AnomalyDimensionQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs index 6f80de055c1eb..0cc4298dfec3b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AnomalyFeedbackValue : IUtf8JsonSerializable + internal partial class AnomalyFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs index e59a993af0b22..94102e12124b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyFeedbackValue. - public partial class AnomalyFeedbackValue + internal partial class AnomalyFeedbackValue { /// Initializes a new instance of AnomalyFeedbackValue. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs index aabb1407906a6..e79fee83d27fc 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AnomalyProperty + internal partial class AnomalyProperty { internal static AnomalyProperty DeserializeAnomalyProperty(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs index da544a401325d..f0bef75aac675 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyProperty. - public partial class AnomalyProperty + internal partial class AnomalyProperty { /// Initializes a new instance of AnomalyProperty. /// anomaly severity. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs index 2e3286f7132bc..6c91e552af435 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureApplicationInsightsDataFeed : IUtf8JsonSerializable + internal partial class AzureApplicationInsightsDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureApplicationInsightsDataFeed DeserializeAzureApplicationInsi string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureApplicationInsightsDataFeed DeserializeAzureApplicationInsi { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs index 971954a30868e..c79142a27d0ef 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsDataFeed. - public partial class AzureApplicationInsightsDataFeed : DataFeedDetail + internal partial class AzureApplicationInsightsDataFeed : DataFeedDetail { /// Initializes a new instance of AzureApplicationInsightsDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs index 8315cea416327..5e5e490450977 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureApplicationInsightsDataFeedPatch : IUtf8JsonSerializable + internal partial class AzureApplicationInsightsDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs index 2874388f514f4..121549939e576 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsDataFeedPatch. - public partial class AzureApplicationInsightsDataFeedPatch : DataFeedDetailPatch + internal partial class AzureApplicationInsightsDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureApplicationInsightsDataFeedPatch. public AzureApplicationInsightsDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs index 39f1773a8f56f..2dfa510e68d20 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs @@ -10,19 +10,47 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureApplicationInsightsParameter : IUtf8JsonSerializable + internal partial class AzureApplicationInsightsParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("azureCloud"); - writer.WriteStringValue(AzureCloud); - writer.WritePropertyName("applicationId"); - writer.WriteStringValue(ApplicationId); - writer.WritePropertyName("apiKey"); - writer.WriteStringValue(ApiKey); - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); + if (AzureCloud != null) + { + writer.WritePropertyName("azureCloud"); + writer.WriteStringValue(AzureCloud); + } + else + { + writer.WriteNull("azureCloud"); + } + if (ApplicationId != null) + { + writer.WritePropertyName("applicationId"); + writer.WriteStringValue(ApplicationId); + } + else + { + writer.WriteNull("applicationId"); + } + if (ApiKey != null) + { + writer.WritePropertyName("apiKey"); + writer.WriteStringValue(ApiKey); + } + else + { + writer.WriteNull("apiKey"); + } + if (Query != null) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } writer.WriteEndObject(); } @@ -36,21 +64,41 @@ internal static AzureApplicationInsightsParameter DeserializeAzureApplicationIns { if (property.NameEquals("azureCloud")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + azureCloud = null; + continue; + } azureCloud = property.Value.GetString(); continue; } if (property.NameEquals("applicationId")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + applicationId = null; + continue; + } applicationId = property.Value.GetString(); continue; } if (property.NameEquals("apiKey")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + apiKey = null; + continue; + } apiKey = property.Value.GetString(); continue; } if (property.NameEquals("query")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs index 7dad3019c9b5a..fddfb7c0b89ef 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.cs @@ -5,38 +5,18 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The AzureApplicationInsightsParameter. - public partial class AzureApplicationInsightsParameter + internal partial class AzureApplicationInsightsParameter { /// Initializes a new instance of AzureApplicationInsightsParameter. /// Azure cloud environment. /// Azure Application Insights ID. /// API Key. /// Query. - /// , , , or is null. public AzureApplicationInsightsParameter(string azureCloud, string applicationId, string apiKey, string query) { - if (azureCloud == null) - { - throw new ArgumentNullException(nameof(azureCloud)); - } - if (applicationId == null) - { - throw new ArgumentNullException(nameof(applicationId)); - } - if (apiKey == null) - { - throw new ArgumentNullException(nameof(apiKey)); - } - if (query == null) - { - throw new ArgumentNullException(nameof(query)); - } - AzureCloud = azureCloud; ApplicationId = applicationId; ApiKey = apiKey; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs index 0f819227edc8f..7fffaaeb34f13 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureBlobDataFeed : IUtf8JsonSerializable + internal partial class AzureBlobDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureBlobDataFeed DeserializeAzureBlobDataFeed(JsonElement eleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureBlobDataFeed DeserializeAzureBlobDataFeed(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs index 34ea6544436cb..69a47c3ba393f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobDataFeed. - public partial class AzureBlobDataFeed : DataFeedDetail + internal partial class AzureBlobDataFeed : DataFeedDetail { /// Initializes a new instance of AzureBlobDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs index 5c83cd71d5643..453543d8baa72 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureBlobDataFeedPatch : IUtf8JsonSerializable + internal partial class AzureBlobDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs index 1bfa2bcb7c689..81eab0600b50b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobDataFeedPatch. - public partial class AzureBlobDataFeedPatch : DataFeedDetailPatch + internal partial class AzureBlobDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureBlobDataFeedPatch. public AzureBlobDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs index bf7c79426e05c..8d2ca73a0383c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs @@ -10,17 +10,38 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureBlobParameter : IUtf8JsonSerializable + internal partial class AzureBlobParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("container"); - writer.WriteStringValue(Container); - writer.WritePropertyName("blobTemplate"); - writer.WriteStringValue(BlobTemplate); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (Container != null) + { + writer.WritePropertyName("container"); + writer.WriteStringValue(Container); + } + else + { + writer.WriteNull("container"); + } + if (BlobTemplate != null) + { + writer.WritePropertyName("blobTemplate"); + writer.WriteStringValue(BlobTemplate); + } + else + { + writer.WriteNull("blobTemplate"); + } writer.WriteEndObject(); } @@ -33,16 +54,31 @@ internal static AzureBlobParameter DeserializeAzureBlobParameter(JsonElement ele { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("container")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + container = null; + continue; + } container = property.Value.GetString(); continue; } if (property.NameEquals("blobTemplate")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + blobTemplate = null; + continue; + } blobTemplate = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs index 6e36778098d3c..e6680f04cd5d6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.cs @@ -5,33 +5,17 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The AzureBlobParameter. - public partial class AzureBlobParameter + internal partial class AzureBlobParameter { /// Initializes a new instance of AzureBlobParameter. /// Azure Blob connection string. /// Container. /// Blob Template. - /// , , or is null. public AzureBlobParameter(string connectionString, string container, string blobTemplate) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (container == null) - { - throw new ArgumentNullException(nameof(container)); - } - if (blobTemplate == null) - { - throw new ArgumentNullException(nameof(blobTemplate)); - } - ConnectionString = connectionString; Container = container; BlobTemplate = blobTemplate; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs index 53f799b8e2972..6f4d7587dafb2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureCosmosDBDataFeed : IUtf8JsonSerializable + internal partial class AzureCosmosDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureCosmosDBDataFeed DeserializeAzureCosmosDBDataFeed(JsonEleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureCosmosDBDataFeed DeserializeAzureCosmosDBDataFeed(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs index 7ddf2e2297a83..941817fab1b3e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBDataFeed. - public partial class AzureCosmosDBDataFeed : DataFeedDetail + internal partial class AzureCosmosDBDataFeed : DataFeedDetail { /// Initializes a new instance of AzureCosmosDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs index a711fb40dc5be..d8179bd5033a3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureCosmosDBDataFeedPatch : IUtf8JsonSerializable + internal partial class AzureCosmosDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs index ab29293ce9c87..f0c2edcfbe7f9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBDataFeedPatch. - public partial class AzureCosmosDBDataFeedPatch : DataFeedDetailPatch + internal partial class AzureCosmosDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureCosmosDBDataFeedPatch. public AzureCosmosDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs index 74ef6ab8bef39..fc1a57e2bedd4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs @@ -10,19 +10,47 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureCosmosDBParameter : IUtf8JsonSerializable + internal partial class AzureCosmosDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("sqlQuery"); - writer.WriteStringValue(SqlQuery); - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - writer.WritePropertyName("collectionId"); - writer.WriteStringValue(CollectionId); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (SqlQuery != null) + { + writer.WritePropertyName("sqlQuery"); + writer.WriteStringValue(SqlQuery); + } + else + { + writer.WriteNull("sqlQuery"); + } + if (Database != null) + { + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + } + else + { + writer.WriteNull("database"); + } + if (CollectionId != null) + { + writer.WritePropertyName("collectionId"); + writer.WriteStringValue(CollectionId); + } + else + { + writer.WriteNull("collectionId"); + } writer.WriteEndObject(); } @@ -36,21 +64,41 @@ internal static AzureCosmosDBParameter DeserializeAzureCosmosDBParameter(JsonEle { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("sqlQuery")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sqlQuery = null; + continue; + } sqlQuery = property.Value.GetString(); continue; } if (property.NameEquals("database")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + database = null; + continue; + } database = property.Value.GetString(); continue; } if (property.NameEquals("collectionId")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + collectionId = null; + continue; + } collectionId = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs index 8c14de4fc17dd..8734111de8a51 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.cs @@ -5,38 +5,18 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The AzureCosmosDBParameter. - public partial class AzureCosmosDBParameter + internal partial class AzureCosmosDBParameter { /// Initializes a new instance of AzureCosmosDBParameter. /// Azure CosmosDB connection string. /// Query script. /// Database name. /// Collection id. - /// , , , or is null. public AzureCosmosDBParameter(string connectionString, string sqlQuery, string database, string collectionId) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (sqlQuery == null) - { - throw new ArgumentNullException(nameof(sqlQuery)); - } - if (database == null) - { - throw new ArgumentNullException(nameof(database)); - } - if (collectionId == null) - { - throw new ArgumentNullException(nameof(collectionId)); - } - ConnectionString = connectionString; SqlQuery = sqlQuery; Database = database; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs index cd1584559cb9d..08152399ceae3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureDataExplorerDataFeed : IUtf8JsonSerializable + internal partial class AzureDataExplorerDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureDataExplorerDataFeed DeserializeAzureDataExplorerDataFeed(J string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureDataExplorerDataFeed DeserializeAzureDataExplorerDataFeed(J { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs index acf36036db8f7..91c8d1433b7a3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataExplorerDataFeed. - public partial class AzureDataExplorerDataFeed : DataFeedDetail + internal partial class AzureDataExplorerDataFeed : DataFeedDetail { /// Initializes a new instance of AzureDataExplorerDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs index 3baaee3cd15ef..e5ca1057b6bed 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureDataExplorerDataFeedPatch : IUtf8JsonSerializable + internal partial class AzureDataExplorerDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs index 970d5f4b5d27b..007eea96b312e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataExplorerDataFeedPatch. - public partial class AzureDataExplorerDataFeedPatch : DataFeedDetailPatch + internal partial class AzureDataExplorerDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureDataExplorerDataFeedPatch. public AzureDataExplorerDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs index 51ba8c3e33e15..31ee7635d327c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureDataLakeStorageGen2DataFeed : IUtf8JsonSerializable + internal partial class AzureDataLakeStorageGen2DataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureDataLakeStorageGen2DataFeed DeserializeAzureDataLakeStorage string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureDataLakeStorageGen2DataFeed DeserializeAzureDataLakeStorage { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs index c07fecd7755cf..83d21c807a2c8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2DataFeed. - public partial class AzureDataLakeStorageGen2DataFeed : DataFeedDetail + internal partial class AzureDataLakeStorageGen2DataFeed : DataFeedDetail { /// Initializes a new instance of AzureDataLakeStorageGen2DataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs index e6cdc9b8b128f..c8d8faec375b9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureDataLakeStorageGen2DataFeedPatch : IUtf8JsonSerializable + internal partial class AzureDataLakeStorageGen2DataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs index 5cec94cea9b48..d47b87d7d978c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2DataFeedPatch. - public partial class AzureDataLakeStorageGen2DataFeedPatch : DataFeedDetailPatch + internal partial class AzureDataLakeStorageGen2DataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureDataLakeStorageGen2DataFeedPatch. public AzureDataLakeStorageGen2DataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs index fde148d87ab1c..8b59a135dc99e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs @@ -10,21 +10,56 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureDataLakeStorageGen2Parameter : IUtf8JsonSerializable + internal partial class AzureDataLakeStorageGen2Parameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("accountName"); - writer.WriteStringValue(AccountName); - writer.WritePropertyName("accountKey"); - writer.WriteStringValue(AccountKey); - writer.WritePropertyName("fileSystemName"); - writer.WriteStringValue(FileSystemName); - writer.WritePropertyName("directoryTemplate"); - writer.WriteStringValue(DirectoryTemplate); - writer.WritePropertyName("fileTemplate"); - writer.WriteStringValue(FileTemplate); + if (AccountName != null) + { + writer.WritePropertyName("accountName"); + writer.WriteStringValue(AccountName); + } + else + { + writer.WriteNull("accountName"); + } + if (AccountKey != null) + { + writer.WritePropertyName("accountKey"); + writer.WriteStringValue(AccountKey); + } + else + { + writer.WriteNull("accountKey"); + } + if (FileSystemName != null) + { + writer.WritePropertyName("fileSystemName"); + writer.WriteStringValue(FileSystemName); + } + else + { + writer.WriteNull("fileSystemName"); + } + if (DirectoryTemplate != null) + { + writer.WritePropertyName("directoryTemplate"); + writer.WriteStringValue(DirectoryTemplate); + } + else + { + writer.WriteNull("directoryTemplate"); + } + if (FileTemplate != null) + { + writer.WritePropertyName("fileTemplate"); + writer.WriteStringValue(FileTemplate); + } + else + { + writer.WriteNull("fileTemplate"); + } writer.WriteEndObject(); } @@ -39,26 +74,51 @@ internal static AzureDataLakeStorageGen2Parameter DeserializeAzureDataLakeStorag { if (property.NameEquals("accountName")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + accountName = null; + continue; + } accountName = property.Value.GetString(); continue; } if (property.NameEquals("accountKey")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + accountKey = null; + continue; + } accountKey = property.Value.GetString(); continue; } if (property.NameEquals("fileSystemName")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fileSystemName = null; + continue; + } fileSystemName = property.Value.GetString(); continue; } if (property.NameEquals("directoryTemplate")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + directoryTemplate = null; + continue; + } directoryTemplate = property.Value.GetString(); continue; } if (property.NameEquals("fileTemplate")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + fileTemplate = null; + continue; + } fileTemplate = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs index 7bfb21decc928..9f7dff6a3a3b4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.cs @@ -5,12 +5,10 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The AzureDataLakeStorageGen2Parameter. - public partial class AzureDataLakeStorageGen2Parameter + internal partial class AzureDataLakeStorageGen2Parameter { /// Initializes a new instance of AzureDataLakeStorageGen2Parameter. /// Account name. @@ -18,30 +16,8 @@ public partial class AzureDataLakeStorageGen2Parameter /// File system name (Container). /// Directory template. /// File template. - /// , , , , or is null. public AzureDataLakeStorageGen2Parameter(string accountName, string accountKey, string fileSystemName, string directoryTemplate, string fileTemplate) { - if (accountName == null) - { - throw new ArgumentNullException(nameof(accountName)); - } - if (accountKey == null) - { - throw new ArgumentNullException(nameof(accountKey)); - } - if (fileSystemName == null) - { - throw new ArgumentNullException(nameof(fileSystemName)); - } - if (directoryTemplate == null) - { - throw new ArgumentNullException(nameof(directoryTemplate)); - } - if (fileTemplate == null) - { - throw new ArgumentNullException(nameof(fileTemplate)); - } - AccountName = accountName; AccountKey = accountKey; FileSystemName = fileSystemName; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs index 28a9825f744ac..c0c2f838fff45 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureTableDataFeed : IUtf8JsonSerializable + internal partial class AzureTableDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static AzureTableDataFeed DeserializeAzureTableDataFeed(JsonElement ele string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static AzureTableDataFeed DeserializeAzureTableDataFeed(JsonElement ele { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs index f5eafb306405f..f35d4df8853b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableDataFeed. - public partial class AzureTableDataFeed : DataFeedDetail + internal partial class AzureTableDataFeed : DataFeedDetail { /// Initializes a new instance of AzureTableDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs index 784434bec5ea1..a4212694a9e62 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureTableDataFeedPatch : IUtf8JsonSerializable + internal partial class AzureTableDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs index bd295a0ae462c..390f4722b4de5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableDataFeedPatch. - public partial class AzureTableDataFeedPatch : DataFeedDetailPatch + internal partial class AzureTableDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of AzureTableDataFeedPatch. public AzureTableDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs index 6a20adbcfaf7c..de146e6cd199b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs @@ -10,17 +10,38 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class AzureTableParameter : IUtf8JsonSerializable + internal partial class AzureTableParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("table"); - writer.WriteStringValue(Table); - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (Table != null) + { + writer.WritePropertyName("table"); + writer.WriteStringValue(Table); + } + else + { + writer.WriteNull("table"); + } + if (Query != null) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } writer.WriteEndObject(); } @@ -33,16 +54,31 @@ internal static AzureTableParameter DeserializeAzureTableParameter(JsonElement e { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("table")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + table = null; + continue; + } table = property.Value.GetString(); continue; } if (property.NameEquals("query")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs index 341c890e37f3d..dcd9f3b5f4266 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.cs @@ -5,33 +5,17 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The AzureTableParameter. - public partial class AzureTableParameter + internal partial class AzureTableParameter { /// Initializes a new instance of AzureTableParameter. /// Azure Table connection string. /// Table name. /// Query script. - /// , , or is null. public AzureTableParameter(string connectionString, string table, string query) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (table == null) - { - throw new ArgumentNullException(nameof(table)); - } - if (query == null) - { - throw new ArgumentNullException(nameof(query)); - } - ConnectionString = connectionString; Table = table; Query = query; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs index 9c0f92deb7425..8fd39639c4e2c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class ChangePointFeedbackValue : IUtf8JsonSerializable + internal partial class ChangePointFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs index bb76e12373113..ecd7e116d9c7f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ChangePointFeedbackValue. - public partial class ChangePointFeedbackValue + internal partial class ChangePointFeedbackValue { /// Initializes a new instance of ChangePointFeedbackValue. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs index 3493a9d276369..77ee818055af5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class CommentFeedbackValue : IUtf8JsonSerializable + internal partial class CommentFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs index df6db771f8818..18ef7d53a390d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The CommentFeedbackValue. - public partial class CommentFeedbackValue + internal partial class CommentFeedbackValue { /// Initializes a new instance of CommentFeedbackValue. /// the comment string. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs index e5fb11ca4de24..7e95033de0815 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs @@ -30,8 +30,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -171,7 +178,7 @@ internal static DataFeedDetail DeserializeDataFeedDetail(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -225,7 +232,7 @@ internal static DataFeedDetail DeserializeDataFeedDetail(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs index 3546f3f2d1f3e..0afa3ae85592e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs @@ -15,15 +15,15 @@ public partial class DataFeedIngestionProgress { internal static DataFeedIngestionProgress DeserializeDataFeedIngestionProgress(JsonElement element) { - Optional latestSuccessTimestamp = default; - Optional latestActiveTimestamp = default; + Optional latestSuccessTimestamp = default; + Optional latestActiveTimestamp = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("latestSuccessTimestamp")) { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + latestSuccessTimestamp = null; continue; } latestSuccessTimestamp = property.Value.GetDateTimeOffset("O"); @@ -33,7 +33,7 @@ internal static DataFeedIngestionProgress DeserializeDataFeedIngestionProgress(J { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + latestActiveTimestamp = null; continue; } latestActiveTimestamp = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs index be21a7d32e6f4..aa65eaec9aeeb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs @@ -15,28 +15,18 @@ public partial class DataFeedIngestionStatus { internal static DataFeedIngestionStatus DeserializeDataFeedIngestionStatus(JsonElement element) { - Optional timestamp = default; - Optional status = default; - Optional message = default; + DateTimeOffset timestamp = default; + IngestionStatusType status = default; + string message = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("timestamp")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } timestamp = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("status")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } status = new IngestionStatusType(property.Value.GetString()); continue; } @@ -46,7 +36,7 @@ internal static DataFeedIngestionStatus DeserializeDataFeedIngestionStatus(JsonE continue; } } - return new DataFeedIngestionStatus(timestamp, status, message.Value); + return new DataFeedIngestionStatus(timestamp, status, message); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs index 7d1a42a075090..7bf8518736250 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.cs @@ -12,17 +12,18 @@ namespace Azure.AI.MetricsAdvisor.Models /// The IngestionStatus. public partial class DataFeedIngestionStatus { - /// Initializes a new instance of DataFeedIngestionStatus. - internal DataFeedIngestionStatus() - { - } - /// 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. internal DataFeedIngestionStatus(DateTimeOffset timestamp, IngestionStatusType status, string message) { + if (message == null) + { + throw new ArgumentNullException(nameof(message)); + } + Timestamp = timestamp; Status = status; Message = message; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs index 42bb370f5afe3..8a93fd0c61cb3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class DetectionAnomalyFilterCondition : IUtf8JsonSerializable + internal partial class DetectionAnomalyFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs index 5db83a3ba2e0e..2e75e1cab8922 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionAnomalyFilterCondition. - public partial class DetectionAnomalyFilterCondition + internal partial class DetectionAnomalyFilterCondition { /// Initializes a new instance of DetectionAnomalyFilterCondition. public DetectionAnomalyFilterCondition() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs index d68a716a03081..a27049abc537d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class DetectionAnomalyResultQuery : IUtf8JsonSerializable + internal partial class DetectionAnomalyResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs index 746c961d224db..b2789fe1a7453 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionAnomalyResultQuery. - public partial class DetectionAnomalyResultQuery + internal partial class DetectionAnomalyResultQuery { /// Initializes a new instance of DetectionAnomalyResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs index a021593e21b3e..8670f753c042f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class DetectionIncidentFilterCondition : IUtf8JsonSerializable + internal partial class DetectionIncidentFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs index 9b7b0ce2493bb..aeab004609ab3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionIncidentFilterCondition. - public partial class DetectionIncidentFilterCondition + internal partial class DetectionIncidentFilterCondition { /// Initializes a new instance of DetectionIncidentFilterCondition. public DetectionIncidentFilterCondition() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs index abacd3a1a5834..18eb84eb4d9b8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class DetectionIncidentResultQuery : IUtf8JsonSerializable + internal partial class DetectionIncidentResultQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs index fc9fed152b099..05ff2d4ded728 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionIncidentResultQuery. - public partial class DetectionIncidentResultQuery + internal partial class DetectionIncidentResultQuery { /// Initializes a new instance of DetectionIncidentResultQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs index 3f8bc3c23d13a..c0675aab07638 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class DetectionSeriesQuery : IUtf8JsonSerializable + internal partial class DetectionSeriesQuery : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs index 3b0119b3efb6a..858fe099b097f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The DetectionSeriesQuery. - public partial class DetectionSeriesQuery + internal partial class DetectionSeriesQuery { /// Initializes a new instance of DetectionSeriesQuery. /// start time. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs index 16f9b6280762f..f34e497daa15f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class ElasticsearchDataFeed : IUtf8JsonSerializable + internal partial class ElasticsearchDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static ElasticsearchDataFeed DeserializeElasticsearchDataFeed(JsonEleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static ElasticsearchDataFeed DeserializeElasticsearchDataFeed(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs index 58560ea75b9f0..127464a45516e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchDataFeed. - public partial class ElasticsearchDataFeed : DataFeedDetail + internal partial class ElasticsearchDataFeed : DataFeedDetail { /// Initializes a new instance of ElasticsearchDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs index 09fa9c21c719c..1fc3fc61a045d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class ElasticsearchDataFeedPatch : IUtf8JsonSerializable + internal partial class ElasticsearchDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs index e9ac39e299c86..837dc72a22566 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchDataFeedPatch. - public partial class ElasticsearchDataFeedPatch : DataFeedDetailPatch + internal partial class ElasticsearchDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of ElasticsearchDataFeedPatch. public ElasticsearchDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs index 1aacec9eb1059..39d163f7f97d1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.Serialization.cs @@ -10,19 +10,47 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class ElasticsearchParameter : IUtf8JsonSerializable + internal partial class ElasticsearchParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("host"); - writer.WriteStringValue(Host); - writer.WritePropertyName("port"); - writer.WriteStringValue(Port); - writer.WritePropertyName("authHeader"); - writer.WriteStringValue(AuthHeader); - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); + if (Host != null) + { + writer.WritePropertyName("host"); + writer.WriteStringValue(Host); + } + else + { + writer.WriteNull("host"); + } + if (Port != null) + { + writer.WritePropertyName("port"); + writer.WriteStringValue(Port); + } + else + { + writer.WriteNull("port"); + } + if (AuthHeader != null) + { + writer.WritePropertyName("authHeader"); + writer.WriteStringValue(AuthHeader); + } + else + { + writer.WriteNull("authHeader"); + } + if (Query != null) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } writer.WriteEndObject(); } @@ -36,21 +64,41 @@ internal static ElasticsearchParameter DeserializeElasticsearchParameter(JsonEle { if (property.NameEquals("host")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + host = null; + continue; + } host = property.Value.GetString(); continue; } if (property.NameEquals("port")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + port = null; + continue; + } port = property.Value.GetString(); continue; } if (property.NameEquals("authHeader")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + authHeader = null; + continue; + } authHeader = property.Value.GetString(); continue; } if (property.NameEquals("query")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs index 7cf0856989ed7..dcb5b1ec8269c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ElasticsearchParameter.cs @@ -5,38 +5,18 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The ElasticsearchParameter. - public partial class ElasticsearchParameter + internal partial class ElasticsearchParameter { /// Initializes a new instance of ElasticsearchParameter. /// Host. /// Port. /// Authorization header. /// Query. - /// , , , or is null. public ElasticsearchParameter(string host, string port, string authHeader, string query) { - if (host == null) - { - throw new ArgumentNullException(nameof(host)); - } - if (port == null) - { - throw new ArgumentNullException(nameof(port)); - } - if (authHeader == null) - { - throw new ArgumentNullException(nameof(authHeader)); - } - if (query == null) - { - throw new ArgumentNullException(nameof(query)); - } - Host = host; Port = port; AuthHeader = authHeader; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs index 4e1b451802893..37f0ef3393a72 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class EmailHookInfoPatch : IUtf8JsonSerializable + internal partial class EmailHookInfoPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs index e1f9a6280e56e..94cdacef93b59 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EmailHookInfoPatch. - public partial class EmailHookInfoPatch : HookInfoPatch + internal partial class EmailHookInfoPatch : HookInfoPatch { /// Initializes a new instance of EmailHookInfoPatch. public EmailHookInfoPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs index 8c265e783a6e3..526038c2d5bae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class EmailHookParameter : IUtf8JsonSerializable + internal partial class EmailHookParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs index 584ba8069a222..94aacd61ddee5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EmailHookParameter. - public partial class EmailHookParameter + internal partial class EmailHookParameter { /// Initializes a new instance of EmailHookParameter. /// Email TO: list. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs index c0ea060e6625d..6f2670291a468 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs @@ -15,18 +15,13 @@ public partial class EnrichmentStatus { internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element) { - Optional timestamp = default; - Optional status = default; - Optional message = default; + DateTimeOffset timestamp = default; + string status = default; + string message = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("timestamp")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } timestamp = property.Value.GetDateTimeOffset("O"); continue; } @@ -41,7 +36,7 @@ internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element continue; } } - return new EnrichmentStatus(timestamp, status.Value, message.Value); + return new EnrichmentStatus(timestamp, status, message); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs index 723b789f710f4..3a83508c36f9e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs @@ -12,17 +12,22 @@ namespace Azure.AI.MetricsAdvisor.Models /// The EnrichmentStatus. public partial class EnrichmentStatus { - /// Initializes a new instance of EnrichmentStatus. - internal EnrichmentStatus() - { - } - /// 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. internal EnrichmentStatus(DateTimeOffset timestamp, string status, string message) { + if (status == null) + { + throw new ArgumentNullException(nameof(status)); + } + if (message == null) + { + throw new ArgumentNullException(nameof(message)); + } + Timestamp = timestamp; Status = status; Message = message; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs index 24b3404e63b42..b18d5c818ca25 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class EnrichmentStatusQueryOption : IUtf8JsonSerializable + internal partial class EnrichmentStatusQueryOption : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs index 0764451520e60..2a0dffb5d023a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EnrichmentStatusQueryOption. - public partial class EnrichmentStatusQueryOption + internal partial class EnrichmentStatusQueryOption { /// Initializes a new instance of EnrichmentStatusQueryOption. /// the start point of time range to query anomaly detection status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs index 7ec601d7a3fef..b363652d34ac4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class HttpRequestDataFeed : IUtf8JsonSerializable + internal partial class HttpRequestDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static HttpRequestDataFeed DeserializeHttpRequestDataFeed(JsonElement e string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static HttpRequestDataFeed DeserializeHttpRequestDataFeed(JsonElement e { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs index bd9af6bd85edc..205b7ddca8671 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestDataFeed. - public partial class HttpRequestDataFeed : DataFeedDetail + internal partial class HttpRequestDataFeed : DataFeedDetail { /// Initializes a new instance of HttpRequestDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs index bfca7f02689e8..79b81fb1571e6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class HttpRequestDataFeedPatch : IUtf8JsonSerializable + internal partial class HttpRequestDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs index 623401ed80fe8..9bb3be6c926b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestDataFeedPatch. - public partial class HttpRequestDataFeedPatch : DataFeedDetailPatch + internal partial class HttpRequestDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of HttpRequestDataFeedPatch. public HttpRequestDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs index f552ab3b153c1..a742e761a8468 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.Serialization.cs @@ -10,19 +10,47 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class HttpRequestParameter : IUtf8JsonSerializable + internal partial class HttpRequestParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("url"); - writer.WriteStringValue(Url); - writer.WritePropertyName("httpHeader"); - writer.WriteStringValue(HttpHeader); - writer.WritePropertyName("httpMethod"); - writer.WriteStringValue(HttpMethod); - writer.WritePropertyName("payload"); - writer.WriteStringValue(Payload); + if (Url != null) + { + writer.WritePropertyName("url"); + writer.WriteStringValue(Url); + } + else + { + writer.WriteNull("url"); + } + if (HttpHeader != null) + { + writer.WritePropertyName("httpHeader"); + writer.WriteStringValue(HttpHeader); + } + else + { + writer.WriteNull("httpHeader"); + } + if (HttpMethod != null) + { + writer.WritePropertyName("httpMethod"); + writer.WriteStringValue(HttpMethod); + } + else + { + writer.WriteNull("httpMethod"); + } + if (Payload != null) + { + writer.WritePropertyName("payload"); + writer.WriteStringValue(Payload); + } + else + { + writer.WriteNull("payload"); + } writer.WriteEndObject(); } @@ -36,21 +64,41 @@ internal static HttpRequestParameter DeserializeHttpRequestParameter(JsonElement { if (property.NameEquals("url")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + url = null; + continue; + } url = property.Value.GetString(); continue; } if (property.NameEquals("httpHeader")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + httpHeader = null; + continue; + } httpHeader = property.Value.GetString(); continue; } if (property.NameEquals("httpMethod")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + httpMethod = null; + continue; + } httpMethod = property.Value.GetString(); continue; } if (property.NameEquals("payload")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + payload = null; + continue; + } payload = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs index 082776769a364..8988c8a44d2af 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HttpRequestParameter.cs @@ -5,38 +5,18 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The HttpRequestParameter. - public partial class HttpRequestParameter + internal partial class HttpRequestParameter { /// Initializes a new instance of HttpRequestParameter. /// HTTP URL. /// HTTP header. /// HTTP method. /// HTTP request body. - /// , , , or is null. public HttpRequestParameter(string url, string httpHeader, string httpMethod, string payload) { - if (url == null) - { - throw new ArgumentNullException(nameof(url)); - } - if (httpHeader == null) - { - throw new ArgumentNullException(nameof(httpHeader)); - } - if (httpMethod == null) - { - throw new ArgumentNullException(nameof(httpMethod)); - } - if (payload == null) - { - throw new ArgumentNullException(nameof(payload)); - } - Url = url; HttpHeader = httpHeader; HttpMethod = httpMethod; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs index e6517414d8d63..ae19c4e08e0b3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class IncidentProperty + internal partial class IncidentProperty { internal static IncidentProperty DeserializeIncidentProperty(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs index 909ad8b5317ea..43b712c5c8d2f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IncidentProperty. - public partial class IncidentProperty + internal partial class IncidentProperty { /// Initializes a new instance of IncidentProperty. /// max severity of latest anomalies in the incident. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs index 7d24ab636a133..28fbb7be8001c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class InfluxDBDataFeed : IUtf8JsonSerializable + internal partial class InfluxDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static InfluxDBDataFeed DeserializeInfluxDBDataFeed(JsonElement element string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static InfluxDBDataFeed DeserializeInfluxDBDataFeed(JsonElement element { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs index 87eab67b546b9..e93904d71e8b9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBDataFeed. - public partial class InfluxDBDataFeed : DataFeedDetail + internal partial class InfluxDBDataFeed : DataFeedDetail { /// Initializes a new instance of InfluxDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs index e5dc6796be72d..37454a757055a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class InfluxDBDataFeedPatch : IUtf8JsonSerializable + internal partial class InfluxDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs index b5893934dce25..6221d3e3156f6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBDataFeedPatch. - public partial class InfluxDBDataFeedPatch : DataFeedDetailPatch + internal partial class InfluxDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of InfluxDBDataFeedPatch. public InfluxDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs index 2ea77383627b1..f3b28abbd6ec4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs @@ -10,21 +10,56 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class InfluxDBParameter : IUtf8JsonSerializable + internal partial class InfluxDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - writer.WritePropertyName("userName"); - writer.WriteStringValue(UserName); - writer.WritePropertyName("password"); - writer.WriteStringValue(Password); - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (Database != null) + { + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + } + else + { + writer.WriteNull("database"); + } + if (UserName != null) + { + writer.WritePropertyName("userName"); + writer.WriteStringValue(UserName); + } + else + { + writer.WriteNull("userName"); + } + if (Password != null) + { + writer.WritePropertyName("password"); + writer.WriteStringValue(Password); + } + else + { + writer.WriteNull("password"); + } + if (Query != null) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } writer.WriteEndObject(); } @@ -39,26 +74,51 @@ internal static InfluxDBParameter DeserializeInfluxDBParameter(JsonElement eleme { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("database")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + database = null; + continue; + } database = property.Value.GetString(); continue; } if (property.NameEquals("userName")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + userName = null; + continue; + } userName = property.Value.GetString(); continue; } if (property.NameEquals("password")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + password = null; + continue; + } password = property.Value.GetString(); continue; } if (property.NameEquals("query")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs index fba2d33acd55b..ff96728c6e4ed 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.cs @@ -5,12 +5,10 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The InfluxDBParameter. - public partial class InfluxDBParameter + internal partial class InfluxDBParameter { /// Initializes a new instance of InfluxDBParameter. /// InfluxDB connection string. @@ -18,30 +16,8 @@ public partial class InfluxDBParameter /// Database access user. /// Database access password. /// Query script. - /// , , , , or is null. public InfluxDBParameter(string connectionString, string database, string userName, string password, string query) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (database == null) - { - throw new ArgumentNullException(nameof(database)); - } - if (userName == null) - { - throw new ArgumentNullException(nameof(userName)); - } - if (password == null) - { - throw new ArgumentNullException(nameof(password)); - } - if (query == null) - { - throw new ArgumentNullException(nameof(query)); - } - ConnectionString = connectionString; Database = database; UserName = userName; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs index c0d96732bfa07..70cf9d41d3bd7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class IngestionProgressResetOptions : IUtf8JsonSerializable + internal partial class IngestionProgressResetOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs index 23057faafb942..cadb76eb7e049 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IngestionProgressResetOptions. - public partial class IngestionProgressResetOptions + internal partial class IngestionProgressResetOptions { /// Initializes a new instance of IngestionProgressResetOptions. /// the start point of time range to reset data ingestion status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs index ecdad52ce6b17..e678915a8beb0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class IngestionStatusQueryOptions : IUtf8JsonSerializable + internal partial class IngestionStatusQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs index 1eb021892061d..06b94d11d546f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The IngestionStatusQueryOptions. - public partial class IngestionStatusQueryOptions + internal partial class IngestionStatusQueryOptions { /// Initializes a new instance of IngestionStatusQueryOptions. /// the start point of time range to query data ingestion status. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs index 0fda43167d653..2fbd384418916 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs @@ -33,13 +33,27 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } if (Optional.IsDefined(AnomalyDetectionConfigurationId)) { - writer.WritePropertyName("anomalyDetectionConfigurationId"); - writer.WriteStringValue(AnomalyDetectionConfigurationId); + if (AnomalyDetectionConfigurationId != null) + { + writer.WritePropertyName("anomalyDetectionConfigurationId"); + writer.WriteStringValue(AnomalyDetectionConfigurationId); + } + else + { + writer.WriteNull("anomalyDetectionConfigurationId"); + } } if (Optional.IsDefined(AnomalyDetectionConfigurationSnapshot)) { - writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); - writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); + if (AnomalyDetectionConfigurationSnapshot != null) + { + writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); + writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); + } + else + { + writer.WriteNull("anomalyDetectionConfigurationSnapshot"); + } } writer.WritePropertyName("feedbackType"); writer.WriteStringValue(Type.ToString()); @@ -97,6 +111,11 @@ internal static MetricAnomalyFeedback DeserializeMetricAnomalyFeedback(JsonEleme } if (property.NameEquals("anomalyDetectionConfigurationId")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + anomalyDetectionConfigurationId = null; + continue; + } anomalyDetectionConfigurationId = property.Value.GetString(); continue; } @@ -104,7 +123,7 @@ internal static MetricAnomalyFeedback DeserializeMetricAnomalyFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + anomalyDetectionConfigurationSnapshot = null; continue; } anomalyDetectionConfigurationSnapshot = AnomalyDetectionConfiguration.DeserializeAnomalyDetectionConfiguration(property.Value); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs index 0fb9447e36673..639a1c2fe4f7f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs @@ -18,13 +18,27 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(StartTime)) { - writer.WritePropertyName("startTime"); - writer.WriteStringValue(StartTime.Value, "O"); + if (StartTime != null) + { + writer.WritePropertyName("startTime"); + writer.WriteStringValue(StartTime.Value, "O"); + } + else + { + writer.WriteNull("startTime"); + } } if (Optional.IsDefined(EndTime)) { - writer.WritePropertyName("endTime"); - writer.WriteStringValue(EndTime.Value, "O"); + if (EndTime != null) + { + writer.WritePropertyName("endTime"); + writer.WriteStringValue(EndTime.Value, "O"); + } + else + { + writer.WriteNull("endTime"); + } } if (Optional.IsDefined(ValueInternal)) { @@ -42,8 +56,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonElement element) { - Optional startTime = default; - Optional endTime = default; + Optional startTime = default; + Optional endTime = default; Optional value = default; FeedbackType feedbackType = default; Optional feedbackId = default; @@ -57,7 +71,7 @@ internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + startTime = null; continue; } startTime = property.Value.GetDateTimeOffset("O"); @@ -67,7 +81,7 @@ internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonEleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + endTime = null; continue; } endTime = property.Value.GetDateTimeOffset("O"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs index 3fa459fd44c14..faec053995edd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MetricDataList + internal partial class MetricDataList { internal static MetricDataList DeserializeMetricDataList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs index aba68a1a8911e..fe559995517c7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDataList. - public partial class MetricDataList + internal partial class MetricDataList { /// Initializes a new instance of MetricDataList. internal MetricDataList() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs index d417c633e249e..c72622bc0cb0a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MetricDataQueryOptions : IUtf8JsonSerializable + internal partial class MetricDataQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs index 775bd947f4d10..3e4548cbd2308 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDataQueryOptions. - public partial class MetricDataQueryOptions + internal partial class MetricDataQueryOptions { /// Initializes a new instance of MetricDataQueryOptions. /// start time of query a time series data, and format should be yyyy-MM-ddThh:mm:ssZ. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs index 2e6c93077f51a..8ca7436c87f6b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MetricDimensionQueryOptions : IUtf8JsonSerializable + internal partial class MetricDimensionQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs index b25d562e6a631..9544d9e5a15eb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricDimensionQueryOptions. - public partial class MetricDimensionQueryOptions + internal partial class MetricDimensionQueryOptions { /// Initializes a new instance of MetricDimensionQueryOptions. /// dimension name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs index cc9802e562d7f..fcb1aef7a9611 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MetricFeedbackFilter : IUtf8JsonSerializable + internal partial class MetricFeedbackFilter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs index 691bed700ed5e..1651d9ec1c373 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricFeedbackFilter. - public partial class MetricFeedbackFilter + internal partial class MetricFeedbackFilter { /// Initializes a new instance of MetricFeedbackFilter. /// filter feedbacks by metric id. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs index 1c99556db2ee0..841530b7c7e60 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs @@ -16,28 +16,18 @@ public partial class MetricSeriesData { internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element) { - Optional id = default; - Optional> timestampList = default; - Optional> valueList = default; + MetricSeriesDefinition id = default; + IReadOnlyList timestampList = default; + IReadOnlyList valueList = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } id = MetricSeriesDefinition.DeserializeMetricSeriesDefinition(property.Value); continue; } if (property.NameEquals("timestampList")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -48,11 +38,6 @@ internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element } if (property.NameEquals("valueList")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -62,7 +47,7 @@ internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element continue; } } - return new MetricSeriesData(id.Value, Optional.ToList(timestampList), Optional.ToList(valueList)); + return new MetricSeriesData(id, timestampList, valueList); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs index fae3a1eb02d1f..19f88d2b36b0f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using System.Linq; namespace Azure.AI.MetricsAdvisor.Models { @@ -15,10 +15,28 @@ namespace Azure.AI.MetricsAdvisor.Models public partial class MetricSeriesData { /// Initializes a new instance of MetricSeriesData. - internal MetricSeriesData() + /// . + /// timestamps of the data related to this time series. + /// values of the data related to this time series. + /// , , or is null. + internal MetricSeriesData(MetricSeriesDefinition definition, IEnumerable timestamps, IEnumerable values) { - Timestamps = new ChangeTrackingList(); - Values = new ChangeTrackingList(); + if (definition == null) + { + throw new ArgumentNullException(nameof(definition)); + } + if (timestamps == null) + { + throw new ArgumentNullException(nameof(timestamps)); + } + if (values == null) + { + throw new ArgumentNullException(nameof(values)); + } + + Definition = definition; + Timestamps = timestamps.ToList(); + Values = values.ToList(); } /// Initializes a new instance of MetricSeriesData. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs index 6036c85a7beae..503f4ee6da363 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs @@ -15,8 +15,8 @@ public partial class MetricSeriesDefinition { internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonElement element) { - Optional metricId = default; - Optional> dimension = default; + string metricId = default; + IReadOnlyDictionary dimension = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("metricId")) @@ -26,11 +26,6 @@ internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonEle } if (property.NameEquals("dimension")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { @@ -40,7 +35,7 @@ internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonEle continue; } } - return new MetricSeriesDefinition(metricId.Value, Optional.ToDictionary(dimension)); + return new MetricSeriesDefinition(metricId, dimension); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs index 18ac1b8b1ab90..5a4c25b6a1a1a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.cs @@ -5,25 +5,29 @@ #nullable disable +using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { /// The MetricSeriesItem. public partial class MetricSeriesDefinition { - /// Initializes a new instance of MetricSeriesDefinition. - internal MetricSeriesDefinition() - { - Dimension = new ChangeTrackingDictionary(); - } - /// Initializes a new instance of MetricSeriesDefinition. /// metric unique id. /// dimension name and value pair. + /// or is null. internal MetricSeriesDefinition(string metricId, IReadOnlyDictionary dimension) { + if (metricId == null) + { + throw new ArgumentNullException(nameof(metricId)); + } + if (dimension == null) + { + throw new ArgumentNullException(nameof(dimension)); + } + MetricId = metricId; Dimension = dimension; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs index 9ebc2f23b9691..dc890b573d3dd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MetricSeriesQueryOptions : IUtf8JsonSerializable + internal partial class MetricSeriesQueryOptions : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs index 94ea61fe94378..9204c87f9135c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricSeriesQueryOptions. - public partial class MetricSeriesQueryOptions + internal partial class MetricSeriesQueryOptions { /// Initializes a new instance of MetricSeriesQueryOptions. /// query series ingested after this time, the format should be yyyy-MM-ddTHH:mm:ssZ. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs index 3c38adf0c4f15..ee5af8841efa7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MongoDBDataFeed : IUtf8JsonSerializable + internal partial class MongoDBDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static MongoDBDataFeed DeserializeMongoDBDataFeed(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static MongoDBDataFeed DeserializeMongoDBDataFeed(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs index 70af3cde05275..e28593e0114b9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBDataFeed. - public partial class MongoDBDataFeed : DataFeedDetail + internal partial class MongoDBDataFeed : DataFeedDetail { /// Initializes a new instance of MongoDBDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs index 3c81918ab0433..e0838288c6fdb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MongoDBDataFeedPatch : IUtf8JsonSerializable + internal partial class MongoDBDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs index 5c256c47fc438..a8d5ee0490d49 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBDataFeedPatch. - public partial class MongoDBDataFeedPatch : DataFeedDetailPatch + internal partial class MongoDBDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of MongoDBDataFeedPatch. public MongoDBDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs index 65a9149c938db..e366b8b91d0ff 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs @@ -10,17 +10,38 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MongoDBParameter : IUtf8JsonSerializable + internal partial class MongoDBParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("database"); - writer.WriteStringValue(Database); - writer.WritePropertyName("command"); - writer.WriteStringValue(Command); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (Database != null) + { + writer.WritePropertyName("database"); + writer.WriteStringValue(Database); + } + else + { + writer.WriteNull("database"); + } + if (Command != null) + { + writer.WritePropertyName("command"); + writer.WriteStringValue(Command); + } + else + { + writer.WriteNull("command"); + } writer.WriteEndObject(); } @@ -33,16 +54,31 @@ internal static MongoDBParameter DeserializeMongoDBParameter(JsonElement element { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("database")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + database = null; + continue; + } database = property.Value.GetString(); continue; } if (property.NameEquals("command")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + command = null; + continue; + } command = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs index f814ff414e490..33c1428c8c3ec 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.cs @@ -5,33 +5,17 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The MongoDBParameter. - public partial class MongoDBParameter + internal partial class MongoDBParameter { /// Initializes a new instance of MongoDBParameter. /// MongoDB connection string. /// Database name. /// Query script. - /// , , or is null. public MongoDBParameter(string connectionString, string database, string command) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (database == null) - { - throw new ArgumentNullException(nameof(database)); - } - if (command == null) - { - throw new ArgumentNullException(nameof(command)); - } - ConnectionString = connectionString; Database = database; Command = command; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs index 067b0d5b8fd37..83e69e6ef1d0c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MySqlDataFeed : IUtf8JsonSerializable + internal partial class MySqlDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static MySqlDataFeed DeserializeMySqlDataFeed(JsonElement element) string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static MySqlDataFeed DeserializeMySqlDataFeed(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs index 9caf78760ff55..8cc0ec01aacd4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MySqlDataFeed. - public partial class MySqlDataFeed : DataFeedDetail + internal partial class MySqlDataFeed : DataFeedDetail { /// Initializes a new instance of MySqlDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs index 4c6c2b60d2955..8d42bbe14559e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class MySqlDataFeedPatch : IUtf8JsonSerializable + internal partial class MySqlDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs index 4935bbb80c5e8..549ad2e32f912 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MySqlDataFeedPatch. - public partial class MySqlDataFeedPatch : DataFeedDetailPatch + internal partial class MySqlDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of MySqlDataFeedPatch. public MySqlDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs index c4150167d1502..13adea59eb5e3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class PeriodFeedbackValue : IUtf8JsonSerializable + internal partial class PeriodFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs index 07a03da8e1958..00cc06fe8171d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PeriodFeedbackValue. - public partial class PeriodFeedbackValue + internal partial class PeriodFeedbackValue { /// Initializes a new instance of PeriodFeedbackValue. /// the type of setting period. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs index ac5c42187ec2c..d0e3ff7533536 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class PostgreSqlDataFeed : IUtf8JsonSerializable + internal partial class PostgreSqlDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static PostgreSqlDataFeed DeserializePostgreSqlDataFeed(JsonElement ele string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static PostgreSqlDataFeed DeserializePostgreSqlDataFeed(JsonElement ele { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs index ffc7e15be5190..cc255c53bfecf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PostgreSqlDataFeed. - public partial class PostgreSqlDataFeed : DataFeedDetail + internal partial class PostgreSqlDataFeed : DataFeedDetail { /// Initializes a new instance of PostgreSqlDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs index feb7f26d63a6b..2581b10d662d5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class PostgreSqlDataFeedPatch : IUtf8JsonSerializable + internal partial class PostgreSqlDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs index 5be94f81161e7..9793d333d0b61 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PostgreSqlDataFeedPatch. - public partial class PostgreSqlDataFeedPatch : DataFeedDetailPatch + internal partial class PostgreSqlDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of PostgreSqlDataFeedPatch. public PostgreSqlDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs index 697c2177e1e34..c3b2e051b0f71 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class RootCauseList + internal partial class RootCauseList { internal static RootCauseList DeserializeRootCauseList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs index af420e66ccc9c..2513a4222498f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The RootCauseList. - public partial class RootCauseList + internal partial class RootCauseList { /// Initializes a new instance of RootCauseList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs index 43b7ea324e5ea..56c1974bf6fed 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SQLServerDataFeed : IUtf8JsonSerializable + internal partial class SQLServerDataFeed : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,8 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(GranularityName.ToString()); if (Optional.IsDefined(GranularityAmount)) { - writer.WritePropertyName("granularityAmount"); - writer.WriteNumberValue(GranularityAmount.Value); + if (GranularityAmount != null) + { + writer.WritePropertyName("granularityAmount"); + writer.WriteNumberValue(GranularityAmount.Value); + } + else + { + writer.WriteNull("granularityAmount"); + } } writer.WritePropertyName("metrics"); writer.WriteStartArray(); @@ -158,7 +165,7 @@ internal static SQLServerDataFeed DeserializeSQLServerDataFeed(JsonElement eleme string dataFeedName = default; Optional dataFeedDescription = default; DataFeedGranularityType granularityName = default; - Optional granularityAmount = default; + Optional granularityAmount = default; IList metrics = default; Optional> dimension = default; Optional timestampColumn = default; @@ -222,7 +229,7 @@ internal static SQLServerDataFeed DeserializeSQLServerDataFeed(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); + granularityAmount = null; continue; } granularityAmount = property.Value.GetInt32(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs index 47eaf45272b12..0abdb8946297f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SQLServerDataFeed. - public partial class SQLServerDataFeed : DataFeedDetail + internal partial class SQLServerDataFeed : DataFeedDetail { /// Initializes a new instance of SQLServerDataFeed. /// data feed name. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs index ca158c86ffbc5..cd56631fbe389 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SQLServerDataFeedPatch : IUtf8JsonSerializable + internal partial class SQLServerDataFeedPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs index a54b8b3dc5eaa..d20647370493d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SQLServerDataFeedPatch. - public partial class SQLServerDataFeedPatch : DataFeedDetailPatch + internal partial class SQLServerDataFeedPatch : DataFeedDetailPatch { /// Initializes a new instance of SQLServerDataFeedPatch. public SQLServerDataFeedPatch() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs index 9615d6bdf7313..4fbd7b7667e8e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SeriesIdentity : IUtf8JsonSerializable + internal partial class SeriesIdentity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs index 12af8f484ae18..8985c72900736 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeriesIdentity. - public partial class SeriesIdentity + internal partial class SeriesIdentity { /// Initializes a new instance of SeriesIdentity. /// dimension specified for series. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs index cc7fa879f8ced..d24bc4d14c35e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SeriesResultList + internal partial class SeriesResultList { internal static SeriesResultList DeserializeSeriesResultList(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs index 301e585304d89..96c9ca1c8776e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.cs @@ -12,7 +12,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeriesResultList. - public partial class SeriesResultList + internal partial class SeriesResultList { /// Initializes a new instance of SeriesResultList. /// . diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs index ddd02a6012888..5f5cbd0552e1f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SeverityFilterCondition : IUtf8JsonSerializable + internal partial class SeverityFilterCondition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs index f5276163f8ab6..882ddced0703b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The SeverityFilterCondition. - public partial class SeverityFilterCondition + internal partial class SeverityFilterCondition { /// Initializes a new instance of SeverityFilterCondition. /// min severity. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs index 406ef1c61e12a..7ff8b429a540e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs @@ -10,15 +10,29 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class SqlSourceParameter : IUtf8JsonSerializable + internal partial class SqlSourceParameter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("connectionString"); - writer.WriteStringValue(ConnectionString); - writer.WritePropertyName("query"); - writer.WriteStringValue(Query); + if (ConnectionString != null) + { + writer.WritePropertyName("connectionString"); + writer.WriteStringValue(ConnectionString); + } + else + { + writer.WriteNull("connectionString"); + } + if (Query != null) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } writer.WriteEndObject(); } @@ -30,11 +44,21 @@ internal static SqlSourceParameter DeserializeSqlSourceParameter(JsonElement ele { if (property.NameEquals("connectionString")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + connectionString = null; + continue; + } connectionString = property.Value.GetString(); continue; } if (property.NameEquals("query")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } query = property.Value.GetString(); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs index 6214873dcabc2..49a4fb9d04b95 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.cs @@ -5,28 +5,16 @@ #nullable disable -using System; - namespace Azure.AI.MetricsAdvisor.Models { /// The SqlSourceParameter. - public partial class SqlSourceParameter + internal partial class SqlSourceParameter { /// Initializes a new instance of SqlSourceParameter. /// Database connection string. /// Query script. - /// or is null. public SqlSourceParameter(string connectionString, string query) { - if (connectionString == null) - { - throw new ArgumentNullException(nameof(connectionString)); - } - if (query == null) - { - throw new ArgumentNullException(nameof(query)); - } - ConnectionString = connectionString; Query = query; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs index 3af75a2a69b91..6f4ce4943ccc0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class UsageStats + internal partial class UsageStats { internal static UsageStats DeserializeUsageStats(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs index 2ed1c60fb4797..334435862df75 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The UsageStats. - public partial class UsageStats + internal partial class UsageStats { /// Initializes a new instance of UsageStats. internal UsageStats() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs index e9f170efec2d1..77ccc779a6341 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - public partial class WebhookHookInfoPatch : IUtf8JsonSerializable + internal partial class WebhookHookInfoPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs index e4f98bf91b136..8bd564a6ec351 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The WebhookHookInfoPatch. - public partial class WebhookHookInfoPatch : HookInfoPatch + internal partial class WebhookHookInfoPatch : HookInfoPatch { /// Initializes a new instance of WebhookHookInfoPatch. public WebhookHookInfoPatch() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs index 086c41e87f6fa..8099a246ccce5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs @@ -21,11 +21,21 @@ internal static DetectedLanguageInternal DeserializeDetectedLanguageInternal(Jso { if (property.NameEquals("name")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + name = null; + continue; + } name = property.Value.GetString(); continue; } if (property.NameEquals("iso6391Name")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + iso6391Name = null; + continue; + } iso6391Name = property.Value.GetString(); continue; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs index 7e9aadfa2aea1..4b54206d97268 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.cs @@ -5,8 +5,6 @@ #nullable disable -using System; - namespace Azure.AI.TextAnalytics.Models { /// The DetectedLanguage. @@ -16,18 +14,8 @@ internal readonly partial struct DetectedLanguageInternal /// Long name of a detected language (e.g. English, French). /// A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr). /// A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. - /// or is null. internal DetectedLanguageInternal(string name, string iso6391Name, double confidenceScore) { - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - if (iso6391Name == null) - { - throw new ArgumentNullException(nameof(iso6391Name)); - } - Name = name; Iso6391Name = iso6391Name; ConfidenceScore = confidenceScore; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs index c386567e7da41..0e6406dc2200d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class DocumentEntities + internal partial class DocumentEntities { internal static DocumentEntities DeserializeDocumentEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs index 0938a1fea2c90..f754a58757948 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentEntities. - public partial class DocumentEntities + internal partial class DocumentEntities { /// Initializes a new instance of DocumentEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs index 327df9d631183..7c74386d95bf9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class DocumentError + internal partial class DocumentError { internal static DocumentError DeserializeDocumentError(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs index 541085aea8b5d..e779c0f15ded5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentError. - public partial class DocumentError + internal partial class DocumentError { /// Initializes a new instance of DocumentError. /// Document Id. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs index cd41250f5303b..d28fedaa6b9be 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class DocumentKeyPhrases + internal partial class DocumentKeyPhrases { internal static DocumentKeyPhrases DeserializeDocumentKeyPhrases(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs index 6080199bf4474..7c0cde854dbb2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentKeyPhrases.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentKeyPhrases. - public partial class DocumentKeyPhrases + internal partial class DocumentKeyPhrases { /// Initializes a new instance of DocumentKeyPhrases. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs index 8975d0fa1876e..f29355b6e5de2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class DocumentLanguage + internal partial class DocumentLanguage { internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs index e6b1755b2f1ba..4bfa460bedcbe 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLanguage.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentLanguage. - public partial class DocumentLanguage + internal partial class DocumentLanguage { /// Initializes a new instance of DocumentLanguage. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs index d9fc4977d0e9b..62c1edf9ff2db 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class DocumentLinkedEntities + internal partial class DocumentLinkedEntities { internal static DocumentLinkedEntities DeserializeDocumentLinkedEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs index 83bba2de06f70..1d3ec8abce18f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentLinkedEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The DocumentLinkedEntities. - public partial class DocumentLinkedEntities + internal partial class DocumentLinkedEntities { /// Initializes a new instance of DocumentLinkedEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs index 4c57b5d5b3a7f..6422d046d3473 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class EntitiesResult + internal partial class EntitiesResult { internal static EntitiesResult DeserializeEntitiesResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs index f46c270cf8929..fde41810f2710 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntitiesResult. - public partial class EntitiesResult + internal partial class EntitiesResult { /// Initializes a new instance of EntitiesResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs index 04ba580672dcf..649ae0ae1f3ea 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class EntitiesTask : IUtf8JsonSerializable + internal partial class EntitiesTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs index 5a5578afd3c0e..1adaadc70044a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntitiesTask. - public partial class EntitiesTask + internal partial class EntitiesTask { /// Initializes a new instance of EntitiesTask. public EntitiesTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs index 506a1bd57c326..94e1ec99bf2bc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class Entity + internal partial class Entity { internal static Entity DeserializeEntity(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs index 20186666456fa..56a5002e7305a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The Entity. - public partial class Entity + internal partial class Entity { /// Initializes a new instance of Entity. /// Entity text as appears in the request. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs index d690d8fbfee1b..6b6d1df358b9d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class EntityLinkingResult + internal partial class EntityLinkingResult { internal static EntityLinkingResult DeserializeEntityLinkingResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs index e111aa4b1d5d1..f6e8d9efd823f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntityLinkingResult. - public partial class EntityLinkingResult + internal partial class EntityLinkingResult { /// Initializes a new instance of EntityLinkingResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs index a35787843e37a..73b4985cb8f11 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class EntityLinkingTask : IUtf8JsonSerializable + internal partial class EntityLinkingTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs index 78c45ad37528d..f338c593e48ad 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The EntityLinkingTask. - public partial class EntityLinkingTask + internal partial class EntityLinkingTask { /// Initializes a new instance of EntityLinkingTask. public EntityLinkingTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs index 523b3934919cb..2f17bcbdcd03a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class JobDescriptor : IUtf8JsonSerializable + internal partial class JobDescriptor : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs index f3c9fc07c64a4..1c8f028ed44e6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobDescriptor.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The JobDescriptor. - public partial class JobDescriptor + internal partial class JobDescriptor { /// Initializes a new instance of JobDescriptor. public JobDescriptor() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs index 93083df67dbf1..82749d35315f6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class JobManifest : IUtf8JsonSerializable + internal partial class JobManifest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs index 2af6bc29fd8be..472c310b30f62 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifest.cs @@ -11,7 +11,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The JobManifest. - public partial class JobManifest + internal partial class JobManifest { /// Initializes a new instance of JobManifest. /// The set of tasks to execute on the input documents. Cannot specify the same task more than once. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs index 68f5dc72c04eb..7b59eed439d42 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class KeyPhraseResult + internal partial class KeyPhraseResult { internal static KeyPhraseResult DeserializeKeyPhraseResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs index 62fc12f4ab9bd..0359a5add1036 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The KeyPhraseResult. - public partial class KeyPhraseResult + internal partial class KeyPhraseResult { /// Initializes a new instance of KeyPhraseResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs index 0f0e9556214fc..7404db43068e9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class KeyPhrasesTask : IUtf8JsonSerializable + internal partial class KeyPhrasesTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs index 00a8f9cabaaec..010f11ef9494f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The KeyPhrasesTask. - public partial class KeyPhrasesTask + internal partial class KeyPhrasesTask { /// Initializes a new instance of KeyPhrasesTask. public KeyPhrasesTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs index 51ead482b2882..c3055214c7643 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class LanguageBatchInput : IUtf8JsonSerializable + internal partial class LanguageBatchInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs index a678ae788f9d3..9fd3d08296049 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageBatchInput.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The LanguageBatchInput. - public partial class LanguageBatchInput + internal partial class LanguageBatchInput { /// Initializes a new instance of LanguageBatchInput. /// . diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs index 4ea2a4181f488..30c461c280df0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs @@ -10,15 +10,29 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class LanguageInput : IUtf8JsonSerializable + internal partial class LanguageInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("id"); - writer.WriteStringValue(Id); - writer.WritePropertyName("text"); - writer.WriteStringValue(Text); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + else + { + writer.WriteNull("id"); + } + if (Text != null) + { + writer.WritePropertyName("text"); + writer.WriteStringValue(Text); + } + else + { + writer.WriteNull("text"); + } if (Optional.IsDefined(CountryHint)) { writer.WritePropertyName("countryHint"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs index 9f09aba1c60d8..e7992b59911b8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.cs @@ -5,28 +5,16 @@ #nullable disable -using System; - namespace Azure.AI.TextAnalytics.Models { /// The LanguageInput. - public partial class LanguageInput + internal partial class LanguageInput { /// Initializes a new instance of LanguageInput. /// Unique, non-empty document identifier. /// . - /// or is null. public LanguageInput(string id, string text) { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - if (text == null) - { - throw new ArgumentNullException(nameof(text)); - } - Id = id; Text = text; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs index 8af937ed0d75b..93f03dbc75d15 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class LanguageResult + internal partial class LanguageResult { internal static LanguageResult DeserializeLanguageResult(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs index 5bf853706f2a1..62fe3d1a694ea 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageResult.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The LanguageResult. - public partial class LanguageResult + internal partial class LanguageResult { /// Initializes a new instance of LanguageResult. /// Response by document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs index 04cdfd5c1813b..61c15a7d5fb2b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class MultiLanguageBatchInput : IUtf8JsonSerializable + internal partial class MultiLanguageBatchInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs index 10c7c48614a76..f03ac8d5d9bd2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageBatchInput.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Contains a set of input documents to be analyzed by the service. - public partial class MultiLanguageBatchInput + internal partial class MultiLanguageBatchInput { /// Initializes a new instance of MultiLanguageBatchInput. /// The set of documents to process as part of this batch. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs index f121ab08f9514..10928df43be23 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class MultiLanguageInput : IUtf8JsonSerializable + internal partial class MultiLanguageInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs index bfd062e488ae4..14db71884db5f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Contains an input document to be analyzed by the service. - public partial class MultiLanguageInput + internal partial class MultiLanguageInput { /// Initializes a new instance of MultiLanguageInput. /// A unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs index 197a1bac0b12d..16b147dc33128 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class PiiDocumentEntities + internal partial class PiiDocumentEntities { internal static PiiDocumentEntities DeserializePiiDocumentEntities(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs index 83f58bdac1d25..abd3230d01181 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiDocumentEntities.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The PiiDocumentEntities. - public partial class PiiDocumentEntities + internal partial class PiiDocumentEntities { /// Initializes a new instance of PiiDocumentEntities. /// Unique, non-empty document identifier. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs index b5d528514db00..6f2adbf4dc6d1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class PiiTask : IUtf8JsonSerializable + internal partial class PiiTask : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs index 31fa21b7a6947..0bb15ca2db21c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTask.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The PiiTask. - public partial class PiiTask + internal partial class PiiTask { /// Initializes a new instance of PiiTask. public PiiTask() diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs index 058eb8f08edc0..e90d143b9d900 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class SentimentResponse + internal partial class SentimentResponse { internal static SentimentResponse DeserializeSentimentResponse(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs index 5f0c3199dde34..4735339b50990 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.cs @@ -13,7 +13,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The SentimentResponse. - public partial class SentimentResponse + internal partial class SentimentResponse { /// Initializes a new instance of SentimentResponse. /// Sentiment analysis per document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs index 8f3211eeb584a..1e5e230a3c57b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class TargetConfidenceScoreLabel + internal partial class TargetConfidenceScoreLabel { internal static TargetConfidenceScoreLabel DeserializeTargetConfidenceScoreLabel(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs index 04fde97ce2937..f178ab4eea6d8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.cs @@ -8,7 +8,7 @@ namespace Azure.AI.TextAnalytics.Models { /// Represents the confidence scores across all sentiment classes: positive, neutral, negative. - public partial class TargetConfidenceScoreLabel + internal partial class TargetConfidenceScoreLabel { /// Initializes a new instance of TargetConfidenceScoreLabel. /// . diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs index bf26f540e8f5f..a191710716276 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { - public partial class TargetRelation + internal partial class TargetRelation { internal static TargetRelation DeserializeTargetRelation(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs index 3854f2ba0c512..0306466e923ef 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics.Models { /// The TargetRelation. - public partial class TargetRelation + internal partial class TargetRelation { /// Initializes a new instance of TargetRelation. /// The type related to the target. diff --git a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs index c235490c744c6..a6ade4f7ed09f 100644 --- a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.Iot.TimeSeriesInsights { - public partial class UpdateModelSettingsRequest : IUtf8JsonSerializable + internal partial class UpdateModelSettingsRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs index 3056d135d4a20..2bcabf687e321 100644 --- a/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs +++ b/sdk/timeseriesinsights/Azure.Iot.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.cs @@ -8,7 +8,7 @@ namespace Azure.Iot.TimeSeriesInsights { /// Request to update model settings. One of "name" or "defaultTypeId" must be set. - public partial class UpdateModelSettingsRequest + internal partial class UpdateModelSettingsRequest { /// Initializes a new instance of UpdateModelSettingsRequest. public UpdateModelSettingsRequest()