From fbfee5f6d9b671b17015cc6cceec14f6cc2b4a1d Mon Sep 17 00:00:00 2001 From: felixwa Date: Tue, 29 Aug 2017 11:11:19 +0800 Subject: [PATCH] Makes Id/Name/Type fields readonly Makes Id/Name/Type fields readonly by making set private. --- .../Generated/Models/CognitiveServicesAccount.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SDKs/CognitiveServices/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs b/src/SDKs/CognitiveServices/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs index b8e7827d7b85..610c11fe854c 100644 --- a/src/SDKs/CognitiveServices/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs +++ b/src/SDKs/CognitiveServices/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs @@ -84,10 +84,10 @@ public CognitiveServicesAccount() public string Etag { get; set; } /// - /// Gets or sets the id of the created account + /// Gets the id of the created account /// [JsonProperty(PropertyName = "id")] - public string Id { get; set; } + public string Id { get; private set; } /// /// Gets or sets type of cognitive service account. @@ -102,10 +102,10 @@ public CognitiveServicesAccount() public string Location { get; set; } /// - /// Gets or sets the name of the created account + /// Gets the name of the created account /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// /// Gets the status of the cognitive services account at the time the @@ -144,10 +144,10 @@ public CognitiveServicesAccount() public IDictionary Tags { get; set; } /// - /// Gets or sets resource type + /// Gets resource type /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public string Type { get; private set; } /// /// Validate the object.