1package azblob
2
3// https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-error-codes
4
5// ServiceCode values indicate a service failure.
6const (
7	// ServiceCodeAppendPositionConditionNotMet means the append position condition specified was not met.
8	ServiceCodeAppendPositionConditionNotMet ServiceCodeType = "AppendPositionConditionNotMet"
9
10	// ServiceCodeBlobAlreadyExists means the specified blob already exists.
11	ServiceCodeBlobAlreadyExists ServiceCodeType = "BlobAlreadyExists"
12
13	// ServiceCodeBlobNotFound means the specified blob does not exist.
14	ServiceCodeBlobNotFound ServiceCodeType = "BlobNotFound"
15
16	// ServiceCodeBlobOverwritten means the blob has been recreated since the previous snapshot was taken.
17	ServiceCodeBlobOverwritten ServiceCodeType = "BlobOverwritten"
18
19	// ServiceCodeBlobTierInadequateForContentLength means the specified blob tier size limit cannot be less than content length.
20	ServiceCodeBlobTierInadequateForContentLength ServiceCodeType = "BlobTierInadequateForContentLength"
21
22	// ServiceCodeBlockCountExceedsLimit means the committed block count cannot exceed the maximum limit of 50,000 blocks
23	// or that the uncommitted block count cannot exceed the maximum limit of 100,000 blocks.
24	ServiceCodeBlockCountExceedsLimit ServiceCodeType = "BlockCountExceedsLimit"
25
26	// ServiceCodeBlockListTooLong means the block list may not contain more than 50,000 blocks.
27	ServiceCodeBlockListTooLong ServiceCodeType = "BlockListTooLong"
28
29	// ServiceCodeCannotChangeToLowerTier means that a higher blob tier has already been explicitly set.
30	ServiceCodeCannotChangeToLowerTier ServiceCodeType = "CannotChangeToLowerTier"
31
32	// ServiceCodeCannotVerifyCopySource means that the service could not verify the copy source within the specified time.
33	// Examine the HTTP status code and message for more information about the failure.
34	ServiceCodeCannotVerifyCopySource ServiceCodeType = "CannotVerifyCopySource"
35
36	// ServiceCodeContainerAlreadyExists means the specified container already exists.
37	ServiceCodeContainerAlreadyExists ServiceCodeType = "ContainerAlreadyExists"
38
39	// ServiceCodeContainerBeingDeleted means the specified container is being deleted.
40	ServiceCodeContainerBeingDeleted ServiceCodeType = "ContainerBeingDeleted"
41
42	// ServiceCodeContainerDisabled means the specified container has been disabled by the administrator.
43	ServiceCodeContainerDisabled ServiceCodeType = "ContainerDisabled"
44
45	// ServiceCodeContainerNotFound means the specified container does not exist.
46	ServiceCodeContainerNotFound ServiceCodeType = "ContainerNotFound"
47
48	// ServiceCodeContentLengthLargerThanTierLimit means the blob's content length cannot exceed its tier limit.
49	ServiceCodeContentLengthLargerThanTierLimit ServiceCodeType = "ContentLengthLargerThanTierLimit"
50
51	// ServiceCodeCopyAcrossAccountsNotSupported means the copy source account and destination account must be the same.
52	ServiceCodeCopyAcrossAccountsNotSupported ServiceCodeType = "CopyAcrossAccountsNotSupported"
53
54	// ServiceCodeCopyIDMismatch means the specified copy ID did not match the copy ID for the pending copy operation.
55	ServiceCodeCopyIDMismatch ServiceCodeType = "CopyIdMismatch"
56
57	// ServiceCodeFeatureVersionMismatch means the type of blob in the container is unrecognized by this version or
58	// that the operation for AppendBlob requires at least version 2015-02-21.
59	ServiceCodeFeatureVersionMismatch ServiceCodeType = "FeatureVersionMismatch"
60
61	// ServiceCodeIncrementalCopyBlobMismatch means the specified source blob is different than the copy source of the existing incremental copy blob.
62	ServiceCodeIncrementalCopyBlobMismatch ServiceCodeType = "IncrementalCopyBlobMismatch"
63
64	// ServiceCodeIncrementalCopyOfEralierVersionSnapshotNotAllowed means the specified snapshot is earlier than the last snapshot copied into the incremental copy blob.
65	ServiceCodeIncrementalCopyOfEralierVersionSnapshotNotAllowed ServiceCodeType = "IncrementalCopyOfEralierVersionSnapshotNotAllowed"
66
67	// ServiceCodeIncrementalCopySourceMustBeSnapshot means the source for incremental copy request must be a snapshot.
68	ServiceCodeIncrementalCopySourceMustBeSnapshot ServiceCodeType = "IncrementalCopySourceMustBeSnapshot"
69
70	// ServiceCodeInfiniteLeaseDurationRequired means the lease ID matched, but the specified lease must be an infinite-duration lease.
71	ServiceCodeInfiniteLeaseDurationRequired ServiceCodeType = "InfiniteLeaseDurationRequired"
72
73	// ServiceCodeInvalidBlobOrBlock means the specified blob or block content is invalid.
74	ServiceCodeInvalidBlobOrBlock ServiceCodeType = "InvalidBlobOrBlock"
75
76	// ServiceCodeInvalidBlobType means the blob type is invalid for this operation.
77	ServiceCodeInvalidBlobType ServiceCodeType = "InvalidBlobType"
78
79	// ServiceCodeInvalidBlockID means the specified block ID is invalid. The block ID must be Base64-encoded.
80	ServiceCodeInvalidBlockID ServiceCodeType = "InvalidBlockId"
81
82	// ServiceCodeInvalidBlockList means the specified block list is invalid.
83	ServiceCodeInvalidBlockList ServiceCodeType = "InvalidBlockList"
84
85	// ServiceCodeInvalidOperation means an invalid operation against a blob snapshot.
86	ServiceCodeInvalidOperation ServiceCodeType = "InvalidOperation"
87
88	// ServiceCodeInvalidPageRange means the page range specified is invalid.
89	ServiceCodeInvalidPageRange ServiceCodeType = "InvalidPageRange"
90
91	// ServiceCodeInvalidSourceBlobType means the copy source blob type is invalid for this operation.
92	ServiceCodeInvalidSourceBlobType ServiceCodeType = "InvalidSourceBlobType"
93
94	// ServiceCodeInvalidSourceBlobURL means the source URL for incremental copy request must be valid Azure Storage blob URL.
95	ServiceCodeInvalidSourceBlobURL ServiceCodeType = "InvalidSourceBlobUrl"
96
97	// ServiceCodeInvalidVersionForPageBlobOperation means that all operations on page blobs require at least version 2009-09-19.
98	ServiceCodeInvalidVersionForPageBlobOperation ServiceCodeType = "InvalidVersionForPageBlobOperation"
99
100	// ServiceCodeLeaseAlreadyPresent means there is already a lease present.
101	ServiceCodeLeaseAlreadyPresent ServiceCodeType = "LeaseAlreadyPresent"
102
103	// ServiceCodeLeaseAlreadyBroken means the lease has already been broken and cannot be broken again.
104	ServiceCodeLeaseAlreadyBroken ServiceCodeType = "LeaseAlreadyBroken"
105
106	// ServiceCodeLeaseIDMismatchWithBlobOperation means the lease ID specified did not match the lease ID for the blob.
107	ServiceCodeLeaseIDMismatchWithBlobOperation ServiceCodeType = "LeaseIdMismatchWithBlobOperation"
108
109	// ServiceCodeLeaseIDMismatchWithContainerOperation means the lease ID specified did not match the lease ID for the container.
110	ServiceCodeLeaseIDMismatchWithContainerOperation ServiceCodeType = "LeaseIdMismatchWithContainerOperation"
111
112	// ServiceCodeLeaseIDMismatchWithLeaseOperation means the lease ID specified did not match the lease ID for the blob/container.
113	ServiceCodeLeaseIDMismatchWithLeaseOperation ServiceCodeType = "LeaseIdMismatchWithLeaseOperation"
114
115	// ServiceCodeLeaseIDMissing means there is currently a lease on the blob/container and no lease ID was specified in the request.
116	ServiceCodeLeaseIDMissing ServiceCodeType = "LeaseIdMissing"
117
118	// ServiceCodeLeaseIsBreakingAndCannotBeAcquired means the lease ID matched, but the lease is currently in breaking state and cannot be acquired until it is broken.
119	ServiceCodeLeaseIsBreakingAndCannotBeAcquired ServiceCodeType = "LeaseIsBreakingAndCannotBeAcquired"
120
121	// ServiceCodeLeaseIsBreakingAndCannotBeChanged means the lease ID matched, but the lease is currently in breaking state and cannot be changed.
122	ServiceCodeLeaseIsBreakingAndCannotBeChanged ServiceCodeType = "LeaseIsBreakingAndCannotBeChanged"
123
124	// ServiceCodeLeaseIsBrokenAndCannotBeRenewed means the lease ID matched, but the lease has been broken explicitly and cannot be renewed.
125	ServiceCodeLeaseIsBrokenAndCannotBeRenewed ServiceCodeType = "LeaseIsBrokenAndCannotBeRenewed"
126
127	// ServiceCodeLeaseLost means a lease ID was specified, but the lease for the blob/container has expired.
128	ServiceCodeLeaseLost ServiceCodeType = "LeaseLost"
129
130	// ServiceCodeLeaseNotPresentWithBlobOperation means there is currently no lease on the blob.
131	ServiceCodeLeaseNotPresentWithBlobOperation ServiceCodeType = "LeaseNotPresentWithBlobOperation"
132
133	// ServiceCodeLeaseNotPresentWithContainerOperation means there is currently no lease on the container.
134	ServiceCodeLeaseNotPresentWithContainerOperation ServiceCodeType = "LeaseNotPresentWithContainerOperation"
135
136	// ServiceCodeLeaseNotPresentWithLeaseOperation means there is currently no lease on the blob/container.
137	ServiceCodeLeaseNotPresentWithLeaseOperation ServiceCodeType = "LeaseNotPresentWithLeaseOperation"
138
139	// ServiceCodeMaxBlobSizeConditionNotMet means the max blob size condition specified was not met.
140	ServiceCodeMaxBlobSizeConditionNotMet ServiceCodeType = "MaxBlobSizeConditionNotMet"
141
142	// ServiceCodeNoPendingCopyOperation means there is currently no pending copy operation.
143	ServiceCodeNoPendingCopyOperation ServiceCodeType = "NoPendingCopyOperation"
144
145	// ServiceCodeOperationNotAllowedOnIncrementalCopyBlob means the specified operation is not allowed on an incremental copy blob.
146	ServiceCodeOperationNotAllowedOnIncrementalCopyBlob ServiceCodeType = "OperationNotAllowedOnIncrementalCopyBlob"
147
148	// ServiceCodePendingCopyOperation means there is currently a pending copy operation.
149	ServiceCodePendingCopyOperation ServiceCodeType = "PendingCopyOperation"
150
151	// ServiceCodePreviousSnapshotCannotBeNewer means the prevsnapshot query parameter value cannot be newer than snapshot query parameter value.
152	ServiceCodePreviousSnapshotCannotBeNewer ServiceCodeType = "PreviousSnapshotCannotBeNewer"
153
154	// ServiceCodePreviousSnapshotNotFound means the previous snapshot is not found.
155	ServiceCodePreviousSnapshotNotFound ServiceCodeType = "PreviousSnapshotNotFound"
156
157	// ServiceCodePreviousSnapshotOperationNotSupported means that differential Get Page Ranges is not supported on the previous snapshot.
158	ServiceCodePreviousSnapshotOperationNotSupported ServiceCodeType = "PreviousSnapshotOperationNotSupported"
159
160	// ServiceCodeSequenceNumberConditionNotMet means the sequence number condition specified was not met.
161	ServiceCodeSequenceNumberConditionNotMet ServiceCodeType = "SequenceNumberConditionNotMet"
162
163	// ServiceCodeSequenceNumberIncrementTooLarge means the sequence number increment cannot be performed because it would result in overflow of the sequence number.
164	ServiceCodeSequenceNumberIncrementTooLarge ServiceCodeType = "SequenceNumberIncrementTooLarge"
165
166	// ServiceCodeSnapshotCountExceeded means the snapshot count against this blob has been exceeded.
167	ServiceCodeSnapshotCountExceeded ServiceCodeType = "SnapshotCountExceeded"
168
169	// ServiceCodeSnaphotOperationRateExceeded means the rate of snapshot operations against this blob has been exceeded.
170	ServiceCodeSnaphotOperationRateExceeded ServiceCodeType = "SnaphotOperationRateExceeded"
171
172	// ServiceCodeSnapshotsPresent means this operation is not permitted while the blob has snapshots.
173	ServiceCodeSnapshotsPresent ServiceCodeType = "SnapshotsPresent"
174
175	// ServiceCodeSourceConditionNotMet means the source condition specified using HTTP conditional header(s) is not met.
176	ServiceCodeSourceConditionNotMet ServiceCodeType = "SourceConditionNotMet"
177
178	// ServiceCodeSystemInUse means this blob is in use by the system.
179	ServiceCodeSystemInUse ServiceCodeType = "SystemInUse"
180
181	// ServiceCodeTargetConditionNotMet means the target condition specified using HTTP conditional header(s) is not met.
182	ServiceCodeTargetConditionNotMet ServiceCodeType = "TargetConditionNotMet"
183
184	// ServiceCodeUnauthorizedBlobOverwrite means this request is not authorized to perform blob overwrites.
185	ServiceCodeUnauthorizedBlobOverwrite ServiceCodeType = "UnauthorizedBlobOverwrite"
186
187	// ServiceCodeBlobBeingRehydrated means this operation is not permitted because the blob is being rehydrated.
188	ServiceCodeBlobBeingRehydrated ServiceCodeType = "BlobBeingRehydrated"
189
190	// ServiceCodeBlobArchived means this operation is not permitted on an archived blob.
191	ServiceCodeBlobArchived ServiceCodeType = "BlobArchived"
192
193	// ServiceCodeBlobNotArchived means this blob is currently not in the archived state.
194	ServiceCodeBlobNotArchived ServiceCodeType = "BlobNotArchived"
195)
196