@@ -70,14 +70,14 @@ public async Task<KeyVaultDescriptor> GetSecretAsync(
7070 {
7171 this . ValidateKeyVaultStore ( ) ;
7272 this . StoreDescription . ThrowIfNull ( nameof ( this . StoreDescription ) ) ;
73- KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . ObjectName ) ) ;
73+ KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . Name ) ) ;
7474
7575 // Use descriptor.VaultUri if set, otherwise use the store's EndpointUri
7676 Uri vaultUri = ! string . IsNullOrWhiteSpace ( descriptor . VaultUri )
7777 ? new Uri ( descriptor . VaultUri )
7878 : ( ( DependencyKeyVaultStore ) this . StoreDescription ) . EndpointUri ;
7979
80- string secretName = descriptor . ObjectName ;
80+ string secretName = descriptor . Name ;
8181
8282 SecretClient client = new SecretClient ( vaultUri , ( ( DependencyKeyVaultStore ) this . StoreDescription ) . Credentials ) ;
8383
@@ -90,7 +90,7 @@ public async Task<KeyVaultDescriptor> GetSecretAsync(
9090 {
9191 Value = secret . Value ,
9292 Version = secret . Properties . Version ,
93- ObjectName = secretName ,
93+ Name = secretName ,
9494 VaultUri = vaultUri . ToString ( ) ,
9595 ObjectId = secret . Id . ToString ( ) ,
9696 ObjectType = KeyVaultObjectType . Secret
@@ -146,14 +146,14 @@ public async Task<KeyVaultDescriptor> GetKeyAsync(
146146 IAsyncPolicy retryPolicy = null )
147147 {
148148 this . ValidateKeyVaultStore ( ) ;
149- KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . ObjectName ) ) ;
149+ KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . Name ) ) ;
150150
151151 // Use descriptor.VaultUri if set, otherwise use the store's EndpointUri
152152 Uri vaultUri = ! string . IsNullOrWhiteSpace ( descriptor . VaultUri )
153153 ? new Uri ( descriptor . VaultUri )
154154 : ( ( DependencyKeyVaultStore ) this . StoreDescription ) . EndpointUri ;
155155
156- string keyName = descriptor . ObjectName ;
156+ string keyName = descriptor . Name ;
157157
158158 KeyClient client = new KeyClient ( vaultUri , ( ( DependencyKeyVaultStore ) this . StoreDescription ) . Credentials ) ;
159159
@@ -165,7 +165,7 @@ public async Task<KeyVaultDescriptor> GetKeyAsync(
165165 KeyVaultDescriptor result = new KeyVaultDescriptor ( descriptor )
166166 {
167167 ObjectType = KeyVaultObjectType . Key ,
168- ObjectName = keyName ,
168+ Name = keyName ,
169169 VaultUri = vaultUri . ToString ( ) ,
170170 Version = key . Properties . Version ,
171171 ObjectId = key . Id . ToString ( )
@@ -221,14 +221,14 @@ public async Task<KeyVaultDescriptor> GetCertificateAsync(
221221 IAsyncPolicy retryPolicy = null )
222222 {
223223 this . ValidateKeyVaultStore ( ) ;
224- KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . ObjectName ) ) ;
224+ KeyVaultManager . ValidateDescriptor ( descriptor , nameof ( descriptor . Name ) ) ;
225225
226226 // Use descriptor.VaultUri if set, otherwise use the store's EndpointUri
227227 Uri vaultUri = ! string . IsNullOrWhiteSpace ( descriptor . VaultUri )
228228 ? new Uri ( descriptor . VaultUri )
229229 : ( ( DependencyKeyVaultStore ) this . StoreDescription ) . EndpointUri ;
230230
231- string certName = descriptor . ObjectName ;
231+ string certName = descriptor . Name ;
232232
233233 CertificateClient client = new CertificateClient ( vaultUri , ( ( DependencyKeyVaultStore ) this . StoreDescription ) . Credentials ) ;
234234
@@ -240,7 +240,7 @@ public async Task<KeyVaultDescriptor> GetCertificateAsync(
240240 KeyVaultDescriptor result = new KeyVaultDescriptor ( descriptor )
241241 {
242242 ObjectType = KeyVaultObjectType . Certificate ,
243- ObjectName = certName ,
243+ Name = certName ,
244244 VaultUri = vaultUri . ToString ( ) ,
245245 Version = cert . Properties . Version ,
246246 ObjectId = cert . Id . ToString ( ) ,
0 commit comments