diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs index 665603781f5b..3e47ee83d44b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs @@ -33,6 +33,7 @@ public static partial class ArmDataBoxModelFactory /// The Editable status for Reverse Transport preferences. /// Is Prepare To Ship Enabled on this job. /// Name of the stage which is in progress. + /// Name of the stage where delay might be present. /// Time at which the job was started in UTC ISO 8601 format. /// Top level error for the job. /// @@ -47,11 +48,11 @@ public static partial class ArmDataBoxModelFactory /// The sku type. /// Msi identity of the resource. /// A new instance for mocking. - public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataBoxJobTransferType transferType = default, bool? isCancellable = null, bool? isDeletable = null, bool? isShippingAddressEditable = null, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = null, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = null, bool? isPrepareToShipEnabled = null, DataBoxStageName? status = null, DateTimeOffset? startOn = null, ResponseError error = null, DataBoxBasicJobDetails details = null, string cancellationReason = null, JobDeliveryType? deliveryType = null, DateTimeOffset? deliveryInfoScheduledOn = null, bool? isCancellableWithoutFee = null, DataBoxSku sku = null, ManagedServiceIdentity identity = null) + public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataBoxJobTransferType transferType = default, bool? isCancellable = null, bool? isDeletable = null, bool? isShippingAddressEditable = null, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = null, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = null, bool? isPrepareToShipEnabled = null, DataBoxStageName? status = null, DataBoxStageName? delayedStage = null, DateTimeOffset? startOn = null, ResponseError error = null, DataBoxBasicJobDetails details = null, string cancellationReason = null, JobDeliveryType? deliveryType = null, DateTimeOffset? deliveryInfoScheduledOn = null, bool? isCancellableWithoutFee = null, DataBoxSku sku = null, ManagedServiceIdentity identity = null) { tags ??= new Dictionary(); - return new DataBoxJobData(id, name, resourceType, systemData, tags, location, transferType, isCancellable, isDeletable, isShippingAddressEditable, reverseShippingDetailsUpdate, reverseTransportPreferenceUpdate, isPrepareToShipEnabled, status, startOn, error, details, cancellationReason, deliveryType, deliveryInfoScheduledOn != null ? new JobDeliveryInfo(deliveryInfoScheduledOn) : null, isCancellableWithoutFee, sku, identity); + return new DataBoxJobData(id, name, resourceType, systemData, tags, location, transferType, isCancellable, isDeletable, isShippingAddressEditable, reverseShippingDetailsUpdate, reverseTransportPreferenceUpdate, isPrepareToShipEnabled, status, delayedStage, startOn, error, details, cancellationReason, deliveryType, deliveryInfoScheduledOn != null ? new JobDeliveryInfo(deliveryInfoScheduledOn) : null, isCancellableWithoutFee, sku, identity); } /// Initializes a new instance of DataBoxBasicJobDetails. @@ -100,10 +101,25 @@ public static DataBoxBasicJobDetails DataBoxBasicJobDetails(IEnumerable Status of the job stage. /// Time for the job stage in UTC ISO 8601 format. /// Job Stage Details. + /// Delay information for the job stages. /// A new instance for mocking. - public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = null, string displayName = null, DataBoxStageStatus? stageStatus = null, DateTimeOffset? stageTime = null, BinaryData jobStageDetails = null) + public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = null, string displayName = null, DataBoxStageStatus? stageStatus = null, DateTimeOffset? stageTime = null, BinaryData jobStageDetails = null, IEnumerable delayInformation = null) { - return new DataBoxJobStage(stageName, displayName, stageStatus, stageTime, jobStageDetails); + delayInformation ??= new List(); + + return new DataBoxJobStage(stageName, displayName, stageStatus, stageTime, jobStageDetails, delayInformation?.ToList()); + } + + /// Initializes a new instance of JobDelayDetails. + /// Status of notification. + /// Delay Error code. + /// Description of the delay. + /// Timestamp when the delay notification was created. + /// Timestamp when the delay notification was resolved. + /// A new instance for mocking. + public static JobDelayDetails JobDelayDetails(DelayNotificationStatus? status = null, PortalDelayErrorCode? errorCode = null, string description = null, DateTimeOffset? startOn = null, DateTimeOffset? resolutionOn = null) + { + return new JobDelayDetails(status, errorCode, description, startOn, resolutionOn); } /// Initializes a new instance of PackageShippingDetails. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs index f9e85b746892..83ffe2731a5c 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs @@ -48,6 +48,7 @@ public DataBoxJobData(AzureLocation location, DataBoxJobTransferType transferTyp /// The Editable status for Reverse Transport preferences. /// Is Prepare To Ship Enabled on this job. /// Name of the stage which is in progress. + /// Name of the stage where delay might be present. /// Time at which the job was started in UTC ISO 8601 format. /// Top level error for the job. /// @@ -61,7 +62,7 @@ public DataBoxJobData(AzureLocation location, DataBoxJobTransferType transferTyp /// Flag to indicate cancellation of scheduled job. /// The sku type. /// Msi identity of the resource. - internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, DataBoxJobTransferType transferType, bool? isCancellable, bool? isDeletable, bool? isShippingAddressEditable, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate, bool? isPrepareToShipEnabled, DataBoxStageName? status, DateTimeOffset? startOn, ResponseError error, DataBoxBasicJobDetails details, string cancellationReason, JobDeliveryType? deliveryType, JobDeliveryInfo deliveryInfo, bool? isCancellableWithoutFee, DataBoxSku sku, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) + internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, DataBoxJobTransferType transferType, bool? isCancellable, bool? isDeletable, bool? isShippingAddressEditable, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate, bool? isPrepareToShipEnabled, DataBoxStageName? status, DataBoxStageName? delayedStage, DateTimeOffset? startOn, ResponseError error, DataBoxBasicJobDetails details, string cancellationReason, JobDeliveryType? deliveryType, JobDeliveryInfo deliveryInfo, bool? isCancellableWithoutFee, DataBoxSku sku, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) { TransferType = transferType; IsCancellable = isCancellable; @@ -71,6 +72,7 @@ internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourc ReverseTransportPreferenceUpdate = reverseTransportPreferenceUpdate; IsPrepareToShipEnabled = isPrepareToShipEnabled; Status = status; + DelayedStage = delayedStage; StartOn = startOn; Error = error; Details = details; @@ -98,6 +100,8 @@ internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourc public bool? IsPrepareToShipEnabled { get; } /// Name of the stage which is in progress. public DataBoxStageName? Status { get; } + /// Name of the stage where delay might be present. + public DataBoxStageName? DelayedStage { get; } /// Time at which the job was started in UTC ISO 8601 format. public DateTimeOffset? StartOn { get; } /// Top level error for the job. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs index 73afdc68ec75..28ce28950a36 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs @@ -85,6 +85,7 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) Optional reverseTransportPreferenceUpdate = default; Optional isPrepareToShipEnabled = default; Optional status = default; + Optional delayedStage = default; Optional startTime = default; Optional error = default; Optional details = default; @@ -228,6 +229,15 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) status = new DataBoxStageName(property0.Value.GetString()); continue; } + if (property0.NameEquals("delayedStage"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + delayedStage = new DataBoxStageName(property0.Value.GetString()); + continue; + } if (property0.NameEquals("startTime"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -291,7 +301,7 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) continue; } } - return new DataBoxJobData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, transferType, Optional.ToNullable(isCancellable), Optional.ToNullable(isDeletable), Optional.ToNullable(isShippingAddressEditable), Optional.ToNullable(reverseShippingDetailsUpdate), Optional.ToNullable(reverseTransportPreferenceUpdate), Optional.ToNullable(isPrepareToShipEnabled), Optional.ToNullable(status), Optional.ToNullable(startTime), error.Value, details.Value, cancellationReason.Value, Optional.ToNullable(deliveryType), deliveryInfo.Value, Optional.ToNullable(isCancellableWithoutFee), sku, identity); + return new DataBoxJobData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, transferType, Optional.ToNullable(isCancellable), Optional.ToNullable(isDeletable), Optional.ToNullable(isShippingAddressEditable), Optional.ToNullable(reverseShippingDetailsUpdate), Optional.ToNullable(reverseTransportPreferenceUpdate), Optional.ToNullable(isPrepareToShipEnabled), Optional.ToNullable(status), Optional.ToNullable(delayedStage), Optional.ToNullable(startTime), error.Value, details.Value, cancellationReason.Value, Optional.ToNullable(deliveryType), deliveryInfo.Value, Optional.ToNullable(isCancellableWithoutFee), sku, identity); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.Serialization.cs index 9883b2f03763..4e70dba31d13 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -24,6 +25,7 @@ internal static DataBoxJobStage DeserializeDataBoxJobStage(JsonElement element) Optional stageStatus = default; Optional stageTime = default; Optional jobStageDetails = default; + Optional> delayInformation = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("stageName"u8)) @@ -67,8 +69,22 @@ internal static DataBoxJobStage DeserializeDataBoxJobStage(JsonElement element) jobStageDetails = BinaryData.FromString(property.Value.GetRawText()); continue; } + if (property.NameEquals("delayInformation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(JobDelayDetails.DeserializeJobDelayDetails(item)); + } + delayInformation = array; + continue; + } } - return new DataBoxJobStage(Optional.ToNullable(stageName), displayName.Value, Optional.ToNullable(stageStatus), Optional.ToNullable(stageTime), jobStageDetails.Value); + return new DataBoxJobStage(Optional.ToNullable(stageName), displayName.Value, Optional.ToNullable(stageStatus), Optional.ToNullable(stageTime), jobStageDetails.Value, Optional.ToList(delayInformation)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.cs index a370c8064b1a..88660ca5b71c 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobStage.cs @@ -6,6 +6,8 @@ #nullable disable using System; +using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.DataBox.Models { @@ -15,6 +17,7 @@ public partial class DataBoxJobStage /// Initializes a new instance of DataBoxJobStage. internal DataBoxJobStage() { + DelayInformation = new ChangeTrackingList(); } /// Initializes a new instance of DataBoxJobStage. @@ -23,13 +26,15 @@ internal DataBoxJobStage() /// Status of the job stage. /// Time for the job stage in UTC ISO 8601 format. /// Job Stage Details. - internal DataBoxJobStage(DataBoxStageName? stageName, string displayName, DataBoxStageStatus? stageStatus, DateTimeOffset? stageTime, BinaryData jobStageDetails) + /// Delay information for the job stages. + internal DataBoxJobStage(DataBoxStageName? stageName, string displayName, DataBoxStageStatus? stageStatus, DateTimeOffset? stageTime, BinaryData jobStageDetails, IReadOnlyList delayInformation) { StageName = stageName; DisplayName = displayName; StageStatus = stageStatus; StageTime = stageTime; JobStageDetails = jobStageDetails; + DelayInformation = delayInformation; } /// Name of the job stage. @@ -69,5 +74,7 @@ internal DataBoxJobStage(DataBoxStageName? stageName, string displayName, DataBo /// /// public BinaryData JobStageDetails { get; } + /// Delay information for the job stages. + public IReadOnlyList DelayInformation { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DelayNotificationStatus.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DelayNotificationStatus.cs new file mode 100644 index 000000000000..16046bb41fc3 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DelayNotificationStatus.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.DataBox.Models +{ + /// Status of notification. + public readonly partial struct DelayNotificationStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DelayNotificationStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActiveValue = "Active"; + private const string ResolvedValue = "Resolved"; + + /// Delay is still active. + public static DelayNotificationStatus Active { get; } = new DelayNotificationStatus(ActiveValue); + /// Delay has been resolved. + public static DelayNotificationStatus Resolved { get; } = new DelayNotificationStatus(ResolvedValue); + /// Determines if two values are the same. + public static bool operator ==(DelayNotificationStatus left, DelayNotificationStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DelayNotificationStatus left, DelayNotificationStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DelayNotificationStatus(string value) => new DelayNotificationStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DelayNotificationStatus other && Equals(other); + /// + public bool Equals(DelayNotificationStatus 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/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.Serialization.cs new file mode 100644 index 000000000000..10448dfbad82 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + public partial class JobDelayDetails + { + internal static JobDelayDetails DeserializeJobDelayDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional status = default; + Optional errorCode = default; + Optional description = default; + Optional startTime = default; + Optional resolutionTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new DelayNotificationStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("errorCode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + errorCode = new PortalDelayErrorCode(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("resolutionTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resolutionTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new JobDelayDetails(Optional.ToNullable(status), Optional.ToNullable(errorCode), description.Value, Optional.ToNullable(startTime), Optional.ToNullable(resolutionTime)); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.cs new file mode 100644 index 000000000000..18eb1f308f37 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/JobDelayDetails.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Job Delay Notification details. + public partial class JobDelayDetails + { + /// Initializes a new instance of JobDelayDetails. + internal JobDelayDetails() + { + } + + /// Initializes a new instance of JobDelayDetails. + /// Status of notification. + /// Delay Error code. + /// Description of the delay. + /// Timestamp when the delay notification was created. + /// Timestamp when the delay notification was resolved. + internal JobDelayDetails(DelayNotificationStatus? status, PortalDelayErrorCode? errorCode, string description, DateTimeOffset? startOn, DateTimeOffset? resolutionOn) + { + Status = status; + ErrorCode = errorCode; + Description = description; + StartOn = startOn; + ResolutionOn = resolutionOn; + } + + /// Status of notification. + public DelayNotificationStatus? Status { get; } + /// Delay Error code. + public PortalDelayErrorCode? ErrorCode { get; } + /// Description of the delay. + public string Description { get; } + /// Timestamp when the delay notification was created. + public DateTimeOffset? StartOn { get; } + /// Timestamp when the delay notification was resolved. + public DateTimeOffset? ResolutionOn { get; } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/PortalDelayErrorCode.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/PortalDelayErrorCode.cs new file mode 100644 index 000000000000..55cf0041fc9d --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/PortalDelayErrorCode.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Delay Error code. + public readonly partial struct PortalDelayErrorCode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PortalDelayErrorCode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InternalIssueDelayValue = "InternalIssueDelay"; + private const string ActiveOrderLimitBreachedDelayValue = "ActiveOrderLimitBreachedDelay"; + private const string ActiveOrderLimitBreachedDelayValue = "ActiveOrderLimitBreachedDelay"; + private const string ActiveOrderLimitBreachedDelayValue = "ActiveOrderLimitBreachedDelay"; + + /// Delay due to any internal reasons. + public static PortalDelayErrorCode InternalIssueDelay { get; } = new PortalDelayErrorCode(InternalIssueDelayValue); + /// Active Order limit breached. + public static PortalDelayErrorCode ActiveOrderLimitBreachedDelay { get; } = new PortalDelayErrorCode(ActiveOrderLimitBreachedDelayValue); + /// High demand. + public static PortalDelayErrorCode ActiveOrderLimitBreachedDelay { get; } = new PortalDelayErrorCode(ActiveOrderLimitBreachedDelayValue); + /// Slow copy due to large number of files. + public static PortalDelayErrorCode ActiveOrderLimitBreachedDelay { get; } = new PortalDelayErrorCode(ActiveOrderLimitBreachedDelayValue); + /// Determines if two values are the same. + public static bool operator ==(PortalDelayErrorCode left, PortalDelayErrorCode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PortalDelayErrorCode left, PortalDelayErrorCode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PortalDelayErrorCode(string value) => new PortalDelayErrorCode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PortalDelayErrorCode other && Equals(other); + /// + public bool Equals(PortalDelayErrorCode 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/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs index 919c5c6e407b..3a8702d6ec9a 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs @@ -32,7 +32,7 @@ public DataBoxManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs index 0d22cc8ab656..6ee5a516fd08 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs @@ -33,7 +33,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs index 3eab62e51d18..7fd5ce736b54 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs @@ -33,7 +33,7 @@ public ServiceRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md index bc45e0460599..6e963ebe5261 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: DataBox namespace: Azure.ResourceManager.DataBox -require: https://github.com/Azure/azure-rest-api-specs/blob/8e20af0463637085b47a018ec9c8372a2242bdac/specification/databox/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/databox/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true