forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CognitiveServices] Revert flatten KeyVaultProperties in the Encrypti…
…on model (Azure#34459) * revert flatten in cognitive services * update changelog * resolve comment
- Loading branch information
Showing
10 changed files
with
271 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
....CognitiveServices/samples/Generated/Samples/Sample_CognitiveServicesAccountCollection.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
91 changes: 91 additions & 0 deletions
91
...urceManager.CognitiveServices/src/Customized/Models/ServiceAccountEncryptionProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.ComponentModel; | ||
|
||
namespace Azure.ResourceManager.CognitiveServices.Models | ||
{ | ||
/// <summary> Properties to configure Encryption. </summary> | ||
public partial class ServiceAccountEncryptionProperties | ||
{ | ||
/// <summary> Name of the Key from KeyVault. </summary> | ||
[Obsolete("This property is obsolete and will be removed in a future release", false)] | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public string KeyName | ||
{ | ||
get | ||
{ | ||
if (KeyVaultProperties != null) | ||
return KeyVaultProperties.KeyName; | ||
else | ||
return default; | ||
} | ||
set | ||
{ | ||
if (KeyVaultProperties == null) | ||
KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); | ||
KeyVaultProperties.KeyName = value; | ||
} | ||
} | ||
/// <summary> Version of the Key from KeyVault. </summary> | ||
[Obsolete("This property is obsolete and will be removed in a future release", false)] | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public string KeyVersion | ||
{ | ||
get | ||
{ | ||
if (KeyVaultProperties != null) | ||
return KeyVaultProperties.KeyVersion; | ||
else | ||
return default; | ||
} | ||
set | ||
{ | ||
if (KeyVaultProperties == null) | ||
KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); | ||
KeyVaultProperties.KeyVersion = value; | ||
} | ||
} | ||
/// <summary> Uri of KeyVault. </summary> | ||
[Obsolete("This property is obsolete and will be removed in a future release", false)] | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public Uri KeyVaultUri | ||
{ | ||
get | ||
{ | ||
if (KeyVaultProperties != null) | ||
return KeyVaultProperties.KeyVaultUri; | ||
else | ||
return default; | ||
} | ||
set | ||
{ | ||
if (KeyVaultProperties == null) | ||
KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); | ||
KeyVaultProperties.KeyVaultUri = value; | ||
} | ||
} | ||
/// <summary> Gets or sets the identity client id. </summary> | ||
[Obsolete("This property is obsolete and will be removed in a future release", false)] | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public Guid? IdentityClientId | ||
{ | ||
get | ||
{ | ||
if (KeyVaultProperties != null) | ||
return KeyVaultProperties.IdentityClientId; | ||
else | ||
return default; | ||
} | ||
set | ||
{ | ||
if (KeyVaultProperties == null) | ||
KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); | ||
KeyVaultProperties.IdentityClientId = value; | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...gnitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.Serialization.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...urceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.