Skip to content

Commit

Permalink
Makes Id/Name/Type fields readonly (#3633)
Browse files Browse the repository at this point in the history
Makes Id/Name/Type fields readonly by making set private.
  • Loading branch information
felixwa authored and shahabhijeet committed Aug 29, 2017
1 parent 0175b27 commit fbfa5d4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public CognitiveServicesAccount()
public string Etag { get; set; }

/// <summary>
/// Gets or sets the id of the created account
/// Gets the id of the created account
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
public string Id { get; private set; }

/// <summary>
/// Gets or sets type of cognitive service account.
Expand All @@ -102,10 +102,10 @@ public CognitiveServicesAccount()
public string Location { get; set; }

/// <summary>
/// Gets or sets the name of the created account
/// Gets the name of the created account
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; private set; }

/// <summary>
/// Gets the status of the cognitive services account at the time the
Expand Down Expand Up @@ -144,10 +144,10 @@ public CognitiveServicesAccount()
public IDictionary<string, string> Tags { get; set; }

/// <summary>
/// Gets or sets resource type
/// Gets resource type
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
public string Type { get; private set; }

/// <summary>
/// Validate the object.
Expand Down

0 comments on commit fbfa5d4

Please sign in to comment.