Skip to content

Commit

Permalink
[App Config] Rename snapshot properties (#38540)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivangiReja authored Sep 7, 2023
1 parent dc0056b commit dc01a99
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public partial class ConfigurationSettingsSnapshot
{
public ConfigurationSettingsSnapshot(System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.SnapshotSettingFilter> filters) { }
public Azure.Data.AppConfiguration.CompositionType? CompositionType { get { throw null; } set { } }
public System.DateTimeOffset? Created { get { throw null; } }
public System.DateTimeOffset? CreatedOn { get { throw null; } }
public Azure.ETag ETag { get { throw null; } }
public System.DateTimeOffset? Expires { get { throw null; } }
public System.DateTimeOffset? ExpiresOn { get { throw null; } }
public System.Collections.Generic.IList<Azure.Data.AppConfiguration.SnapshotSettingFilter> Filters { get { throw null; } }
public long? ItemCount { get { throw null; } }
public string Name { get { throw null; } }
Expand Down Expand Up @@ -203,9 +203,9 @@ public SettingSelector() { }
private readonly int _dummyPrimitive;
public SnapshotFields(string value) { throw null; }
public static Azure.Data.AppConfiguration.SnapshotFields CompositionType { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields Created { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields CreatedOn { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields ETag { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields Expires { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields ExpiresOn { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields Filters { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields ItemCount { get { throw null; } }
public static Azure.Data.AppConfiguration.SnapshotFields Name { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public ConfigurationSettingsSnapshot(IEnumerable<SnapshotSettingFilter> filters)
/// <param name="status"> The current status of the snapshot. </param>
/// <param name="filters"> A list of filters used to filter the key-values included in the snapshot. </param>
/// <param name="compositionType"> The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. </param>
/// <param name="created"> The time that the snapshot was created. </param>
/// <param name="expires"> The time that the snapshot will expire. </param>
/// <param name="createdOn"> The time that the snapshot was created. </param>
/// <param name="expiresOn"> The time that the snapshot will expire. </param>
/// <param name="retentionPeriod"> The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. </param>
/// <param name="size"> The size in bytes of the snapshot. </param>
/// <param name="itemCount"> The amount of key-values in the snapshot. </param>
/// <param name="tags"> The tags of the snapshot. </param>
/// <param name="eTag"> A value representing the current state of the snapshot. </param>
internal ConfigurationSettingsSnapshot(string name, SnapshotStatus? status, IList<SnapshotSettingFilter> filters, CompositionType? compositionType, DateTimeOffset? created, DateTimeOffset? expires, long? retentionPeriod, long? size, long? itemCount, IDictionary<string, string> tags, ETag eTag)
internal ConfigurationSettingsSnapshot(string name, SnapshotStatus? status, IList<SnapshotSettingFilter> filters, CompositionType? compositionType, DateTimeOffset? createdOn, DateTimeOffset? expiresOn, long? retentionPeriod, long? size, long? itemCount, IDictionary<string, string> tags, ETag eTag)
{
Name = name;
Status = status;
Filters = filters;
CompositionType = compositionType;
Created = created;
Expires = expires;
CreatedOn = createdOn;
ExpiresOn = expiresOn;
_retentionPeriod = retentionPeriod;
Size = size;
ItemCount = itemCount;
Expand All @@ -58,9 +58,9 @@ internal ConfigurationSettingsSnapshot(string name, SnapshotStatus? status, ILis
/// <summary> The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. </summary>
public CompositionType? CompositionType { get; set; }
/// <summary> The time that the snapshot was created. </summary>
public DateTimeOffset? Created { get; }
public DateTimeOffset? CreatedOn { get; }
/// <summary> The time that the snapshot will expire. </summary>
public DateTimeOffset? Expires { get; }
public DateTimeOffset? ExpiresOn { get; }
private long? _retentionPeriod;
/// <summary> The amount of time that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. </summary>
public TimeSpan? RetentionPeriod {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace Azure.Data.AppConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public SnapshotFields(string value)
private const string StatusValue = "status";
private const string FiltersValue = "filters";
private const string CompositionTypeValue = "composition_type";
private const string CreatedValue = "created";
private const string ExpiresValue = "expires";
private const string CreatedOnValue = "created";
private const string ExpiresOnValue = "expires";
private const string RetentionPeriodValue = "retention_period";
private const string SizeValue = "size";
private const string ItemCountValue = "items_count";
Expand All @@ -41,9 +41,9 @@ public SnapshotFields(string value)
/// <summary> composition_type. </summary>
public static SnapshotFields CompositionType { get; } = new SnapshotFields(CompositionTypeValue);
/// <summary> created. </summary>
public static SnapshotFields Created { get; } = new SnapshotFields(CreatedValue);
public static SnapshotFields CreatedOn { get; } = new SnapshotFields(CreatedOnValue);
/// <summary> expires. </summary>
public static SnapshotFields Expires { get; } = new SnapshotFields(ExpiresValue);
public static SnapshotFields ExpiresOn { get; } = new SnapshotFields(ExpiresOnValue);
/// <summary> retention_period. </summary>
public static SnapshotFields RetentionPeriod { get; } = new SnapshotFields(RetentionPeriodValue);
/// <summary> size. </summary>
Expand Down

0 comments on commit dc01a99

Please sign in to comment.