diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.netstandard2.0.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.netstandard2.0.cs index ae310527da779..c3f4dfe5b9745 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.netstandard2.0.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.netstandard2.0.cs @@ -795,8 +795,8 @@ public DataProtectionBackupNameAvailabilityContent() { } public partial class DataProtectionBackupNameAvailabilityResult { internal DataProtectionBackupNameAvailabilityResult() { } + public bool? IsNameAvailable { get { throw null; } } public string Message { get { throw null; } } - public bool? NameAvailable { get { throw null; } } public string Reason { get { throw null; } } } public partial class DataProtectionBackupPatch @@ -926,7 +926,7 @@ protected DataProtectionOperationExtendedInfo() { } public partial class DataProtectionOperationJobExtendedInfo : Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionOperationExtendedInfo { internal DataProtectionOperationJobExtendedInfo() { } - public string JobId { get { throw null; } } + public System.Guid? JobId { get { throw null; } } } public partial class DataProtectionRetentionRule : Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBasePolicyRule { @@ -936,24 +936,24 @@ public DataProtectionRetentionRule(string name, System.Collections.Generic.IEnum } public partial class DataSourceInfo { - public DataSourceInfo(string resourceId) { } + public DataSourceInfo(Azure.Core.ResourceIdentifier resourceId) { } public string DataSourceType { get { throw null; } set { } } public string ObjectType { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } - public string ResourceLocation { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public Azure.Core.AzureLocation? ResourceLocation { get { throw null; } set { } } public string ResourceName { get { throw null; } set { } } - public string ResourceType { get { throw null; } set { } } + public Azure.Core.ResourceType? ResourceType { get { throw null; } set { } } public System.Uri ResourceUri { get { throw null; } set { } } } public partial class DataSourceSetInfo { - public DataSourceSetInfo(string resourceId) { } + public DataSourceSetInfo(Azure.Core.ResourceIdentifier resourceId) { } public string DataSourceType { get { throw null; } set { } } public string ObjectType { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } - public string ResourceLocation { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public Azure.Core.AzureLocation? ResourceLocation { get { throw null; } set { } } public string ResourceName { get { throw null; } set { } } - public string ResourceType { get { throw null; } set { } } + public Azure.Core.ResourceType? ResourceType { get { throw null; } set { } } public System.Uri ResourceUri { get { throw null; } set { } } } public partial class DataStoreInfoBase @@ -1052,10 +1052,10 @@ public partial class RecoveryPointDataStoreDetail public RecoveryPointDataStoreDetail() { } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } - public string Id { get { throw null; } set { } } public bool? IsVisible { get { throw null; } set { } } public string Metadata { get { throw null; } set { } } - public string RecoveryPointDataStoreDetailType { get { throw null; } set { } } + public System.Guid? RecoveryPointDataStoreId { get { throw null; } set { } } + public string RecoveryPointDataStoreType { get { throw null; } set { } } public System.DateTimeOffset? RehydrationExpireOn { get { throw null; } } public Azure.ResourceManager.DataProtectionBackup.Models.RecoveryPointDataStoreRehydrationStatus? RehydrationStatus { get { throw null; } } public string State { get { throw null; } set { } } @@ -1203,10 +1203,10 @@ public partial class ScheduleBasedBackupCriteria : Azure.ResourceManager.DataPro public ScheduleBasedBackupCriteria() { } public System.Collections.Generic.IList AbsoluteCriteria { get { throw null; } } public System.Collections.Generic.IList DaysOfMonth { get { throw null; } } - public System.Collections.Generic.IList DaysOfTheWeek { get { throw null; } } + public System.Collections.Generic.IList DaysOfWeek { get { throw null; } } public System.Collections.Generic.IList MonthsOfYear { get { throw null; } } public System.Collections.Generic.IList ScheduleTimes { get { throw null; } } - public System.Collections.Generic.IList WeeksOfTheMonth { get { throw null; } } + public System.Collections.Generic.IList WeeksOfMonth { get { throw null; } } } public partial class ScheduleBasedBackupTriggerContext : Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupTriggerContext { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupNameAvailabilityResult.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupNameAvailabilityResult.cs index b47a3cfff4e44..6c0d4f525fb00 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupNameAvailabilityResult.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupNameAvailabilityResult.cs @@ -17,19 +17,19 @@ internal DataProtectionBackupNameAvailabilityResult() /// Initializes a new instance of DataProtectionBackupNameAvailabilityResult. /// Gets or sets the message. - /// Gets or sets a value indicating whether [name available]. + /// Gets or sets a value indicating whether [name available]. /// Gets or sets the reason. - internal DataProtectionBackupNameAvailabilityResult(string message, bool? nameAvailable, string reason) + internal DataProtectionBackupNameAvailabilityResult(string message, bool? isNameAvailable, string reason) { Message = message; - NameAvailable = nameAvailable; + IsNameAvailable = isNameAvailable; Reason = reason; } /// Gets or sets the message. public string Message { get; } /// Gets or sets a value indicating whether [name available]. - public bool? NameAvailable { get; } + public bool? IsNameAvailable { get; } /// Gets or sets the reason. public string Reason { get; } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.Serialization.cs index b8e52e5a4501b..238cb36f5f8aa 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.Serialization.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -14,13 +15,18 @@ public partial class DataProtectionOperationJobExtendedInfo { internal static DataProtectionOperationJobExtendedInfo DeserializeDataProtectionOperationJobExtendedInfo(JsonElement element) { - Optional jobId = default; + Optional jobId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("jobId")) { - jobId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + jobId = property.Value.GetGuid(); continue; } if (property.NameEquals("objectType")) @@ -29,7 +35,7 @@ internal static DataProtectionOperationJobExtendedInfo DeserializeDataProtection continue; } } - return new DataProtectionOperationJobExtendedInfo(objectType, jobId.Value); + return new DataProtectionOperationJobExtendedInfo(objectType, Optional.ToNullable(jobId)); } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.cs index 7daa9539e2e27..26f1166719ee5 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionOperationJobExtendedInfo.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.DataProtectionBackup.Models { /// Operation Job Extended Info. @@ -19,13 +21,13 @@ internal DataProtectionOperationJobExtendedInfo() /// Initializes a new instance of DataProtectionOperationJobExtendedInfo. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Arm Id of the job created for this operation. - internal DataProtectionOperationJobExtendedInfo(string objectType, string jobId) : base(objectType) + internal DataProtectionOperationJobExtendedInfo(string objectType, Guid? jobId) : base(objectType) { JobId = jobId; ObjectType = objectType ?? "OperationJobExtendedInfo"; } /// Arm Id of the job created for this operation. - public string JobId { get; } + public Guid? JobId { get; } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.Serialization.cs index 40315084626e9..cb9b61fab3029 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.Serialization.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ResourceLocation)) { writer.WritePropertyName("resourceLocation"); - writer.WriteStringValue(ResourceLocation); + writer.WriteStringValue(ResourceLocation.Value); } if (Optional.IsDefined(ResourceName)) { @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ResourceType)) { writer.WritePropertyName("resourceType"); - writer.WriteStringValue(ResourceType); + writer.WriteStringValue(ResourceType.Value); } if (Optional.IsDefined(ResourceUri)) { @@ -55,10 +55,10 @@ internal static DataSourceInfo DeserializeDataSourceInfo(JsonElement element) { Optional datasourceType = default; Optional objectType = default; - string resourceId = default; - Optional resourceLocation = default; + ResourceIdentifier resourceId = default; + Optional resourceLocation = default; Optional resourceName = default; - Optional resourceType = default; + Optional resourceType = default; Optional resourceUri = default; foreach (var property in element.EnumerateObject()) { @@ -74,12 +74,17 @@ internal static DataSourceInfo DeserializeDataSourceInfo(JsonElement element) } if (property.NameEquals("resourceID")) { - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("resourceLocation")) { - resourceLocation = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceLocation = new AzureLocation(property.Value.GetString()); continue; } if (property.NameEquals("resourceName")) @@ -89,7 +94,12 @@ internal static DataSourceInfo DeserializeDataSourceInfo(JsonElement element) } if (property.NameEquals("resourceType")) { - resourceType = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceType = new ResourceType(property.Value.GetString()); continue; } if (property.NameEquals("resourceUri")) @@ -103,7 +113,7 @@ internal static DataSourceInfo DeserializeDataSourceInfo(JsonElement element) continue; } } - return new DataSourceInfo(datasourceType.Value, objectType.Value, resourceId, resourceLocation.Value, resourceName.Value, resourceType.Value, resourceUri.Value); + return new DataSourceInfo(datasourceType.Value, objectType.Value, resourceId, Optional.ToNullable(resourceLocation), resourceName.Value, Optional.ToNullable(resourceType), resourceUri.Value); } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.cs index 08469900a4e7d..e1355666d0f95 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceInfo.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.DataProtectionBackup.Models { @@ -15,7 +16,7 @@ public partial class DataSourceInfo /// Initializes a new instance of DataSourceInfo. /// Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. /// is null. - public DataSourceInfo(string resourceId) + public DataSourceInfo(ResourceIdentifier resourceId) { if (resourceId == null) { @@ -33,7 +34,7 @@ public DataSourceInfo(string resourceId) /// Unique identifier of the resource in the context of parent. /// Resource Type of Datasource. /// Uri of the resource. - internal DataSourceInfo(string dataSourceType, string objectType, string resourceId, string resourceLocation, string resourceName, string resourceType, Uri resourceUri) + internal DataSourceInfo(string dataSourceType, string objectType, ResourceIdentifier resourceId, AzureLocation? resourceLocation, string resourceName, ResourceType? resourceType, Uri resourceUri) { DataSourceType = dataSourceType; ObjectType = objectType; @@ -49,13 +50,13 @@ internal DataSourceInfo(string dataSourceType, string objectType, string resourc /// Type of Datasource object, used to initialize the right inherited type. public string ObjectType { get; set; } /// Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// Location of datasource. - public string ResourceLocation { get; set; } + public AzureLocation? ResourceLocation { get; set; } /// Unique identifier of the resource in the context of parent. public string ResourceName { get; set; } /// Resource Type of Datasource. - public string ResourceType { get; set; } + public ResourceType? ResourceType { get; set; } /// Uri of the resource. public Uri ResourceUri { get; set; } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.Serialization.cs index 7fa40a2f5430e..a833276a19e7b 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.Serialization.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ResourceLocation)) { writer.WritePropertyName("resourceLocation"); - writer.WriteStringValue(ResourceLocation); + writer.WriteStringValue(ResourceLocation.Value); } if (Optional.IsDefined(ResourceName)) { @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ResourceType)) { writer.WritePropertyName("resourceType"); - writer.WriteStringValue(ResourceType); + writer.WriteStringValue(ResourceType.Value); } if (Optional.IsDefined(ResourceUri)) { @@ -55,10 +55,10 @@ internal static DataSourceSetInfo DeserializeDataSourceSetInfo(JsonElement eleme { Optional datasourceType = default; Optional objectType = default; - string resourceId = default; - Optional resourceLocation = default; + ResourceIdentifier resourceId = default; + Optional resourceLocation = default; Optional resourceName = default; - Optional resourceType = default; + Optional resourceType = default; Optional resourceUri = default; foreach (var property in element.EnumerateObject()) { @@ -74,12 +74,17 @@ internal static DataSourceSetInfo DeserializeDataSourceSetInfo(JsonElement eleme } if (property.NameEquals("resourceID")) { - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("resourceLocation")) { - resourceLocation = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceLocation = new AzureLocation(property.Value.GetString()); continue; } if (property.NameEquals("resourceName")) @@ -89,7 +94,12 @@ internal static DataSourceSetInfo DeserializeDataSourceSetInfo(JsonElement eleme } if (property.NameEquals("resourceType")) { - resourceType = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceType = new ResourceType(property.Value.GetString()); continue; } if (property.NameEquals("resourceUri")) @@ -103,7 +113,7 @@ internal static DataSourceSetInfo DeserializeDataSourceSetInfo(JsonElement eleme continue; } } - return new DataSourceSetInfo(datasourceType.Value, objectType.Value, resourceId, resourceLocation.Value, resourceName.Value, resourceType.Value, resourceUri.Value); + return new DataSourceSetInfo(datasourceType.Value, objectType.Value, resourceId, Optional.ToNullable(resourceLocation), resourceName.Value, Optional.ToNullable(resourceType), resourceUri.Value); } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.cs index 418e14c0317b9..bd91f04cebd93 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataSourceSetInfo.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.DataProtectionBackup.Models { @@ -15,7 +16,7 @@ public partial class DataSourceSetInfo /// Initializes a new instance of DataSourceSetInfo. /// Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. /// is null. - public DataSourceSetInfo(string resourceId) + public DataSourceSetInfo(ResourceIdentifier resourceId) { if (resourceId == null) { @@ -33,7 +34,7 @@ public DataSourceSetInfo(string resourceId) /// Unique identifier of the resource in the context of parent. /// Resource Type of Datasource. /// Uri of the resource. - internal DataSourceSetInfo(string dataSourceType, string objectType, string resourceId, string resourceLocation, string resourceName, string resourceType, Uri resourceUri) + internal DataSourceSetInfo(string dataSourceType, string objectType, ResourceIdentifier resourceId, AzureLocation? resourceLocation, string resourceName, ResourceType? resourceType, Uri resourceUri) { DataSourceType = dataSourceType; ObjectType = objectType; @@ -49,13 +50,13 @@ internal DataSourceSetInfo(string dataSourceType, string objectType, string reso /// Type of Datasource object, used to initialize the right inherited type. public string ObjectType { get; set; } /// Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// Location of datasource. - public string ResourceLocation { get; set; } + public AzureLocation? ResourceLocation { get; set; } /// Unique identifier of the resource in the context of parent. public string ResourceName { get; set; } /// Resource Type of Datasource. - public string ResourceType { get; set; } + public ResourceType? ResourceType { get; set; } /// Uri of the resource. public Uri ResourceUri { get; set; } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.Serialization.cs index a26afb34b3894..58e050f990205 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.Serialization.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.Serialization.cs @@ -26,10 +26,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("expiryTime"); writer.WriteStringValue(ExpireOn.Value, "O"); } - if (Optional.IsDefined(Id)) + if (Optional.IsDefined(RecoveryPointDataStoreId)) { writer.WritePropertyName("id"); - writer.WriteStringValue(Id); + writer.WriteStringValue(RecoveryPointDataStoreId.Value); } if (Optional.IsDefined(Metadata)) { @@ -41,10 +41,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("state"); writer.WriteStringValue(State); } - if (Optional.IsDefined(RecoveryPointDataStoreDetailType)) + if (Optional.IsDefined(RecoveryPointDataStoreType)) { writer.WritePropertyName("type"); - writer.WriteStringValue(RecoveryPointDataStoreDetailType); + writer.WriteStringValue(RecoveryPointDataStoreType); } if (Optional.IsDefined(IsVisible)) { @@ -58,7 +58,7 @@ internal static RecoveryPointDataStoreDetail DeserializeRecoveryPointDataStoreDe { Optional creationTime = default; Optional expiryTime = default; - Optional id = default; + Optional id = default; Optional metaData = default; Optional state = default; Optional type = default; @@ -89,7 +89,12 @@ internal static RecoveryPointDataStoreDetail DeserializeRecoveryPointDataStoreDe } if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = property.Value.GetGuid(); continue; } if (property.NameEquals("metaData")) @@ -138,7 +143,7 @@ internal static RecoveryPointDataStoreDetail DeserializeRecoveryPointDataStoreDe continue; } } - return new RecoveryPointDataStoreDetail(Optional.ToNullable(creationTime), Optional.ToNullable(expiryTime), id.Value, metaData.Value, state.Value, type.Value, Optional.ToNullable(visible), Optional.ToNullable(rehydrationExpiryTime), Optional.ToNullable(rehydrationStatus)); + return new RecoveryPointDataStoreDetail(Optional.ToNullable(creationTime), Optional.ToNullable(expiryTime), Optional.ToNullable(id), metaData.Value, state.Value, type.Value, Optional.ToNullable(visible), Optional.ToNullable(rehydrationExpiryTime), Optional.ToNullable(rehydrationStatus)); } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.cs index 971d3e86bc8a4..d11eda2b69f51 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/RecoveryPointDataStoreDetail.cs @@ -20,21 +20,21 @@ public RecoveryPointDataStoreDetail() /// Initializes a new instance of RecoveryPointDataStoreDetail. /// /// - /// + /// /// /// - /// + /// /// /// /// - internal RecoveryPointDataStoreDetail(DateTimeOffset? createdOn, DateTimeOffset? expireOn, string id, string metadata, string state, string recoveryPointDataStoreDetailType, bool? isVisible, DateTimeOffset? rehydrationExpireOn, RecoveryPointDataStoreRehydrationStatus? rehydrationStatus) + internal RecoveryPointDataStoreDetail(DateTimeOffset? createdOn, DateTimeOffset? expireOn, Guid? recoveryPointDataStoreId, string metadata, string state, string recoveryPointDataStoreType, bool? isVisible, DateTimeOffset? rehydrationExpireOn, RecoveryPointDataStoreRehydrationStatus? rehydrationStatus) { CreatedOn = createdOn; ExpireOn = expireOn; - Id = id; + RecoveryPointDataStoreId = recoveryPointDataStoreId; Metadata = metadata; State = state; - RecoveryPointDataStoreDetailType = recoveryPointDataStoreDetailType; + RecoveryPointDataStoreType = recoveryPointDataStoreType; IsVisible = isVisible; RehydrationExpireOn = rehydrationExpireOn; RehydrationStatus = rehydrationStatus; @@ -44,14 +44,14 @@ internal RecoveryPointDataStoreDetail(DateTimeOffset? createdOn, DateTimeOffset? public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the expire on. public DateTimeOffset? ExpireOn { get; set; } - /// Gets or sets the id. - public string Id { get; set; } + /// Gets or sets the recovery point data store id. + public Guid? RecoveryPointDataStoreId { get; set; } /// Gets or sets the metadata. public string Metadata { get; set; } /// Gets or sets the state. public string State { get; set; } - /// Gets or sets the recovery point data store detail type. - public string RecoveryPointDataStoreDetailType { get; set; } + /// Gets or sets the recovery point data store type. + public string RecoveryPointDataStoreType { get; set; } /// Gets or sets the is visible. public bool? IsVisible { get; set; } /// Gets the rehydration expire on. diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.Serialization.cs index 6b31ca2c99312..7900ff9a4abfe 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.Serialization.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.Serialization.cs @@ -37,11 +37,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsCollectionDefined(DaysOfTheWeek)) + if (Optional.IsCollectionDefined(DaysOfWeek)) { writer.WritePropertyName("daysOfTheWeek"); writer.WriteStartArray(); - foreach (var item in DaysOfTheWeek) + foreach (var item in DaysOfWeek) { writer.WriteStringValue(item.ToString()); } @@ -67,11 +67,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsCollectionDefined(WeeksOfTheMonth)) + if (Optional.IsCollectionDefined(WeeksOfMonth)) { writer.WritePropertyName("weeksOfTheMonth"); writer.WriteStartArray(); - foreach (var item in WeeksOfTheMonth) + foreach (var item in WeeksOfMonth) { writer.WriteStringValue(item.ToString()); } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs index 5a30c269d968e..6654dc5bbddbe 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs @@ -19,10 +19,10 @@ public ScheduleBasedBackupCriteria() { AbsoluteCriteria = new ChangeTrackingList(); DaysOfMonth = new ChangeTrackingList(); - DaysOfTheWeek = new ChangeTrackingList(); + DaysOfWeek = new ChangeTrackingList(); MonthsOfYear = new ChangeTrackingList(); ScheduleTimes = new ChangeTrackingList(); - WeeksOfTheMonth = new ChangeTrackingList(); + WeeksOfMonth = new ChangeTrackingList(); ObjectType = "ScheduleBasedBackupCriteria"; } @@ -33,18 +33,18 @@ public ScheduleBasedBackupCriteria() /// and should be part of AbsoluteMarker enum /// /// This is day of the month from 1 to 28 other wise last of month. - /// It should be Sunday/Monday/T..../Saturday. + /// It should be Sunday/Monday/T..../Saturday. /// It should be January/February/....../December. /// List of schedule times for backup. - /// It should be First/Second/Third/Fourth/Last. - internal ScheduleBasedBackupCriteria(string objectType, IList absoluteCriteria, IList daysOfMonth, IList daysOfTheWeek, IList monthsOfYear, IList scheduleTimes, IList weeksOfTheMonth) : base(objectType) + /// It should be First/Second/Third/Fourth/Last. + internal ScheduleBasedBackupCriteria(string objectType, IList absoluteCriteria, IList daysOfMonth, IList daysOfWeek, IList monthsOfYear, IList scheduleTimes, IList weeksOfMonth) : base(objectType) { AbsoluteCriteria = absoluteCriteria; DaysOfMonth = daysOfMonth; - DaysOfTheWeek = daysOfTheWeek; + DaysOfWeek = daysOfWeek; MonthsOfYear = monthsOfYear; ScheduleTimes = scheduleTimes; - WeeksOfTheMonth = weeksOfTheMonth; + WeeksOfMonth = weeksOfMonth; ObjectType = objectType ?? "ScheduleBasedBackupCriteria"; } @@ -56,12 +56,12 @@ internal ScheduleBasedBackupCriteria(string objectType, IList This is day of the month from 1 to 28 other wise last of month. public IList DaysOfMonth { get; } /// It should be Sunday/Monday/T..../Saturday. - public IList DaysOfTheWeek { get; } + public IList DaysOfWeek { get; } /// It should be January/February/....../December. public IList MonthsOfYear { get; } /// List of schedule times for backup. public IList ScheduleTimes { get; } /// It should be First/Second/Third/Fourth/Last. - public IList WeeksOfTheMonth { get; } + public IList WeeksOfMonth { get; } } } diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/autorest.md b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/autorest.md index a9384abe93fbc..70a0f7c277209 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/autorest.md +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/autorest.md @@ -98,6 +98,7 @@ rename-mapping: TriggerBackupRequest.backupRuleOptions: BackupRules OperationExtendedInfo: DataProtectionOperationExtendedInfo OperationJobExtendedInfo: DataProtectionOperationJobExtendedInfo + OperationJobExtendedInfo.jobId: -|uuid AzureBackupFindRestorableTimeRangesRequest: BackupFindRestorableTimeRangeContent AzureBackupFindRestorableTimeRangesRequest.startTime: StartOn|date-time AzureBackupFindRestorableTimeRangesRequest.endTime: EndOn|date-time @@ -132,6 +133,7 @@ rename-mapping: CheckNameAvailabilityRequest: DataProtectionBackupNameAvailabilityContent CheckNameAvailabilityRequest.type: -|resource-type CheckNameAvailabilityResult: DataProtectionBackupNameAvailabilityResult + CheckNameAvailabilityResult.nameAvailable: IsNameAvailable AdHocBackupRuleOptions: AdhocBackupRules AdHocBackupRuleOptions.triggerOption: BackupTrigger AdhocBackupTriggerOption: AdhocBackupTriggerSetting @@ -152,7 +154,8 @@ rename-mapping: RecoveryPointDataStoreDetails.expiryTime: ExpireOn RecoveryPointDataStoreDetails.rehydrationExpiryTime: RehydrationExpireOn RecoveryPointDataStoreDetails.metaData: Metadata - RecoveryPointDataStoreDetails.type: RecoveryPointDataStoreDetailType + RecoveryPointDataStoreDetails.id: RecoveryPointDataStoreId|uuid + RecoveryPointDataStoreDetails.type: RecoveryPointDataStoreType RecoveryPointDataStoreDetails.visible: IsVisible BackupParameters: DataProtectionBackupSettingsBase AzureBackupParams: DataProtectionBackupSettings @@ -166,8 +169,14 @@ rename-mapping: BackupCriteria: DataProtectionBackupCriteria Datasource: DataSourceInfo Datasource.datasourceType: DataSourceType + Datasource.resourceID: -|arm-id + Datasource.resourceLocation: -|azure-location + Datasource.resourceType: -|resource-type DatasourceSet: DataSourceSetInfo DatasourceSet.datasourceType: DataSourceType + DatasourceSet.resourceID: -|arm-id + DatasourceSet.resourceLocation: -|azure-location + DatasourceSet.resourceType: -|resource-type PolicyInfo: BackupInstancePolicyInfo PolicyInfo.policyId: -|arm-id ValidationType: BackupValidationType @@ -209,6 +218,8 @@ rename-mapping: RestoreTargetInfoBase.recoveryOption: RecoverySetting SecretStoreResource: SecretStoreResourceInfo SyncType: BackupInstanceSyncType + ScheduleBasedBackupCriteria.daysOfTheWeek: DaysOfWeek + ScheduleBasedBackupCriteria.weeksOfTheMonth: WeeksOfMonth directive: # Correct the type of properties diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/api/Azure.ResourceManager.Dynatrace.netstandard2.0.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/api/Azure.ResourceManager.Dynatrace.netstandard2.0.cs index 4c6c19ca420ae..b212acff74ccc 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/api/Azure.ResourceManager.Dynatrace.netstandard2.0.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/api/Azure.ResourceManager.Dynatrace.netstandard2.0.cs @@ -154,6 +154,42 @@ protected DynatraceTagRuleResource() { } } namespace Azure.ResourceManager.Dynatrace.Models { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AadLogsSendingStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AadLogsSendingStatus(string value) { throw null; } + public static Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ActivityLogsSendingStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityLogsSendingStatus(string value) { throw null; } + public static Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class DynatraceAccountCredentialsInfo { internal DynatraceAccountCredentialsInfo() { } @@ -215,8 +251,8 @@ internal DynatraceMonitoredResourceDetails() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } } public string ReasonForLogsStatus { get { throw null; } } public string ReasonForMetricsStatus { get { throw null; } } - public Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus? SendingLogsStatus { get { throw null; } } - public Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus? SendingMetricsStatus { get { throw null; } } + public Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus? SendingLogsStatus { get { throw null; } } + public Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus? SendingMetricsStatus { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct DynatraceMonitoringStatus : System.IEquatable @@ -275,9 +311,9 @@ public partial class DynatraceMonitorResourceLogRules { public DynatraceMonitorResourceLogRules() { } public System.Collections.Generic.IList FilteringTags { get { throw null; } } - public Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus? SendAadLogs { get { throw null; } set { } } - public Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus? SendActivityLogs { get { throw null; } set { } } - public Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus? SendSubscriptionLogs { get { throw null; } set { } } + public Azure.ResourceManager.Dynatrace.Models.AadLogsSendingStatus? SendAadLogs { get { throw null; } set { } } + public Azure.ResourceManager.Dynatrace.Models.ActivityLogsSendingStatus? SendActivityLogs { get { throw null; } set { } } + public Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus? SendSubscriptionLogs { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct DynatraceMonitorResourceTagAction : System.IEquatable @@ -548,93 +584,57 @@ internal LinkableEnvironmentResult() { } public Azure.ResourceManager.Dynatrace.Models.DynatraceBillingPlanInfo PlanData { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SendAadLogsStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SendAadLogsStatus(string value) { throw null; } - public static Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendAadLogsStatus right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SendActivityLogsStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SendActivityLogsStatus(string value) { throw null; } - public static Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendActivityLogsStatus right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SendingLogsStatus : System.IEquatable + public readonly partial struct LogsSendingStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SendingLogsStatus(string value) { throw null; } - public static Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus other) { throw null; } + public LogsSendingStatus(string value) { throw null; } + public static Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendingLogsStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.LogsSendingStatus right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SendingMetricsStatus : System.IEquatable + public readonly partial struct MetricsSendingStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SendingMetricsStatus(string value) { throw null; } - public static Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus other) { throw null; } + public MetricsSendingStatus(string value) { throw null; } + public static Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus left, Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus left, Azure.ResourceManager.Dynatrace.Models.SendingMetricsStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.MetricsSendingStatus right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SendSubscriptionLogsStatus : System.IEquatable + public readonly partial struct SubscriptionLogsSendingStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SendSubscriptionLogsStatus(string value) { throw null; } - public static Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus Disabled { get { throw null; } } - public static Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus other) { throw null; } + public SubscriptionLogsSendingStatus(string value) { throw null; } + public static Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus Disabled { get { throw null; } } + public static Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus left, Azure.ResourceManager.Dynatrace.Models.SendSubscriptionLogsStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus left, Azure.ResourceManager.Dynatrace.Models.SubscriptionLogsSendingStatus right) { throw null; } public override string ToString() { throw null; } } } diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AadLogsSendingStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AadLogsSendingStatus.cs new file mode 100644 index 0000000000000..266be90a4039c --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AadLogsSendingStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Dynatrace.Models +{ + /// Indicates whether AAD logs are being sent. + public readonly partial struct AadLogsSendingStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AadLogsSendingStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static AadLogsSendingStatus Enabled { get; } = new AadLogsSendingStatus(EnabledValue); + /// Disabled. + public static AadLogsSendingStatus Disabled { get; } = new AadLogsSendingStatus(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(AadLogsSendingStatus left, AadLogsSendingStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AadLogsSendingStatus left, AadLogsSendingStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AadLogsSendingStatus(string value) => new AadLogsSendingStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AadLogsSendingStatus other && Equals(other); + /// + public bool Equals(AadLogsSendingStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/ActivityLogsSendingStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/ActivityLogsSendingStatus.cs new file mode 100644 index 0000000000000..b106fc9a3408f --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/ActivityLogsSendingStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Dynatrace.Models +{ + /// Indicates whether activity logs are being sent. + public readonly partial struct ActivityLogsSendingStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ActivityLogsSendingStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static ActivityLogsSendingStatus Enabled { get; } = new ActivityLogsSendingStatus(EnabledValue); + /// Disabled. + public static ActivityLogsSendingStatus Disabled { get; } = new ActivityLogsSendingStatus(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(ActivityLogsSendingStatus left, ActivityLogsSendingStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ActivityLogsSendingStatus left, ActivityLogsSendingStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ActivityLogsSendingStatus(string value) => new ActivityLogsSendingStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ActivityLogsSendingStatus other && Equals(other); + /// + public bool Equals(ActivityLogsSendingStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.Serialization.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.Serialization.cs index 38a7550370f0b..bf162fc21080c 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.Serialization.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.Serialization.cs @@ -46,9 +46,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static DynatraceMonitorResourceLogRules DeserializeDynatraceMonitorResourceLogRules(JsonElement element) { - Optional sendAadLogs = default; - Optional sendSubscriptionLogs = default; - Optional sendActivityLogs = default; + Optional sendAadLogs = default; + Optional sendSubscriptionLogs = default; + Optional sendActivityLogs = default; Optional> filteringTags = default; foreach (var property in element.EnumerateObject()) { @@ -59,7 +59,7 @@ internal static DynatraceMonitorResourceLogRules DeserializeDynatraceMonitorReso property.ThrowNonNullablePropertyIsNull(); continue; } - sendAadLogs = new SendAadLogsStatus(property.Value.GetString()); + sendAadLogs = new AadLogsSendingStatus(property.Value.GetString()); continue; } if (property.NameEquals("sendSubscriptionLogs")) @@ -69,7 +69,7 @@ internal static DynatraceMonitorResourceLogRules DeserializeDynatraceMonitorReso property.ThrowNonNullablePropertyIsNull(); continue; } - sendSubscriptionLogs = new SendSubscriptionLogsStatus(property.Value.GetString()); + sendSubscriptionLogs = new SubscriptionLogsSendingStatus(property.Value.GetString()); continue; } if (property.NameEquals("sendActivityLogs")) @@ -79,7 +79,7 @@ internal static DynatraceMonitorResourceLogRules DeserializeDynatraceMonitorReso property.ThrowNonNullablePropertyIsNull(); continue; } - sendActivityLogs = new SendActivityLogsStatus(property.Value.GetString()); + sendActivityLogs = new ActivityLogsSendingStatus(property.Value.GetString()); continue; } if (property.NameEquals("filteringTags")) diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs index 91d13445fe4b9..a00161e69e357 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs @@ -27,7 +27,7 @@ public DynatraceMonitorResourceLogRules() /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. /// - internal DynatraceMonitorResourceLogRules(SendAadLogsStatus? sendAadLogs, SendSubscriptionLogsStatus? sendSubscriptionLogs, SendActivityLogsStatus? sendActivityLogs, IList filteringTags) + internal DynatraceMonitorResourceLogRules(AadLogsSendingStatus? sendAadLogs, SubscriptionLogsSendingStatus? sendSubscriptionLogs, ActivityLogsSendingStatus? sendActivityLogs, IList filteringTags) { SendAadLogs = sendAadLogs; SendSubscriptionLogs = sendSubscriptionLogs; @@ -36,11 +36,11 @@ internal DynatraceMonitorResourceLogRules(SendAadLogsStatus? sendAadLogs, SendSu } /// Flag specifying if AAD logs should be sent for the Monitor resource. - public SendAadLogsStatus? SendAadLogs { get; set; } + public AadLogsSendingStatus? SendAadLogs { get; set; } /// Flag specifying if subscription logs should be sent for the Monitor resource. - public SendSubscriptionLogsStatus? SendSubscriptionLogs { get; set; } + public SubscriptionLogsSendingStatus? SendSubscriptionLogs { get; set; } /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. - public SendActivityLogsStatus? SendActivityLogs { get; set; } + public ActivityLogsSendingStatus? SendActivityLogs { get; set; } /// /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.Serialization.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.Serialization.cs index 4358b744c32d8..bfb24c3ce6f09 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.Serialization.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.Serialization.cs @@ -15,9 +15,9 @@ public partial class DynatraceMonitoredResourceDetails internal static DynatraceMonitoredResourceDetails DeserializeDynatraceMonitoredResourceDetails(JsonElement element) { Optional id = default; - Optional sendingMetrics = default; + Optional sendingMetrics = default; Optional reasonForMetricsStatus = default; - Optional sendingLogs = default; + Optional sendingLogs = default; Optional reasonForLogsStatus = default; foreach (var property in element.EnumerateObject()) { @@ -38,7 +38,7 @@ internal static DynatraceMonitoredResourceDetails DeserializeDynatraceMonitoredR property.ThrowNonNullablePropertyIsNull(); continue; } - sendingMetrics = new SendingMetricsStatus(property.Value.GetString()); + sendingMetrics = new MetricsSendingStatus(property.Value.GetString()); continue; } if (property.NameEquals("reasonForMetricsStatus")) @@ -53,7 +53,7 @@ internal static DynatraceMonitoredResourceDetails DeserializeDynatraceMonitoredR property.ThrowNonNullablePropertyIsNull(); continue; } - sendingLogs = new SendingLogsStatus(property.Value.GetString()); + sendingLogs = new LogsSendingStatus(property.Value.GetString()); continue; } if (property.NameEquals("reasonForLogsStatus")) diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.cs index 8fe8b677490d1..1bb7e7798ab82 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitoredResourceDetails.cs @@ -23,7 +23,7 @@ internal DynatraceMonitoredResourceDetails() /// Reason for why the resource is sending metrics (or why it is not sending). /// Flag indicating if resource is sending logs to Dynatrace. /// Reason for why the resource is sending logs (or why it is not sending). - internal DynatraceMonitoredResourceDetails(ResourceIdentifier id, SendingMetricsStatus? sendingMetricsStatus, string reasonForMetricsStatus, SendingLogsStatus? sendingLogsStatus, string reasonForLogsStatus) + internal DynatraceMonitoredResourceDetails(ResourceIdentifier id, MetricsSendingStatus? sendingMetricsStatus, string reasonForMetricsStatus, LogsSendingStatus? sendingLogsStatus, string reasonForLogsStatus) { Id = id; SendingMetricsStatus = sendingMetricsStatus; @@ -35,11 +35,11 @@ internal DynatraceMonitoredResourceDetails(ResourceIdentifier id, SendingMetrics /// The ARM id of the resource. public ResourceIdentifier Id { get; } /// Flag indicating if resource is sending metrics to Dynatrace. - public SendingMetricsStatus? SendingMetricsStatus { get; } + public MetricsSendingStatus? SendingMetricsStatus { get; } /// Reason for why the resource is sending metrics (or why it is not sending). public string ReasonForMetricsStatus { get; } /// Flag indicating if resource is sending logs to Dynatrace. - public SendingLogsStatus? SendingLogsStatus { get; } + public LogsSendingStatus? SendingLogsStatus { get; } /// Reason for why the resource is sending logs (or why it is not sending). public string ReasonForLogsStatus { get; } } diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingLogsStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LogsSendingStatus.cs similarity index 52% rename from sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingLogsStatus.cs rename to sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LogsSendingStatus.cs index 02ba28a5c60a5..ba91701696f10 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingLogsStatus.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LogsSendingStatus.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.Dynatrace.Models { /// Indicates whether logs are being sent. - public readonly partial struct SendingLogsStatus : IEquatable + public readonly partial struct LogsSendingStatus : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public SendingLogsStatus(string value) + public LogsSendingStatus(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -26,21 +26,21 @@ public SendingLogsStatus(string value) private const string DisabledValue = "Disabled"; /// Enabled. - public static SendingLogsStatus Enabled { get; } = new SendingLogsStatus(EnabledValue); + public static LogsSendingStatus Enabled { get; } = new LogsSendingStatus(EnabledValue); /// Disabled. - public static SendingLogsStatus Disabled { get; } = new SendingLogsStatus(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(SendingLogsStatus left, SendingLogsStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SendingLogsStatus left, SendingLogsStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SendingLogsStatus(string value) => new SendingLogsStatus(value); + public static LogsSendingStatus Disabled { get; } = new LogsSendingStatus(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(LogsSendingStatus left, LogsSendingStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LogsSendingStatus left, LogsSendingStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LogsSendingStatus(string value) => new LogsSendingStatus(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SendingLogsStatus other && Equals(other); + public override bool Equals(object obj) => obj is LogsSendingStatus other && Equals(other); /// - public bool Equals(SendingLogsStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(LogsSendingStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MetricsSendingStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MetricsSendingStatus.cs new file mode 100644 index 0000000000000..1bb800e5689c7 --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MetricsSendingStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Dynatrace.Models +{ + /// Indicates whether metrics are being sent. + public readonly partial struct MetricsSendingStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MetricsSendingStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static MetricsSendingStatus Enabled { get; } = new MetricsSendingStatus(EnabledValue); + /// Disabled. + public static MetricsSendingStatus Disabled { get; } = new MetricsSendingStatus(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(MetricsSendingStatus left, MetricsSendingStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MetricsSendingStatus left, MetricsSendingStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MetricsSendingStatus(string value) => new MetricsSendingStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MetricsSendingStatus other && Equals(other); + /// + public bool Equals(MetricsSendingStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendAadLogsStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendAadLogsStatus.cs deleted file mode 100644 index ef1b329d9a4a9..0000000000000 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendAadLogsStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Dynatrace.Models -{ - /// Indicates whether AAD logs are being sent. - public readonly partial struct SendAadLogsStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SendAadLogsStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static SendAadLogsStatus Enabled { get; } = new SendAadLogsStatus(EnabledValue); - /// Disabled. - public static SendAadLogsStatus Disabled { get; } = new SendAadLogsStatus(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(SendAadLogsStatus left, SendAadLogsStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SendAadLogsStatus left, SendAadLogsStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SendAadLogsStatus(string value) => new SendAadLogsStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SendAadLogsStatus other && Equals(other); - /// - public bool Equals(SendAadLogsStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendActivityLogsStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendActivityLogsStatus.cs deleted file mode 100644 index ce45463301fc0..0000000000000 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendActivityLogsStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Dynatrace.Models -{ - /// Indicates whether activity logs are being sent. - public readonly partial struct SendActivityLogsStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SendActivityLogsStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static SendActivityLogsStatus Enabled { get; } = new SendActivityLogsStatus(EnabledValue); - /// Disabled. - public static SendActivityLogsStatus Disabled { get; } = new SendActivityLogsStatus(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(SendActivityLogsStatus left, SendActivityLogsStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SendActivityLogsStatus left, SendActivityLogsStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SendActivityLogsStatus(string value) => new SendActivityLogsStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SendActivityLogsStatus other && Equals(other); - /// - public bool Equals(SendActivityLogsStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendSubscriptionLogsStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendSubscriptionLogsStatus.cs deleted file mode 100644 index 67eece9e20c3c..0000000000000 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendSubscriptionLogsStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Dynatrace.Models -{ - /// Indicates whether subscription logs are being sent. - public readonly partial struct SendSubscriptionLogsStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SendSubscriptionLogsStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static SendSubscriptionLogsStatus Enabled { get; } = new SendSubscriptionLogsStatus(EnabledValue); - /// Disabled. - public static SendSubscriptionLogsStatus Disabled { get; } = new SendSubscriptionLogsStatus(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(SendSubscriptionLogsStatus left, SendSubscriptionLogsStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SendSubscriptionLogsStatus left, SendSubscriptionLogsStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SendSubscriptionLogsStatus(string value) => new SendSubscriptionLogsStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SendSubscriptionLogsStatus other && Equals(other); - /// - public bool Equals(SendSubscriptionLogsStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingMetricsStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingMetricsStatus.cs deleted file mode 100644 index 5ea05ca6d7fcc..0000000000000 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SendingMetricsStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Dynatrace.Models -{ - /// Indicates whether metrics are being sent. - public readonly partial struct SendingMetricsStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SendingMetricsStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static SendingMetricsStatus Enabled { get; } = new SendingMetricsStatus(EnabledValue); - /// Disabled. - public static SendingMetricsStatus Disabled { get; } = new SendingMetricsStatus(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(SendingMetricsStatus left, SendingMetricsStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SendingMetricsStatus left, SendingMetricsStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SendingMetricsStatus(string value) => new SendingMetricsStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SendingMetricsStatus other && Equals(other); - /// - public bool Equals(SendingMetricsStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SubscriptionLogsSendingStatus.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SubscriptionLogsSendingStatus.cs new file mode 100644 index 0000000000000..6e52e94766a0d --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/SubscriptionLogsSendingStatus.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Dynatrace.Models +{ + /// Indicates whether subscription logs are being sent. + public readonly partial struct SubscriptionLogsSendingStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SubscriptionLogsSendingStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static SubscriptionLogsSendingStatus Enabled { get; } = new SubscriptionLogsSendingStatus(EnabledValue); + /// Disabled. + public static SubscriptionLogsSendingStatus Disabled { get; } = new SubscriptionLogsSendingStatus(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(SubscriptionLogsSendingStatus left, SubscriptionLogsSendingStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SubscriptionLogsSendingStatus left, SubscriptionLogsSendingStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SubscriptionLogsSendingStatus(string value) => new SubscriptionLogsSendingStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SubscriptionLogsSendingStatus other && Equals(other); + /// + public bool Equals(SubscriptionLogsSendingStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/autorest.md b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/autorest.md index d68402bef3e36..3088a1926f2da 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/autorest.md +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/autorest.md @@ -87,5 +87,10 @@ rename-mapping: EnvironmentInfo: DynatraceEnvironmentInfo EnvironmentInfo.logsIngestionEndpoint: -|Uri SSOStatus: DynatraceSsoStatus + SendAadLogsStatus: AadLogsSendingStatus + SendSubscriptionLogsStatus: SubscriptionLogsSendingStatus + SendActivityLogsStatus: ActivityLogsSendingStatus + SendingLogsStatus: LogsSendingStatus + SendingMetricsStatus: MetricsSendingStatus ```