-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Adding projects for RecoveryServices.SiteRecovery service. #3194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8baad91
Adding projects for RecoveryServices.SiteRecovery service.
avneeshraiusit e8dde7a
Changes corresponding to renaming GetTrackAsyncOperation to GetOperat…
avneeshraiusit db2d8f2
Changes corresponding to update in swagger spec PR:
avneeshraiusit 5efaa10
Generated files with proper license headers.
avneeshraiusit 850806d
Changes corresponding to ixing case of discriminator field for Fabric…
avneeshraiusit 6bb5a04
Generating files with latest autorest version.
avneeshraiusit b873ca7
Adding new tests.
avneeshraiusit 38043a5
Removing redundant dependencies.
avneeshraiusit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...ryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IOperations.cs
This file contains hidden or 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,75 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.RecoveryServices; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Models; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
||
| /// <summary> | ||
| /// Operations operations. | ||
| /// </summary> | ||
| public partial interface IOperations | ||
| { | ||
| /// <summary> | ||
| /// Returns the list of available operations. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Operation to return the list of available operations. | ||
| /// </remarks> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<OperationsDiscovery>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Returns the list of available operations. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Operation to return the list of available operations. | ||
| /// </remarks> | ||
| /// <param name='nextPageLink'> | ||
| /// The NextLink from the previous successful call to List operation. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<OperationsDiscovery>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| } | ||
| } |
51 changes: 51 additions & 0 deletions
51
....SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IOperationsOperations.cs
This file contains hidden or 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,51 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery | ||
| { | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Net.Http; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Models; | ||
|
|
||
| /// <summary> | ||
| /// OperationsOperations operations. | ||
| /// </summary> | ||
| public partial interface IOperationsOperations | ||
| { | ||
| /// <summary> | ||
| /// Returns the list of available operations. | ||
| /// </summary> | ||
| /// Operation to return the list of available operations. | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| Task<AzureOperationResponse<IPage<OperationsDiscovery>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Returns the list of available operations. | ||
| /// </summary> | ||
| /// Operation to return the list of available operations. | ||
| /// <param name='nextPageLink'> | ||
| /// The NextLink from the previous successful call to List operation. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| Task<AzureOperationResponse<IPage<OperationsDiscovery>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| } | ||
| } | ||
120 changes: 120 additions & 0 deletions
120
...eRecovery/Management.RecoveryServices.SiteRecovery/Generated/IRecoveryPointsOperations.cs
This file contains hidden or 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,120 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.RecoveryServices; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Models; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
||
| /// <summary> | ||
| /// RecoveryPointsOperations operations. | ||
| /// </summary> | ||
| public partial interface IRecoveryPointsOperations | ||
| { | ||
| /// <summary> | ||
| /// Get a recovery point. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Get the details of specified recovery point. | ||
| /// </remarks> | ||
| /// <param name='fabricName'> | ||
| /// The fabric name. | ||
| /// </param> | ||
| /// <param name='protectionContainerName'> | ||
| /// The protection container name. | ||
| /// </param> | ||
| /// <param name='replicatedProtectedItemName'> | ||
| /// The replication protected item's name. | ||
| /// </param> | ||
| /// <param name='recoveryPointName'> | ||
| /// The recovery point name. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<RecoveryPoint>> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Get recovery points for a replication protected item. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Lists the available recovery points for a replication protected | ||
| /// item. | ||
| /// </remarks> | ||
| /// <param name='fabricName'> | ||
| /// The fabric name. | ||
| /// </param> | ||
| /// <param name='protectionContainerName'> | ||
| /// The protection container name. | ||
| /// </param> | ||
| /// <param name='replicatedProtectedItemName'> | ||
| /// The replication protected item's name. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<RecoveryPoint>>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Get recovery points for a replication protected item. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Lists the available recovery points for a replication protected | ||
| /// item. | ||
| /// </remarks> | ||
| /// <param name='nextPageLink'> | ||
| /// The NextLink from the previous successful call to List operation. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<RecoveryPoint>>> ListByReplicationProtectedItemsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| } | ||
| } |
133 changes: 133 additions & 0 deletions
133
...Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs
This file contains hidden or 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,133 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.RecoveryServices; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Models; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
||
| /// <summary> | ||
| /// ReplicationAlertSettingsOperations operations. | ||
| /// </summary> | ||
| public partial interface IReplicationAlertSettingsOperations | ||
| { | ||
| /// <summary> | ||
| /// Gets an email notification(alert) configuration. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Gets the details of the specified email notification(alert) | ||
| /// configuration. | ||
| /// </remarks> | ||
| /// <param name='alertSettingName'> | ||
| /// The name of the email notification configuration. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<Alert>> GetWithHttpMessagesAsync(string alertSettingName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Configures email notifications for this vault. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Create or update an email notification(alert) configuration. | ||
| /// </remarks> | ||
| /// <param name='alertSettingName'> | ||
| /// The name of the email notification(alert) configuration. | ||
| /// </param> | ||
| /// <param name='request'> | ||
| /// The input to configure the email notification(alert). | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<Alert>> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Gets the list of configured email notification(alert) | ||
| /// configurations. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Gets the list of email notification(alert) configurations for the | ||
| /// vault. . | ||
| /// </remarks> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<Alert>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| /// <summary> | ||
| /// Gets the list of configured email notification(alert) | ||
| /// configurations. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Gets the list of email notification(alert) configurations for the | ||
| /// vault. . | ||
| /// </remarks> | ||
| /// <param name='nextPageLink'> | ||
| /// The NextLink from the previous successful call to List operation. | ||
| /// </param> | ||
| /// <param name='customHeaders'> | ||
| /// The headers that will be added to request. | ||
| /// </param> | ||
| /// <param name='cancellationToken'> | ||
| /// The cancellation token. | ||
| /// </param> | ||
| /// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
| /// Thrown when the operation returned an invalid status code | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.SerializationException"> | ||
| /// Thrown when unable to deserialize the response | ||
| /// </exception> | ||
| /// <exception cref="Microsoft.Rest.ValidationException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| Task<AzureOperationResponse<IPage<Alert>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avneeshrai missing license header.
Chances are your swagger does not have the right License Header Constant, please double check, I believe the constant that you need to use in your swagger is "MIT-no-version"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahabhijeet can you please point to some example spec on what exacty needs to be done here
I tried searching MIT-no-version in azure-rest-api-spec repository but couldnt find any instance of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit