Skip to content

Commit 9de236f

Browse files
authored
[Storage] [DataMovement] [Archboard feedback] Renamed *CheckpointData to *CheckpointDetails (#47776)
* Renamed *CheckpointData to *CheckpointDetails * Export API * Updated changelog
1 parent 9d19f27 commit 9de236f

File tree

53 files changed

+462
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+462
-458
lines changed

sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ protected override async Task<bool> DeleteIfExistsAsync(CancellationToken cancel
298298
return await BlobClient.DeleteIfExistsAsync(cancellationToken: cancellationToken).ConfigureAwait(false);
299299
}
300300

301-
protected override StorageResourceCheckpointData GetSourceCheckpointData()
301+
protected override StorageResourceCheckpointDetails GetSourceCheckpointDetails()
302302
{
303-
return new BlobSourceCheckpointData();
303+
return new BlobSourceCheckpointDetails();
304304
}
305305

306-
protected override StorageResourceCheckpointData GetDestinationCheckpointData()
306+
protected override StorageResourceCheckpointDetails GetDestinationCheckpointDetails()
307307
{
308-
return new BlobDestinationCheckpointData(
308+
return new BlobDestinationCheckpointDetails(
309309
blobType: new(BlobType.Append),
310310
contentType: _options?.ContentType,
311311
contentEncoding: _options?.ContentEncoding,

sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobDestinationCheckpointData.cs renamed to sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobDestinationCheckpointDetails.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Azure.Storage.DataMovement.Blobs
1313
{
14-
internal class BlobDestinationCheckpointData : StorageResourceCheckpointData
14+
internal class BlobDestinationCheckpointDetails : StorageResourceCheckpointDetails
1515
{
1616
public int Version;
1717

@@ -66,7 +66,7 @@ internal class BlobDestinationCheckpointData : StorageResourceCheckpointData
6666

6767
public override int Length => CalculateLength();
6868

69-
public BlobDestinationCheckpointData(
69+
public BlobDestinationCheckpointDetails(
7070
DataTransferProperty<BlobType?> blobType,
7171
DataTransferProperty<string> contentType,
7272
DataTransferProperty<string> contentEncoding,
@@ -77,7 +77,7 @@ public BlobDestinationCheckpointData(
7777
DataTransferProperty<Metadata> metadata,
7878
DataTransferProperty<Tags> tags)
7979
{
80-
Version = DataMovementBlobConstants.DestinationCheckpointData.SchemaVersion;
80+
Version = DataMovementBlobConstants.DestinationCheckpointDetails.SchemaVersion;
8181
BlobType = blobType;
8282
PreserveBlobType = blobType?.Preserve ?? true;
8383
BlobTypeValue = blobType?.Value != default ? blobType.Value : default;
@@ -117,7 +117,7 @@ protected override void Serialize(Stream stream)
117117
{
118118
Argument.AssertNotNull(stream, nameof(stream));
119119

120-
int currentVariableLengthIndex = DataMovementBlobConstants.DestinationCheckpointData.VariableLengthStartIndex;
120+
int currentVariableLengthIndex = DataMovementBlobConstants.DestinationCheckpointDetails.VariableLengthStartIndex;
121121
BinaryWriter writer = new BinaryWriter(stream);
122122

123123
// Version
@@ -258,15 +258,15 @@ protected override void Serialize(Stream stream)
258258
}
259259
}
260260

261-
internal static BlobDestinationCheckpointData Deserialize(Stream stream)
261+
internal static BlobDestinationCheckpointDetails Deserialize(Stream stream)
262262
{
263263
Argument.AssertNotNull(stream, nameof(stream));
264264

265265
BinaryReader reader = new BinaryReader(stream);
266266

267267
// Version
268268
int version = reader.ReadInt32();
269-
if (version != DataMovementBlobConstants.DestinationCheckpointData.SchemaVersion)
269+
if (version != DataMovementBlobConstants.DestinationCheckpointDetails.SchemaVersion)
270270
{
271271
throw Errors.UnsupportedJobSchemaVersionHeader(version);
272272
}
@@ -376,7 +376,7 @@ internal static BlobDestinationCheckpointData Deserialize(Stream stream)
376376
tagsString = reader.ReadBytes(tagsLength).AsString();
377377
}
378378

379-
return new BlobDestinationCheckpointData(
379+
return new BlobDestinationCheckpointDetails(
380380
blobType: preserveBlobType ? new(preserveBlobType) : new(blobType),
381381
contentType: preserveContentType ? new(preserveContentType) : new(contentType),
382382
contentEncoding: preserveContentEncoding ? new(preserveContentEncoding): new(contentEncoding),
@@ -392,7 +392,7 @@ private int CalculateLength()
392392
{
393393
// Length is calculated based on whether the property is preserved.
394394
// If the property is preserved, the property's length is added to the total length.
395-
int length = DataMovementBlobConstants.DestinationCheckpointData.VariableLengthStartIndex;
395+
int length = DataMovementBlobConstants.DestinationCheckpointDetails.VariableLengthStartIndex;
396396
if (!PreserveContentType)
397397
{
398398
length += ContentTypeBytes.Length;

sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobSourceCheckpointData.cs renamed to sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobSourceCheckpointDetails.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
namespace Azure.Storage.DataMovement.Blobs
77
{
8-
internal class BlobSourceCheckpointData : StorageResourceCheckpointData
8+
internal class BlobSourceCheckpointDetails : StorageResourceCheckpointDetails
99
{
1010
public override int Length => 0;
1111

1212
protected override void Serialize(Stream stream)
1313
{
1414
}
1515

16-
internal static BlobSourceCheckpointData Deserialize(Stream stream) => new();
16+
internal static BlobSourceCheckpointDetails Deserialize(Stream stream) => new();
1717
}
1818
}

sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ protected override async IAsyncEnumerable<StorageResource> GetStorageResourcesAs
212212
}
213213
}
214214

215-
protected override StorageResourceCheckpointData GetSourceCheckpointData()
215+
protected override StorageResourceCheckpointDetails GetSourceCheckpointDetails()
216216
{
217217
// Source blob type does not matter for container
218-
return new BlobSourceCheckpointData();
218+
return new BlobSourceCheckpointDetails();
219219
}
220220

221-
protected override StorageResourceCheckpointData GetDestinationCheckpointData()
222-
=> new BlobDestinationCheckpointData(
221+
protected override StorageResourceCheckpointDetails GetDestinationCheckpointDetails()
222+
=> new BlobDestinationCheckpointDetails(
223223
blobType: _options?.BlobType,
224224
contentType: _options?.BlobOptions?.ContentType,
225225
contentEncoding: _options?.BlobOptions?.ContentEncoding,

0 commit comments

Comments
 (0)