Skip to content

Commit 699c7de

Browse files
[KeyVault] Add support for service version 7.6-preview.1 (#43811)
* wip * wip * Update Azure.Security.KeyVault.Secrets.netstandard2.0.cs * update generation * Update Azure.Security.KeyVault.Administration.netstandard2.0.cs * Update CONTRIBUTING.md * Add new version in ClientOptions and tests for Administration * Export API * Remove server-side fix from changelog * Update sdk/keyvault/Azure.Security.KeyVault.Certificates/CHANGELOG.md * Add new endpoints definitions to readme * Add new Pre-backup methods * Documentation for PreBackup methods * Update method names in KeyVaultBackupClient for clarity * Add pre-restore methods * Export API * Use a flag to handle different headers in RestoreOperation * Update Administration Changelog * Add tests for Administration * Update preBackup and preRestore tests * Missing new version in CertificatesClientOptions * Re-record CertificateClientLiveTests * Remove unninteded line in Keys Changelog * Improve admin changelod message and clean samples in readme * nit changes * Format Changelog md files * Add null argument checks in KeyVaultBackupClient methods and document exceptions * Introducing the KeyVaultPreBackupOperation and KeyVaultPreRestoreOperation classes. * Ignore tests for preview version * Revert changes in KeyVaultRestoreOperation * Include possible exceptions to pre-operation classes * Record Secrets * Record Keys tests * Record admin * Re-record failing tests for Secrets * Update test-resources json to output the Tenant ID too * Export API and remove unused snippets --------- Co-authored-by: Jonathan Cardenas <[email protected]>
1 parent bbed3b4 commit 699c7de

File tree

43 files changed

+1079
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1079
-72
lines changed

sdk/keyvault/Azure.Security.KeyVault.Administration/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44

55
### Features Added
66

7+
- Added support for service API version `7.6-preview.1`.
8+
- Added new methods `StartPreRestoreAsync`, `StartPreRestore`, `StartPreBackupAsync`, and `StartPreBackupAsync` to the `KeyVaultBackupClient`.
9+
710
### Breaking Changes
811

912
### Bugs Fixed
1013

1114
### Other Changes
1215

16+
- The default service version is now "V7_6_Preview_1".
17+
1318
## 4.4.0 (2024-02-14)
1419

1520
Changes from both the last release and the last beta include:
@@ -83,8 +88,8 @@ The following changes are only breaking from the previous beta. They are not bre
8388
### Breaking Changes
8489

8590
- Verify the challenge resource matches the vault domain.
86-
This should affect few customers who can set `KeyVaultAdministrationClientOptions.DisableChallengeResourceVerification` to `true` to disable.
87-
See https://aka.ms/azsdk/blog/vault-uri for more information.
91+
This should affect few customers who can set `KeyVaultAdministrationClientOptions.DisableChallengeResourceVerification` to `true` to disable.
92+
See <https://aka.ms/azsdk/blog/vault-uri> for more information.
8893

8994
## 4.1.0 (2022-03-24)
9095

sdk/keyvault/Azure.Security.KeyVault.Administration/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,16 @@ A `KeyVaultAccessControlClient` provides both synchronous and asynchronous opera
141141

142142
A `KeyVaultBackupClient` provides both synchronous and asynchronous operations for performing full key backups, full key restores, and selective key restores.
143143

144+
### PreBackupOperation
145+
A `PreBackupOperation` represents a long-running operation that checks if it is possible to perform a full key backup.
146+
144147
### BackupOperation
145148

146149
A `BackupOperation` represents a long running operation for a full key backup.
147150

151+
### PreRestoreOperation
152+
A `PreRestoreOperation` represents a long-running operation that checks if it is possible to perform a full key restore from a backup.
153+
148154
### RestoreOperation
149155

150156
A `RestoreOperation` represents a long running operation for both a full key and selective key restore.

sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public KeyVaultAccessControlClient(System.Uri vaultUri, Azure.Core.TokenCredenti
4343
}
4444
public partial class KeyVaultAdministrationClientOptions : Azure.Core.ClientOptions
4545
{
46-
public KeyVaultAdministrationClientOptions(Azure.Security.KeyVault.Administration.KeyVaultAdministrationClientOptions.ServiceVersion version = Azure.Security.KeyVault.Administration.KeyVaultAdministrationClientOptions.ServiceVersion.V7_5) { }
46+
public KeyVaultAdministrationClientOptions(Azure.Security.KeyVault.Administration.KeyVaultAdministrationClientOptions.ServiceVersion version = Azure.Security.KeyVault.Administration.KeyVaultAdministrationClientOptions.ServiceVersion.V7_6_Preview_1) { }
4747
public bool DisableChallengeResourceVerification { get { throw null; } set { } }
4848
public Azure.Security.KeyVault.Administration.KeyVaultAdministrationClientOptions.ServiceVersion Version { get { throw null; } }
4949
public enum ServiceVersion
@@ -52,6 +52,7 @@ public enum ServiceVersion
5252
V7_3 = 2,
5353
V7_4 = 3,
5454
V7_5 = 4,
55+
V7_6_Preview_1 = 5,
5556
}
5657
}
5758
public static partial class KeyVaultAdministrationModelFactory
@@ -79,6 +80,10 @@ public KeyVaultBackupClient(System.Uri vaultUri, Azure.Core.TokenCredential cred
7980
public virtual System.Uri VaultUri { get { throw null; } }
8081
public virtual Azure.Security.KeyVault.Administration.KeyVaultBackupOperation StartBackup(System.Uri blobStorageUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8182
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultBackupOperation> StartBackupAsync(System.Uri blobStorageUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
83+
public virtual Azure.Security.KeyVault.Administration.KeyVaultPreBackupOperation StartPreBackup(System.Uri blobStorageUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
84+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultPreBackupOperation> StartPreBackupAsync(System.Uri blobStorageUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
85+
public virtual Azure.Security.KeyVault.Administration.KeyVaultPreRestoreOperation StartPreRestore(System.Uri folderUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
86+
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultPreRestoreOperation> StartPreRestoreAsync(System.Uri folderUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8287
public virtual Azure.Security.KeyVault.Administration.KeyVaultRestoreOperation StartRestore(System.Uri folderUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8388
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultRestoreOperation> StartRestoreAsync(System.Uri folderUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
8489
public virtual Azure.Security.KeyVault.Administration.KeyVaultSelectiveKeyRestoreOperation StartSelectiveKeyRestore(string keyName, System.Uri folderUri, string sasToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -165,6 +170,38 @@ public KeyVaultPermission() { }
165170
public System.Collections.Generic.IList<string> NotActions { get { throw null; } }
166171
public System.Collections.Generic.IList<Azure.Security.KeyVault.Administration.KeyVaultDataAction> NotDataActions { get { throw null; } }
167172
}
173+
public partial class KeyVaultPreBackupOperation : Azure.Operation<Azure.Security.KeyVault.Administration.KeyVaultBackupResult>
174+
{
175+
protected KeyVaultPreBackupOperation() { }
176+
public KeyVaultPreBackupOperation(Azure.Security.KeyVault.Administration.KeyVaultBackupClient client, string id) { }
177+
public System.DateTimeOffset? EndTime { get { throw null; } }
178+
public override bool HasCompleted { get { throw null; } }
179+
public override bool HasValue { get { throw null; } }
180+
public override string Id { get { throw null; } }
181+
public System.DateTimeOffset? StartTime { get { throw null; } }
182+
public override Azure.Security.KeyVault.Administration.KeyVaultBackupResult Value { get { throw null; } }
183+
public override Azure.Response GetRawResponse() { throw null; }
184+
public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
185+
public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
186+
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultBackupResult>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
187+
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultBackupResult>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; }
188+
}
189+
public partial class KeyVaultPreRestoreOperation : Azure.Operation<Azure.Security.KeyVault.Administration.KeyVaultRestoreResult>
190+
{
191+
protected KeyVaultPreRestoreOperation() { }
192+
public KeyVaultPreRestoreOperation(Azure.Security.KeyVault.Administration.KeyVaultBackupClient client, string id) { }
193+
public System.DateTimeOffset? EndTime { get { throw null; } }
194+
public override bool HasCompleted { get { throw null; } }
195+
public override bool HasValue { get { throw null; } }
196+
public override string Id { get { throw null; } }
197+
public System.DateTimeOffset? StartTime { get { throw null; } }
198+
public override Azure.Security.KeyVault.Administration.KeyVaultRestoreResult Value { get { throw null; } }
199+
public override Azure.Response GetRawResponse() { throw null; }
200+
public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
201+
public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
202+
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultRestoreResult>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
203+
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultRestoreResult>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; }
204+
}
168205
public partial class KeyVaultRestoreOperation : Azure.Operation<Azure.Security.KeyVault.Administration.KeyVaultRestoreResult>
169206
{
170207
protected KeyVaultRestoreOperation() { }
@@ -337,3 +374,13 @@ public readonly partial struct KeyVaultSettingValue
337374
public override string ToString() { throw null; }
338375
}
339376
}
377+
namespace Azure.Security.KeyVault.Administration.Models
378+
{
379+
public partial class PreBackupOperationParameters
380+
{
381+
public PreBackupOperationParameters() { }
382+
public string StorageResourceUri { get { throw null; } set { } }
383+
public string Token { get { throw null; } set { } }
384+
public bool? UseManagedIdentity { get { throw null; } set { } }
385+
}
386+
}

sdk/keyvault/Azure.Security.KeyVault.Administration/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/keyvault/Azure.Security.KeyVault.Administration",
5-
"Tag": "net/keyvault/Azure.Security.KeyVault.Administration_4951f6b8e1"
5+
"Tag": "net/keyvault/Azure.Security.KeyVault.Administration_2b51d5440c"
66
}

sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/AzureSecurityKeyVaultAdministrationPreFullBackupHeaders.cs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/AzureSecurityKeyVaultAdministrationPreFullRestoreOperationHeaders.cs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)