<PackageReference Include="Azure.Storage.Blobs" Version="12.31.0-beta.1" />

Azure.Storage.Blobs.Models.BlobRetentionPolicy

The retention policy.
public int? Days { get; set; }

The number of days to retain the logs.

public bool Enabled { get; set; }

Whether the policy is enabled.

Creates a new BlobRetentionPolicy instance.