Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public A2AReplicationDetails()
/// 'AutoCreated', 'UserSpecified'</param>
/// <param name="managementId">The management Id.</param>
/// <param name="protectedDisks">The list of protected disks.</param>
/// <param name="unprotectedDisks">The list of unprotected
/// disks.</param>
/// <param name="protectedManagedDisks">The list of protected managed
/// disks.</param>
/// <param name="recoveryBootDiagStorageAccountId">The recovery boot
Expand Down Expand Up @@ -95,14 +97,15 @@ public A2AReplicationDetails()
/// RPO value was calculated by Protection Service.</param>
/// <param name="recoveryAvailabilityZone">The recovery availability
/// zone.</param>
public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList<A2AProtectedDiskDetails> protectedDisks = default(IList<A2AProtectedDiskDetails>), IList<A2AProtectedManagedDiskDetails> protectedManagedDisks = default(IList<A2AProtectedManagedDiskDetails>), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), IList<VMNicDetails> vmNics = default(IList<VMNicDetails>), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string recoveryAvailabilityZone = default(string))
public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList<A2AProtectedDiskDetails> protectedDisks = default(IList<A2AProtectedDiskDetails>), IList<A2AUnprotectedDiskDetails> unprotectedDisks = default(IList<A2AUnprotectedDiskDetails>), IList<A2AProtectedManagedDiskDetails> protectedManagedDisks = default(IList<A2AProtectedManagedDiskDetails>), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), IList<VMNicDetails> vmNics = default(IList<VMNicDetails>), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string recoveryAvailabilityZone = default(string))
{
FabricObjectId = fabricObjectId;
MultiVmGroupId = multiVmGroupId;
MultiVmGroupName = multiVmGroupName;
MultiVmGroupCreateOption = multiVmGroupCreateOption;
ManagementId = managementId;
ProtectedDisks = protectedDisks;
UnprotectedDisks = unprotectedDisks;
ProtectedManagedDisks = protectedManagedDisks;
RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId;
PrimaryFabricLocation = primaryFabricLocation;
Expand Down Expand Up @@ -174,6 +177,12 @@ public A2AReplicationDetails()
[JsonProperty(PropertyName = "protectedDisks")]
public IList<A2AProtectedDiskDetails> ProtectedDisks { get; set; }

/// <summary>
/// Gets or sets the list of unprotected disks.
/// </summary>
[JsonProperty(PropertyName = "unprotectedDisks")]
public IList<A2AUnprotectedDiskDetails> UnprotectedDisks { get; set; }

/// <summary>
/// Gets or sets the list of protected managed disks.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// <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>
/// A2A unprotected disk details.
/// </summary>
public partial class A2AUnprotectedDiskDetails
{
/// <summary>
/// Initializes a new instance of the A2AUnprotectedDiskDetails class.
/// </summary>
public A2AUnprotectedDiskDetails()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the A2AUnprotectedDiskDetails class.
/// </summary>
/// <param name="diskLunId">The source lun Id for the data
/// disk.</param>
public A2AUnprotectedDiskDetails(int? diskLunId = default(int?))
{
DiskLunId = diskLunId;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the source lun Id for the data disk.
/// </summary>
[JsonProperty(PropertyName = "diskLunId")]
public int? DiskLunId { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SiteRecoveryMan
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/recoveryservicessiterecovery/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "6f9a9ad609f2c97efc99b6aeb4c5fc0343d9d37f";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@ public partial class SiteRecoveryManagementClient : ServiceClient<SiteRecoveryMa
/// </summary>
public virtual IReplicationVaultHealthOperations ReplicationVaultHealth { get; private set; }

/// <summary>
/// Initializes a new instance of the SiteRecoveryManagementClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SiteRecoveryManagementClient.Dispose(). False: will not dispose provided httpClient</param>
protected SiteRecoveryManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the SiteRecoveryManagementClient class.
/// </summary>
Expand Down Expand Up @@ -297,6 +310,33 @@ public SiteRecoveryManagementClient(ServiceClientCredentials credentials, params
}
}

/// <summary>
/// Initializes a new instance of the SiteRecoveryManagementClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SiteRecoveryManagementClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public SiteRecoveryManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the SiteRecoveryManagementClient class.
/// </summary>
Expand Down