Skip to content

Commit

Permalink
Rename operation classes and .models namespace
Browse files Browse the repository at this point in the history
Partly fixes Azure#20926
  • Loading branch information
heaths committed May 11, 2021
1 parent e74f399 commit 1297823
Show file tree
Hide file tree
Showing 36 changed files with 312 additions and 328 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## 4.0.0-beta.5 (Unreleased)

### Breaking Changes

- Moved all classes from the `Azure.Security.KeyVault.Administration.Models` namespace to `Azure.Security.KeyVault.Administration`.
- Renamed `BackupOperation` to `KeyVaultBackupOperation`.
- Renamed `RestoreOperation` to `KeyVaultRestoreOperation`.
- Renamed `SelectiveKeyRestoreOperation` to `KeyVaultSelectiveRestoreOperation`.
- Renamed `SelectiveKeyRestoreResult` to `KeyVaultSelectiveRestoreResult`.

## 4.0.0-beta.4 (2021-02-10)

### Added
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public static KeyVaultRoleAssignment RoleAssignment(string id, string name, stri
/// <summary>
/// Initializes a new instance of a FullRestoreOperation for mocking purposes.
/// </summary>
/// <param name="response">The <see cref="Response" /> that will be returned from <see cref="RestoreOperation.GetRawResponse" />.</param>
/// <param name="response">The <see cref="Response" /> that will be returned from <see cref="KeyVaultRestoreOperation.GetRawResponse" />.</param>
/// <param name="client">An instance of <see cref="KeyVaultBackupClient" />.</param>
/// <param name="id"> Identifier for the restore operation.</param>
/// <param name="startTime"> The start time of the restore operation.</param>
/// <param name="endTime"> The end time of the restore operation.</param>
/// <param name="errorMessage">The error message generated from the operation, if any.</param>
public static RestoreOperation RestoreOperation(Response response, KeyVaultBackupClient client, string id, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string errorMessage = null) =>
new RestoreOperation(new RestoreDetailsInternal(
public static KeyVaultRestoreOperation RestoreOperation(Response response, KeyVaultBackupClient client, string id, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string errorMessage = null) =>
new KeyVaultRestoreOperation(new RestoreDetailsInternal(
null,
null,
errorMessage == null ? null : new KeyVaultServiceError(string.Empty, errorMessage, null),
Expand All @@ -57,15 +57,15 @@ public static RestoreOperation RestoreOperation(Response response, KeyVaultBacku
/// <summary>
/// Initializes a new instance of a FullBackupOperation for mocking purposes.
/// </summary>
/// <param name="response">The <see cref="Response" /> that will be returned from <see cref="BackupOperation.GetRawResponse" />.</param>
/// <param name="response">The <see cref="Response" /> that will be returned from <see cref="KeyVaultBackupOperation.GetRawResponse" />.</param>
/// <param name="client">An instance of <see cref="KeyVaultBackupClient" />.</param>
/// <param name="id"> Identifier for the restore operation.</param>
/// <param name="blobContainerUri">The Blob Container Uri containing the backup.</param>
/// <param name="startTime"> The start time of the restore operation.</param>
/// <param name="endTime"> The end time of the restore operation.</param>
/// <param name="errorMessage">The error message generated from the operation, if any.</param>
public static BackupOperation BackupOperation(Response response, KeyVaultBackupClient client, string id, Uri blobContainerUri, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string errorMessage = null) =>
new BackupOperation(new FullBackupDetailsInternal(
public static KeyVaultBackupOperation BackupOperation(Response response, KeyVaultBackupClient client, string id, Uri blobContainerUri, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string errorMessage = null) =>
new KeyVaultBackupOperation(new FullBackupDetailsInternal(
null,
null,
errorMessage == null ? null : new KeyVaultServiceError(string.Empty, errorMessage, null),
Expand All @@ -81,25 +81,25 @@ public static BackupOperation BackupOperation(Response response, KeyVaultBackupC
/// <param name="startTime">The start time of the backup operation.</param>
/// <param name="endTime">The end time of the backup operation.</param>
/// <returns>A new <see cref="BackupResult"/> instance.</returns>
public static BackupResult BackupResult(Uri folderUri, DateTimeOffset startTime, DateTimeOffset endTime) =>
new BackupResult(folderUri, startTime, endTime);
public static KeyVaultBackupResult BackupResult(Uri folderUri, DateTimeOffset startTime, DateTimeOffset endTime) =>
new KeyVaultBackupResult(folderUri, startTime, endTime);

/// <summary>
/// Initializes a new instance of a <see cref="RestoreResult"/> for mocking purposes.
/// </summary>
/// <param name="startTime">The start time of the restore operation.</param>
/// <param name="endTime">The end time of the restore operation.</param>
/// <returns>A new <see cref="BackupResult"/> instance.</returns>
public static RestoreResult RestoreResult(DateTimeOffset startTime, DateTimeOffset endTime) =>
new RestoreResult(startTime, endTime);
public static KeyVaultRestoreResult RestoreResult(DateTimeOffset startTime, DateTimeOffset endTime) =>
new KeyVaultRestoreResult(startTime, endTime);

/// <summary>
/// Initializes a new instance of a <see cref="SelectiveKeyRestoreResult"/> for mocking purposes.
/// </summary>
/// <param name="startTime">The start time of the restore operation.</param>
/// <param name="endTime">The end time of the restore operation.</param>
/// <returns>A new <see cref="BackupResult"/> instance.</returns>
public static RestoreResult SelectiveKeyRestoreResult(DateTimeOffset startTime, DateTimeOffset endTime) =>
new RestoreResult(startTime, endTime);
public static KeyVaultRestoreResult SelectiveKeyRestoreResult(DateTimeOffset startTime, DateTimeOffset endTime) =>
new KeyVaultRestoreResult(startTime, endTime);
}
}
Loading

0 comments on commit 1297823

Please sign in to comment.