Skip to content

Conversation

@seanmcc-msft
Copy link
Member

No description provided.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 23, 2020
Comment on lines +384 to +394
public partial class BlobDeleteOptions
{
public BlobDeleteOptions() { }
public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } }
public Azure.Storage.Blobs.Models.BlobDeleteType? DeleteType { get { throw null; } set { } }
public Azure.Storage.Blobs.Models.DeleteSnapshotsOption? SnapshotsOption { get { throw null; } set { } }
}
public enum BlobDeleteType
{
Permanent = 0,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather make two options in BlobDeleteType instead of making DeleteType property optional. Otherwise why don't we use simple bool? (btw. I think BlobDeleteType has low risk of growing beyond two options, on the other hand it seems to enum on server side might be it's expected to grow)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it will grow, since it is not a bool in the service.

@ljian3377
Copy link
Member

Can we use a string enum for blobDeleteType in generated code? Currently it's simply a string.

@seanmcc-msft
Copy link
Member Author

Can we use a string enum for blobDeleteType in generated code? Currently it's simply a string.

Done.

public DeleteSnapshotsOption? SnapshotsOption { get; set; }

/// <summary>
/// Optional. Specifies options for deleting blob snapshots.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy paste error for the field description

@seanmcc-msft seanmcc-msft merged commit 5f99b8c into Azure:feature/storage/stg75base Nov 4, 2020
@seanmcc-msft seanmcc-msft deleted the feature/storage/blobPermanentDelete branch November 4, 2020 21:47
@seanmcc-msft seanmcc-msft restored the feature/storage/blobPermanentDelete branch November 5, 2020 18:24
seanmcc-msft added a commit that referenced this pull request Nov 5, 2020
@seanmcc-msft seanmcc-msft deleted the feature/storage/blobPermanentDelete branch August 17, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants