-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'RecoveryServices.SiteRecovery' (#6313)
REST Spec PR 'Azure/azure-rest-api-specs#6006' REST Spec PR Author 'hitesh715' REST Spec PR Last commit
- Loading branch information
Showing
11 changed files
with
1,434 additions
and
1 deletion.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
.../Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultSettingOperations.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,131 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// ReplicationVaultSettingOperations operations. | ||
/// </summary> | ||
public partial interface IReplicationVaultSettingOperations | ||
{ | ||
/// <summary> | ||
/// Gets the list of vault setting. | ||
/// </summary> | ||
/// <remarks> | ||
/// Gets the list of vault setting. This includes the Migration Hub | ||
/// connection settings. | ||
/// </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<VaultSetting>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
/// <summary> | ||
/// Gets the vault setting. | ||
/// </summary> | ||
/// <remarks> | ||
/// Gets the vault setting. This includes the Migration Hub connection | ||
/// settings. | ||
/// </remarks> | ||
/// <param name='vaultSettingName'> | ||
/// Vault setting 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<VaultSetting>> GetWithHttpMessagesAsync(string vaultSettingName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
/// <summary> | ||
/// Updates vault setting. A vault setting object is a singleton per | ||
/// vault and it is always present by default. | ||
/// </summary> | ||
/// <remarks> | ||
/// The operation to configure vault setting. | ||
/// </remarks> | ||
/// <param name='vaultSettingName'> | ||
/// Vault setting name. | ||
/// </param> | ||
/// <param name='input'> | ||
/// Vault setting creation input. | ||
/// </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<VaultSetting>> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
/// <summary> | ||
/// Gets the list of vault setting. | ||
/// </summary> | ||
/// <remarks> | ||
/// Gets the list of vault setting. This includes the Migration Hub | ||
/// connection settings. | ||
/// </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<VaultSetting>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
} | ||
} |
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
56 changes: 56 additions & 0 deletions
56
...es.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultSetting.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,56 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Vault setting. | ||
/// </summary> | ||
public partial class VaultSetting : Resource | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the VaultSetting class. | ||
/// </summary> | ||
public VaultSetting() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the VaultSetting class. | ||
/// </summary> | ||
/// <param name="id">Resource Id</param> | ||
/// <param name="name">Resource Name</param> | ||
/// <param name="type">Resource Type</param> | ||
/// <param name="location">Resource Location</param> | ||
/// <param name="properties">The vault setting properties.</param> | ||
public VaultSetting(string id = default(string), string name = default(string), string type = default(string), string location = default(string), VaultSettingProperties properties = default(VaultSettingProperties)) | ||
: base(id, name, type, location) | ||
{ | ||
Properties = properties; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the vault setting properties. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "properties")] | ||
public VaultSettingProperties Properties { get; set; } | ||
|
||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...ry/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultSettingCreationInput.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,70 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Input to create vault setting. | ||
/// </summary> | ||
public partial class VaultSettingCreationInput | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the VaultSettingCreationInput class. | ||
/// </summary> | ||
public VaultSettingCreationInput() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the VaultSettingCreationInput class. | ||
/// </summary> | ||
/// <param name="properties">Vault setting creation input | ||
/// properties.</param> | ||
public VaultSettingCreationInput(VaultSettingCreationInputProperties properties) | ||
{ | ||
Properties = properties; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets vault setting creation input properties. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "properties")] | ||
public VaultSettingCreationInputProperties Properties { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (Properties == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); | ||
} | ||
if (Properties != null) | ||
{ | ||
Properties.Validate(); | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...ent.RecoveryServices.SiteRecovery/Generated/Models/VaultSettingCreationInputProperties.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,68 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Input to create vault setting. | ||
/// </summary> | ||
public partial class VaultSettingCreationInputProperties | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// VaultSettingCreationInputProperties class. | ||
/// </summary> | ||
public VaultSettingCreationInputProperties() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// VaultSettingCreationInputProperties class. | ||
/// </summary> | ||
/// <param name="migrationSolutionId">The migration solution | ||
/// Id.</param> | ||
public VaultSettingCreationInputProperties(string migrationSolutionId) | ||
{ | ||
MigrationSolutionId = migrationSolutionId; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the migration solution Id. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "migrationSolutionId")] | ||
public string MigrationSolutionId { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (MigrationSolutionId == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId"); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.