Skip to content

Commit 9f79770

Browse files
[Storage] Fix typos in StorageErrorCode enum (Azure#25607)
1 parent 40adb94 commit 9f79770

File tree

4 files changed

+24
-8
lines changed
  • sdk/storage
    • azure-storage-blob/azure/storage/blob/_shared
    • azure-storage-file-datalake/azure/storage/filedatalake/_shared
    • azure-storage-file-share/azure/storage/fileshare/_shared
    • azure-storage-queue/azure/storage/queue/_shared

4 files changed

+24
-8
lines changed

sdk/storage/azure-storage-blob/azure/storage/blob/_shared/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
8484
COPY_ID_MISMATCH = "CopyIdMismatch"
8585
FEATURE_VERSION_MISMATCH = "FeatureVersionMismatch"
8686
INCREMENTAL_COPY_BLOB_MISMATCH = "IncrementalCopyBlobMismatch"
87-
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEralierVersionSnapshotNotAllowed"
87+
INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
88+
#: Deprecated: Please use INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED instead.
89+
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
8890
INCREMENTAL_COPY_SOURCE_MUST_BE_SNAPSHOT = "IncrementalCopySourceMustBeSnapshot"
8991
INFINITE_LEASE_DURATION_REQUIRED = "InfiniteLeaseDurationRequired"
9092
INVALID_BLOB_OR_BLOCK = "InvalidBlobOrBlock"
@@ -120,7 +122,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
120122
SEQUENCE_NUMBER_CONDITION_NOT_MET = "SequenceNumberConditionNotMet"
121123
SEQUENCE_NUMBER_INCREMENT_TOO_LARGE = "SequenceNumberIncrementTooLarge"
122124
SNAPSHOT_COUNT_EXCEEDED = "SnapshotCountExceeded"
123-
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnaphotOperationRateExceeded"
125+
SNAPSHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
126+
#: Deprecated: Please use SNAPSHOT_OPERATION_RATE_EXCEEDED instead.
127+
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
124128
SNAPSHOTS_PRESENT = "SnapshotsPresent"
125129
SOURCE_CONDITION_NOT_MET = "SourceConditionNotMet"
126130
SYSTEM_IN_USE = "SystemInUse"

sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
8585
COPY_ID_MISMATCH = "CopyIdMismatch"
8686
FEATURE_VERSION_MISMATCH = "FeatureVersionMismatch"
8787
INCREMENTAL_COPY_BLOB_MISMATCH = "IncrementalCopyBlobMismatch"
88-
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEralierVersionSnapshotNotAllowed"
88+
INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
89+
#: Deprecated: Please use INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED instead.
90+
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
8991
INCREMENTAL_COPY_SOURCE_MUST_BE_SNAPSHOT = "IncrementalCopySourceMustBeSnapshot"
9092
INFINITE_LEASE_DURATION_REQUIRED = "InfiniteLeaseDurationRequired"
9193
INVALID_BLOB_OR_BLOCK = "InvalidBlobOrBlock"
@@ -121,7 +123,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
121123
SEQUENCE_NUMBER_CONDITION_NOT_MET = "SequenceNumberConditionNotMet"
122124
SEQUENCE_NUMBER_INCREMENT_TOO_LARGE = "SequenceNumberIncrementTooLarge"
123125
SNAPSHOT_COUNT_EXCEEDED = "SnapshotCountExceeded"
124-
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnaphotOperationRateExceeded"
126+
SNAPSHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
127+
#: Deprecated: Please use SNAPSHOT_OPERATION_RATE_EXCEEDED instead.
128+
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
125129
SNAPSHOTS_PRESENT = "SnapshotsPresent"
126130
SOURCE_CONDITION_NOT_MET = "SourceConditionNotMet"
127131
SYSTEM_IN_USE = "SystemInUse"

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
8484
COPY_ID_MISMATCH = "CopyIdMismatch"
8585
FEATURE_VERSION_MISMATCH = "FeatureVersionMismatch"
8686
INCREMENTAL_COPY_BLOB_MISMATCH = "IncrementalCopyBlobMismatch"
87-
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEralierVersionSnapshotNotAllowed"
87+
INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
88+
#: Deprecated: Please use INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED instead.
89+
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
8890
INCREMENTAL_COPY_SOURCE_MUST_BE_SNAPSHOT = "IncrementalCopySourceMustBeSnapshot"
8991
INFINITE_LEASE_DURATION_REQUIRED = "InfiniteLeaseDurationRequired"
9092
INVALID_BLOB_OR_BLOCK = "InvalidBlobOrBlock"
@@ -120,7 +122,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
120122
SEQUENCE_NUMBER_CONDITION_NOT_MET = "SequenceNumberConditionNotMet"
121123
SEQUENCE_NUMBER_INCREMENT_TOO_LARGE = "SequenceNumberIncrementTooLarge"
122124
SNAPSHOT_COUNT_EXCEEDED = "SnapshotCountExceeded"
123-
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnaphotOperationRateExceeded"
125+
SNAPSHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
126+
#: Deprecated: Please use SNAPSHOT_OPERATION_RATE_EXCEEDED instead.
127+
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
124128
SNAPSHOTS_PRESENT = "SnapshotsPresent"
125129
SOURCE_CONDITION_NOT_MET = "SourceConditionNotMet"
126130
SYSTEM_IN_USE = "SystemInUse"

sdk/storage/azure-storage-queue/azure/storage/queue/_shared/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
8585
COPY_ID_MISMATCH = "CopyIdMismatch"
8686
FEATURE_VERSION_MISMATCH = "FeatureVersionMismatch"
8787
INCREMENTAL_COPY_BLOB_MISMATCH = "IncrementalCopyBlobMismatch"
88-
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEralierVersionSnapshotNotAllowed"
88+
INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
89+
#: Deprecated: Please use INCREMENTAL_COPY_OF_EARLIER_VERSION_SNAPSHOT_NOT_ALLOWED instead.
90+
INCREMENTAL_COPY_OF_ERALIER_VERSION_SNAPSHOT_NOT_ALLOWED = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed"
8991
INCREMENTAL_COPY_SOURCE_MUST_BE_SNAPSHOT = "IncrementalCopySourceMustBeSnapshot"
9092
INFINITE_LEASE_DURATION_REQUIRED = "InfiniteLeaseDurationRequired"
9193
INVALID_BLOB_OR_BLOCK = "InvalidBlobOrBlock"
@@ -121,7 +123,9 @@ class StorageErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
121123
SEQUENCE_NUMBER_CONDITION_NOT_MET = "SequenceNumberConditionNotMet"
122124
SEQUENCE_NUMBER_INCREMENT_TOO_LARGE = "SequenceNumberIncrementTooLarge"
123125
SNAPSHOT_COUNT_EXCEEDED = "SnapshotCountExceeded"
124-
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnaphotOperationRateExceeded"
126+
SNAPSHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
127+
#: Deprecated: Please use SNAPSHOT_OPERATION_RATE_EXCEEDED instead.
128+
SNAPHOT_OPERATION_RATE_EXCEEDED = "SnapshotOperationRateExceeded"
125129
SNAPSHOTS_PRESENT = "SnapshotsPresent"
126130
SOURCE_CONDITION_NOT_MET = "SourceConditionNotMet"
127131
SYSTEM_IN_USE = "SystemInUse"

0 commit comments

Comments
 (0)