diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs index 40238e79fe92..bf50c778eb1c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs @@ -624,6 +624,41 @@ public partial interface IReplicationProtectedItemsOperations /// Task> UnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected + /// item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateApplianceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Update the mobility service on a protected item. /// /// @@ -1228,6 +1263,41 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginUnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected + /// item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateApplianceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Update the mobility service on a protected item. /// /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs index 818d1e7c16b4..3d320107c4db 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs @@ -41,7 +41,9 @@ public AzureVmDiskDetails() /// VM. /// The DiskEncryptionSet ARM /// ID. - public AzureVmDiskDetails(string vhdType = default(string), string vhdId = default(string), string diskId = default(string), string vhdName = default(string), string maxSizeMB = default(string), string targetDiskLocation = default(string), string targetDiskName = default(string), string lunId = default(string), string diskEncryptionSetId = default(string)) + /// The custom target Azure disk + /// name. + public AzureVmDiskDetails(string vhdType = default(string), string vhdId = default(string), string diskId = default(string), string vhdName = default(string), string maxSizeMB = default(string), string targetDiskLocation = default(string), string targetDiskName = default(string), string lunId = default(string), string diskEncryptionSetId = default(string), string customTargetDiskName = default(string)) { VhdType = vhdType; VhdId = vhdId; @@ -52,6 +54,7 @@ public AzureVmDiskDetails() TargetDiskName = targetDiskName; LunId = lunId; DiskEncryptionSetId = diskEncryptionSetId; + CustomTargetDiskName = customTargetDiskName; CustomInit(); } @@ -114,5 +117,11 @@ public AzureVmDiskDetails() [JsonProperty(PropertyName = "diskEncryptionSetId")] public string DiskEncryptionSetId { get; set; } + /// + /// Gets or sets the custom target Azure disk name. + /// + [JsonProperty(PropertyName = "customTargetDiskName")] + public string CustomTargetDiskName { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs index 560d1348b316..2afebc74a023 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs @@ -40,7 +40,11 @@ public DraDetails() /// The health. Possible values include: 'None', /// 'Normal', 'Warning', 'Critical' /// The health errors. - public DraDetails(string id = default(string), string name = default(string), string biosId = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + /// The count of protected + /// items which are protected in forward direction. + /// The count of protected + /// items which are protected in reverse direction. + public DraDetails(string id = default(string), string name = default(string), string biosId = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList), int? forwardProtectedItemCount = default(int?), int? reverseProtectedItemCount = default(int?)) { Id = id; Name = name; @@ -49,6 +53,8 @@ public DraDetails() LastHeartbeatUtc = lastHeartbeatUtc; Health = health; HealthErrors = healthErrors; + ForwardProtectedItemCount = forwardProtectedItemCount; + ReverseProtectedItemCount = reverseProtectedItemCount; CustomInit(); } @@ -100,5 +106,19 @@ public DraDetails() [JsonProperty(PropertyName = "healthErrors")] public IList HealthErrors { get; private set; } + /// + /// Gets the count of protected items which are protected in forward + /// direction. + /// + [JsonProperty(PropertyName = "forwardProtectedItemCount")] + public int? ForwardProtectedItemCount { get; private set; } + + /// + /// Gets the count of protected items which are protected in reverse + /// direction. + /// + [JsonProperty(PropertyName = "reverseProtectedItemCount")] + public int? ReverseProtectedItemCount { get; private set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs index 38cdd9a0ba30..f174c198672b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs @@ -53,7 +53,8 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() /// The SQL Server license type. /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', /// 'AHUB' - public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string)) + /// The list of disk update properties. + public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string), IList vmDisks = default(IList)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; @@ -65,6 +66,7 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() TargetManagedDiskTags = targetManagedDiskTags; TargetNicTags = targetNicTags; SqlServerLicenseType = sqlServerLicenseType; + VmDisks = vmDisks; CustomInit(); } @@ -138,5 +140,11 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "sqlServerLicenseType")] public string SqlServerLicenseType { get; set; } + /// + /// Gets or sets the list of disk update properties. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs index afb8d952019e..564f71e32725 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs @@ -36,12 +36,14 @@ public InMageAzureV2ManagedDiskDetails() /// The replica disk type. /// The DiskEncryptionSet ARM /// ID. - public InMageAzureV2ManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string), string diskEncryptionSetId = default(string)) + /// The target disk name. + public InMageAzureV2ManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string), string diskEncryptionSetId = default(string), string targetDiskName = default(string)) { DiskId = diskId; SeedManagedDiskId = seedManagedDiskId; ReplicaDiskType = replicaDiskType; DiskEncryptionSetId = diskEncryptionSetId; + TargetDiskName = targetDiskName; CustomInit(); } @@ -74,5 +76,11 @@ public InMageAzureV2ManagedDiskDetails() [JsonProperty(PropertyName = "diskEncryptionSetId")] public string DiskEncryptionSetId { get; set; } + /// + /// Gets or sets the target disk name. + /// + [JsonProperty(PropertyName = "targetDiskName")] + public string TargetDiskName { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs index 235733d2b98d..7eeb937877e7 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs @@ -51,7 +51,8 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() /// The SQL Server license type. /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', /// 'AHUB' - public InMageAzureV2UpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string)) + /// The list of disk update properties. + public InMageAzureV2UpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string), IList vmDisks = default(IList)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; @@ -62,6 +63,7 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() TargetManagedDiskTags = targetManagedDiskTags; TargetNicTags = targetNicTags; SqlServerLicenseType = sqlServerLicenseType; + VmDisks = vmDisks; CustomInit(); } @@ -128,5 +130,11 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "sqlServerLicenseType")] public string SqlServerLicenseType { get; set; } + /// + /// Gets or sets the list of disk update properties. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs new file mode 100644 index 000000000000..218bf7cbf6eb --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs @@ -0,0 +1,145 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm discovered protected VM details. + /// + public partial class InMageRcmDiscoveredProtectedVmDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmDiscoveredProtectedVmDetails class. + /// + public InMageRcmDiscoveredProtectedVmDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmDiscoveredProtectedVmDetails class. + /// + /// The VCenter Id. + /// The VCenter fqdn. + /// The list of datastores. + /// The list of IP addresses. + /// The VMware tools status. + /// The VM power status. + /// The VM fqdn. + /// The VM's OS name. + /// The SDS created timestamp. + /// The SDS updated timestamp. + /// A value indicating whether the VM is + /// deleted. + /// The last time when SDS + /// information discovered in SRS. + public InMageRcmDiscoveredProtectedVmDetails(string vCenterId = default(string), string vCenterFqdn = default(string), IList datastores = default(IList), IList ipAddresses = default(IList), string vmwareToolsStatus = default(string), string powerStatus = default(string), string vmFqdn = default(string), string osName = default(string), System.DateTime? createdTimestamp = default(System.DateTime?), System.DateTime? updatedTimestamp = default(System.DateTime?), bool? isDeleted = default(bool?), System.DateTime? lastDiscoveryTimeInUtc = default(System.DateTime?)) + { + VCenterId = vCenterId; + VCenterFqdn = vCenterFqdn; + Datastores = datastores; + IpAddresses = ipAddresses; + VmwareToolsStatus = vmwareToolsStatus; + PowerStatus = powerStatus; + VmFqdn = vmFqdn; + OsName = osName; + CreatedTimestamp = createdTimestamp; + UpdatedTimestamp = updatedTimestamp; + IsDeleted = isDeleted; + LastDiscoveryTimeInUtc = lastDiscoveryTimeInUtc; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the VCenter Id. + /// + [JsonProperty(PropertyName = "vCenterId")] + public string VCenterId { get; private set; } + + /// + /// Gets the VCenter fqdn. + /// + [JsonProperty(PropertyName = "vCenterFqdn")] + public string VCenterFqdn { get; private set; } + + /// + /// Gets the list of datastores. + /// + [JsonProperty(PropertyName = "datastores")] + public IList Datastores { get; private set; } + + /// + /// Gets the list of IP addresses. + /// + [JsonProperty(PropertyName = "ipAddresses")] + public IList IpAddresses { get; private set; } + + /// + /// Gets the VMware tools status. + /// + [JsonProperty(PropertyName = "vmwareToolsStatus")] + public string VmwareToolsStatus { get; private set; } + + /// + /// Gets the VM power status. + /// + [JsonProperty(PropertyName = "powerStatus")] + public string PowerStatus { get; private set; } + + /// + /// Gets the VM fqdn. + /// + [JsonProperty(PropertyName = "vmFqdn")] + public string VmFqdn { get; private set; } + + /// + /// Gets the VM's OS name. + /// + [JsonProperty(PropertyName = "osName")] + public string OsName { get; private set; } + + /// + /// Gets the SDS created timestamp. + /// + [JsonProperty(PropertyName = "createdTimestamp")] + public System.DateTime? CreatedTimestamp { get; private set; } + + /// + /// Gets the SDS updated timestamp. + /// + [JsonProperty(PropertyName = "updatedTimestamp")] + public System.DateTime? UpdatedTimestamp { get; private set; } + + /// + /// Gets a value indicating whether the VM is deleted. + /// + [JsonProperty(PropertyName = "isDeleted")] + public bool? IsDeleted { get; private set; } + + /// + /// Gets the last time when SDS information discovered in SRS. + /// + [JsonProperty(PropertyName = "lastDiscoveryTimeInUtc")] + public System.DateTime? LastDiscoveryTimeInUtc { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs index f5a90ee52a27..22e1b9e924a6 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs @@ -42,6 +42,8 @@ public InMageRcmFabricSpecificDetails() /// The service container Id. /// The data plane Uri. /// The control plane Uri. + /// The source agent identity + /// details. /// The list of process servers. /// The list of RCM proxies. /// The list of push installers. @@ -51,7 +53,7 @@ public InMageRcmFabricSpecificDetails() /// The list of Mars agents. /// The list of DRAs. /// The list of agent details. - public InMageRcmFabricSpecificDetails(string vmwareSiteId = default(string), string physicalSiteId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string), string serviceContainerId = default(string), string dataPlaneUri = default(string), string controlPlaneUri = default(string), IList processServers = default(IList), IList rcmProxies = default(IList), IList pushInstallers = default(IList), IList replicationAgents = default(IList), IList reprotectAgents = default(IList), IList marsAgents = default(IList), IList dras = default(IList), IList agentDetails = default(IList)) + public InMageRcmFabricSpecificDetails(string vmwareSiteId = default(string), string physicalSiteId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string), string serviceContainerId = default(string), string dataPlaneUri = default(string), string controlPlaneUri = default(string), IdentityProviderDetails sourceAgentIdentityDetails = default(IdentityProviderDetails), IList processServers = default(IList), IList rcmProxies = default(IList), IList pushInstallers = default(IList), IList replicationAgents = default(IList), IList reprotectAgents = default(IList), IList marsAgents = default(IList), IList dras = default(IList), IList agentDetails = default(IList)) { VmwareSiteId = vmwareSiteId; PhysicalSiteId = physicalSiteId; @@ -60,6 +62,7 @@ public InMageRcmFabricSpecificDetails() ServiceContainerId = serviceContainerId; DataPlaneUri = dataPlaneUri; ControlPlaneUri = controlPlaneUri; + SourceAgentIdentityDetails = sourceAgentIdentityDetails; ProcessServers = processServers; RcmProxies = rcmProxies; PushInstallers = pushInstallers; @@ -118,6 +121,12 @@ public InMageRcmFabricSpecificDetails() [JsonProperty(PropertyName = "controlPlaneUri")] public string ControlPlaneUri { get; private set; } + /// + /// Gets or sets the source agent identity details. + /// + [JsonProperty(PropertyName = "sourceAgentIdentityDetails")] + public IdentityProviderDetails SourceAgentIdentityDetails { get; set; } + /// /// Gets the list of process servers. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs new file mode 100644 index 000000000000..fad3977729ca --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs @@ -0,0 +1,145 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcmFailback discovered VM details. + /// + public partial class InMageRcmFailbackDiscoveredProtectedVmDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackDiscoveredProtectedVmDetails class. + /// + public InMageRcmFailbackDiscoveredProtectedVmDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackDiscoveredProtectedVmDetails class. + /// + /// The VCenter Id. + /// The VCenter fqdn. + /// The list of datastores. + /// The list of IP addresses. + /// The VMware tools status. + /// The VM power status. + /// The VM fqdn. + /// The VM's OS name. + /// The SDS created timestamp. + /// The SDS updated timestamp. + /// A value indicating whether the VM is + /// deleted. + /// The last time when SDS + /// information discovered in SRS. + public InMageRcmFailbackDiscoveredProtectedVmDetails(string vCenterId = default(string), string vCenterFqdn = default(string), IList datastores = default(IList), IList ipAddresses = default(IList), string vmwareToolsStatus = default(string), string powerStatus = default(string), string vmFqdn = default(string), string osName = default(string), System.DateTime? createdTimestamp = default(System.DateTime?), System.DateTime? updatedTimestamp = default(System.DateTime?), bool? isDeleted = default(bool?), System.DateTime? lastDiscoveryTimeInUtc = default(System.DateTime?)) + { + VCenterId = vCenterId; + VCenterFqdn = vCenterFqdn; + Datastores = datastores; + IpAddresses = ipAddresses; + VmwareToolsStatus = vmwareToolsStatus; + PowerStatus = powerStatus; + VmFqdn = vmFqdn; + OsName = osName; + CreatedTimestamp = createdTimestamp; + UpdatedTimestamp = updatedTimestamp; + IsDeleted = isDeleted; + LastDiscoveryTimeInUtc = lastDiscoveryTimeInUtc; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the VCenter Id. + /// + [JsonProperty(PropertyName = "vCenterId")] + public string VCenterId { get; private set; } + + /// + /// Gets the VCenter fqdn. + /// + [JsonProperty(PropertyName = "vCenterFqdn")] + public string VCenterFqdn { get; private set; } + + /// + /// Gets the list of datastores. + /// + [JsonProperty(PropertyName = "datastores")] + public IList Datastores { get; private set; } + + /// + /// Gets the list of IP addresses. + /// + [JsonProperty(PropertyName = "ipAddresses")] + public IList IpAddresses { get; private set; } + + /// + /// Gets the VMware tools status. + /// + [JsonProperty(PropertyName = "vmwareToolsStatus")] + public string VmwareToolsStatus { get; private set; } + + /// + /// Gets the VM power status. + /// + [JsonProperty(PropertyName = "powerStatus")] + public string PowerStatus { get; private set; } + + /// + /// Gets the VM fqdn. + /// + [JsonProperty(PropertyName = "vmFqdn")] + public string VmFqdn { get; private set; } + + /// + /// Gets the VM's OS name. + /// + [JsonProperty(PropertyName = "osName")] + public string OsName { get; private set; } + + /// + /// Gets the SDS created timestamp. + /// + [JsonProperty(PropertyName = "createdTimestamp")] + public System.DateTime? CreatedTimestamp { get; private set; } + + /// + /// Gets the SDS updated timestamp. + /// + [JsonProperty(PropertyName = "updatedTimestamp")] + public System.DateTime? UpdatedTimestamp { get; private set; } + + /// + /// Gets a value indicating whether the VM is deleted. + /// + [JsonProperty(PropertyName = "isDeleted")] + public bool? IsDeleted { get; private set; } + + /// + /// Gets the last time when SDS information discovered in SRS. + /// + [JsonProperty(PropertyName = "lastDiscoveryTimeInUtc")] + public System.DateTime? LastDiscoveryTimeInUtc { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs index 3f77612949a1..ff5ba0ba19c8 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs @@ -33,9 +33,18 @@ public InMageRcmFailbackEventDetails() /// class. /// /// The protected item name. - public InMageRcmFailbackEventDetails(string protectedItemName = default(string)) + /// The protected item name. + /// The appliance name. + /// The server type. + /// The component display + /// name. + public InMageRcmFailbackEventDetails(string protectedItemName = default(string), string vmName = default(string), string applianceName = default(string), string serverType = default(string), string componentDisplayName = default(string)) { ProtectedItemName = protectedItemName; + VmName = vmName; + ApplianceName = applianceName; + ServerType = serverType; + ComponentDisplayName = componentDisplayName; CustomInit(); } @@ -50,5 +59,29 @@ public InMageRcmFailbackEventDetails() [JsonProperty(PropertyName = "protectedItemName")] public string ProtectedItemName { get; private set; } + /// + /// Gets the protected item name. + /// + [JsonProperty(PropertyName = "vmName")] + public string VmName { get; private set; } + + /// + /// Gets the appliance name. + /// + [JsonProperty(PropertyName = "applianceName")] + public string ApplianceName { get; private set; } + + /// + /// Gets the server type. + /// + [JsonProperty(PropertyName = "serverType")] + public string ServerType { get; private set; } + + /// + /// Gets the component display name. + /// + [JsonProperty(PropertyName = "componentDisplayName")] + public string ComponentDisplayName { get; private set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs index 201e2f8d59c7..39b9e580b599 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs @@ -80,7 +80,21 @@ public InMageRcmFailbackReplicationDetails() /// The mobility agent /// information. /// The network details. - public InMageRcmFailbackReplicationDetails(string internalIdentifier = default(string), string azureVirtualMachineId = default(string), string multiVmGroupName = default(string), string reprotectAgentId = default(string), string reprotectAgentName = default(string), string osType = default(string), string logStorageAccountId = default(string), string targetvCenterId = default(string), string targetDataStoreName = default(string), string targetVmName = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), IList protectedDisks = default(IList), InMageRcmFailbackMobilityAgentDetails mobilityAgentDetails = default(InMageRcmFailbackMobilityAgentDetails), IList vmNics = default(IList)) + /// The last planned + /// failover start time. + /// The last planned failover + /// status. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Unknown' + /// The discovered VM + /// information. + /// The policy Id used by the forward + /// replication. + /// The policy friendly name + /// used by the forward replication. + /// A value + /// indicating whether agent registration was successful after + /// failover. + public InMageRcmFailbackReplicationDetails(string internalIdentifier = default(string), string azureVirtualMachineId = default(string), string multiVmGroupName = default(string), string reprotectAgentId = default(string), string reprotectAgentName = default(string), string osType = default(string), string logStorageAccountId = default(string), string targetvCenterId = default(string), string targetDataStoreName = default(string), string targetVmName = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), IList protectedDisks = default(IList), InMageRcmFailbackMobilityAgentDetails mobilityAgentDetails = default(InMageRcmFailbackMobilityAgentDetails), IList vmNics = default(IList), System.DateTime? lastPlannedFailoverStartTime = default(System.DateTime?), string lastPlannedFailoverStatus = default(string), InMageRcmFailbackDiscoveredProtectedVmDetails discoveredVmDetails = default(InMageRcmFailbackDiscoveredProtectedVmDetails), string lastUsedPolicyId = default(string), string lastUsedPolicyFriendlyName = default(string), bool? isAgentRegistrationSuccessfulAfterFailover = default(bool?)) { InternalIdentifier = internalIdentifier; AzureVirtualMachineId = azureVirtualMachineId; @@ -105,6 +119,12 @@ public InMageRcmFailbackReplicationDetails() ProtectedDisks = protectedDisks; MobilityAgentDetails = mobilityAgentDetails; VmNics = vmNics; + LastPlannedFailoverStartTime = lastPlannedFailoverStartTime; + LastPlannedFailoverStatus = lastPlannedFailoverStatus; + DiscoveredVmDetails = discoveredVmDetails; + LastUsedPolicyId = lastUsedPolicyId; + LastUsedPolicyFriendlyName = lastUsedPolicyFriendlyName; + IsAgentRegistrationSuccessfulAfterFailover = isAgentRegistrationSuccessfulAfterFailover; CustomInit(); } @@ -259,5 +279,43 @@ public InMageRcmFailbackReplicationDetails() [JsonProperty(PropertyName = "vmNics")] public IList VmNics { get; set; } + /// + /// Gets the last planned failover start time. + /// + [JsonProperty(PropertyName = "lastPlannedFailoverStartTime")] + public System.DateTime? LastPlannedFailoverStartTime { get; private set; } + + /// + /// Gets the last planned failover status. Possible values include: + /// 'Succeeded', 'Failed', 'Cancelled', 'Unknown' + /// + [JsonProperty(PropertyName = "lastPlannedFailoverStatus")] + public string LastPlannedFailoverStatus { get; private set; } + + /// + /// Gets or sets the discovered VM information. + /// + [JsonProperty(PropertyName = "discoveredVmDetails")] + public InMageRcmFailbackDiscoveredProtectedVmDetails DiscoveredVmDetails { get; set; } + + /// + /// Gets the policy Id used by the forward replication. + /// + [JsonProperty(PropertyName = "lastUsedPolicyId")] + public string LastUsedPolicyId { get; private set; } + + /// + /// Gets the policy friendly name used by the forward replication. + /// + [JsonProperty(PropertyName = "lastUsedPolicyFriendlyName")] + public string LastUsedPolicyFriendlyName { get; private set; } + + /// + /// Gets a value indicating whether agent registration was successful + /// after failover. + /// + [JsonProperty(PropertyName = "isAgentRegistrationSuccessfulAfterFailover")] + public bool? IsAgentRegistrationSuccessfulAfterFailover { get; private set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs index f7b9cb045ae8..db746eb89eb7 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs @@ -119,6 +119,9 @@ public InMageRcmReplicationDetails() /// The list of protected disks. /// A value indicating whether /// last agent upgrade was successful or not. + /// A value + /// indicating whether agent registration was successful after + /// failover. /// The mobility agent /// information. /// The last agent upgrade @@ -126,7 +129,9 @@ public InMageRcmReplicationDetails() /// The agent upgrade /// blocking error information. /// The network details. - public InMageRcmReplicationDetails(string internalIdentifier = default(string), string fabricDiscoveryMachineId = default(string), string multiVmGroupName = default(string), string discoveryType = default(string), string processServerId = default(string), int? processorCoreCount = default(int?), double? allocatedMemoryInMB = default(double?), string processServerName = default(string), string runAsAccountId = default(string), string osType = default(string), string firmwareType = default(string), string primaryNicIpAddress = default(string), string targetGeneration = default(string), string licenseType = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetLocation = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), string testNetworkId = default(string), string failoverRecoveryPointId = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), long? lastRpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string lastRecoveryPointId = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), string agentUpgradeState = default(string), string lastAgentUpgradeType = default(string), string agentUpgradeJobId = default(string), string agentUpgradeAttemptToVersion = default(string), IList protectedDisks = default(IList), string isLastUpgradeSuccessful = default(string), InMageRcmMobilityAgentDetails mobilityAgentDetails = default(InMageRcmMobilityAgentDetails), IList lastAgentUpgradeErrorDetails = default(IList), IList agentUpgradeBlockingErrorDetails = default(IList), IList vmNics = default(IList)) + /// The discovered VM + /// details. + public InMageRcmReplicationDetails(string internalIdentifier = default(string), string fabricDiscoveryMachineId = default(string), string multiVmGroupName = default(string), string discoveryType = default(string), string processServerId = default(string), int? processorCoreCount = default(int?), double? allocatedMemoryInMB = default(double?), string processServerName = default(string), string runAsAccountId = default(string), string osType = default(string), string firmwareType = default(string), string primaryNicIpAddress = default(string), string targetGeneration = default(string), string licenseType = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetLocation = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), string testNetworkId = default(string), string failoverRecoveryPointId = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), long? lastRpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string lastRecoveryPointId = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), string agentUpgradeState = default(string), string lastAgentUpgradeType = default(string), string agentUpgradeJobId = default(string), string agentUpgradeAttemptToVersion = default(string), IList protectedDisks = default(IList), string isLastUpgradeSuccessful = default(string), bool? isAgentRegistrationSuccessfulAfterFailover = default(bool?), InMageRcmMobilityAgentDetails mobilityAgentDetails = default(InMageRcmMobilityAgentDetails), IList lastAgentUpgradeErrorDetails = default(IList), IList agentUpgradeBlockingErrorDetails = default(IList), IList vmNics = default(IList), InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails = default(InMageRcmDiscoveredProtectedVmDetails)) { InternalIdentifier = internalIdentifier; FabricDiscoveryMachineId = fabricDiscoveryMachineId; @@ -173,10 +178,12 @@ public InMageRcmReplicationDetails() AgentUpgradeAttemptToVersion = agentUpgradeAttemptToVersion; ProtectedDisks = protectedDisks; IsLastUpgradeSuccessful = isLastUpgradeSuccessful; + IsAgentRegistrationSuccessfulAfterFailover = isAgentRegistrationSuccessfulAfterFailover; MobilityAgentDetails = mobilityAgentDetails; LastAgentUpgradeErrorDetails = lastAgentUpgradeErrorDetails; AgentUpgradeBlockingErrorDetails = agentUpgradeBlockingErrorDetails; VmNics = vmNics; + DiscoveredVmDetails = discoveredVmDetails; CustomInit(); } @@ -468,6 +475,13 @@ public InMageRcmReplicationDetails() [JsonProperty(PropertyName = "isLastUpgradeSuccessful")] public string IsLastUpgradeSuccessful { get; private set; } + /// + /// Gets a value indicating whether agent registration was successful + /// after failover. + /// + [JsonProperty(PropertyName = "isAgentRegistrationSuccessfulAfterFailover")] + public bool? IsAgentRegistrationSuccessfulAfterFailover { get; private set; } + /// /// Gets or sets the mobility agent information. /// @@ -492,5 +506,11 @@ public InMageRcmReplicationDetails() [JsonProperty(PropertyName = "vmNics")] public IList VmNics { get; set; } + /// + /// Gets or sets the discovered VM details. + /// + [JsonProperty(PropertyName = "discoveredVmDetails")] + public InMageRcmDiscoveredProtectedVmDetails DiscoveredVmDetails { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs new file mode 100644 index 000000000000..85eab6405031 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs @@ -0,0 +1,55 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm provider specific input to update appliance for replication + /// protected item. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmUpdateApplianceForReplicationProtectedItemInput : UpdateApplianceForReplicationProtectedItemProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// InMageRcmUpdateApplianceForReplicationProtectedItemInput class. + /// + public InMageRcmUpdateApplianceForReplicationProtectedItemInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmUpdateApplianceForReplicationProtectedItemInput class. + /// + /// The run as account Id. + public InMageRcmUpdateApplianceForReplicationProtectedItemInput(string runAsAccountId = default(string)) + { + RunAsAccountId = runAsAccountId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the run as account Id. + /// + [JsonProperty(PropertyName = "runAsAccountId")] + public string RunAsAccountId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverStatus.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverStatus.cs new file mode 100644 index 000000000000..ae42afc1aa89 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverStatus.cs @@ -0,0 +1,24 @@ +// +// 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.Models +{ + + /// + /// Defines values for PlannedFailoverStatus. + /// + public static class PlannedFailoverStatus + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelled = "Cancelled"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs index d110093db7ec..c34358095b79 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs @@ -36,6 +36,8 @@ public ProcessServerDetails() /// The process server Bios Id. /// The fabric object Id. /// The process server Fqdn. + /// The list of IP addresses for + /// communicating with the RCM component. /// The version. /// The last heartbeat received from the /// process server. @@ -70,16 +72,18 @@ public ProcessServerDetails() /// The health of the process server. Possible /// values include: 'None', 'Normal', 'Warning', 'Critical' /// The health errors. + /// The protected item count. /// The historic health of the process /// server based on the health in last 24 hours. Possible values /// include: 'None', 'Normal', 'Warning', 'Critical' - public ProcessServerDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), long? usedMemoryInBytes = default(long?), double? memoryUsagePercentage = default(double?), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), long? usedSpaceInBytes = default(long?), double? freeSpacePercentage = default(double?), long? throughputUploadPendingDataInBytes = default(long?), long? throughputInBytes = default(long?), double? processorUsagePercentage = default(double?), string throughputStatus = default(string), long? systemLoad = default(long?), string systemLoadStatus = default(string), string diskUsageStatus = default(string), string memoryUsageStatus = default(string), string processorUsageStatus = default(string), string health = default(string), IList healthErrors = default(IList), string historicHealth = default(string)) + public ProcessServerDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), IList ipAddresses = default(IList), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), long? usedMemoryInBytes = default(long?), double? memoryUsagePercentage = default(double?), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), long? usedSpaceInBytes = default(long?), double? freeSpacePercentage = default(double?), long? throughputUploadPendingDataInBytes = default(long?), long? throughputInBytes = default(long?), double? processorUsagePercentage = default(double?), string throughputStatus = default(string), long? systemLoad = default(long?), string systemLoadStatus = default(string), string diskUsageStatus = default(string), string memoryUsageStatus = default(string), string processorUsageStatus = default(string), string health = default(string), IList healthErrors = default(IList), int? protectedItemCount = default(int?), string historicHealth = default(string)) { Id = id; Name = name; BiosId = biosId; FabricObjectId = fabricObjectId; Fqdn = fqdn; + IpAddresses = ipAddresses; Version = version; LastHeartbeatUtc = lastHeartbeatUtc; TotalMemoryInBytes = totalMemoryInBytes; @@ -101,6 +105,7 @@ public ProcessServerDetails() ProcessorUsageStatus = processorUsageStatus; Health = health; HealthErrors = healthErrors; + ProtectedItemCount = protectedItemCount; HistoricHealth = historicHealth; CustomInit(); } @@ -140,6 +145,13 @@ public ProcessServerDetails() [JsonProperty(PropertyName = "fqdn")] public string Fqdn { get; private set; } + /// + /// Gets the list of IP addresses for communicating with the RCM + /// component. + /// + [JsonProperty(PropertyName = "ipAddresses")] + public IList IpAddresses { get; private set; } + /// /// Gets the version. /// @@ -272,6 +284,12 @@ public ProcessServerDetails() [JsonProperty(PropertyName = "healthErrors")] public IList HealthErrors { get; private set; } + /// + /// Gets the protected item count. + /// + [JsonProperty(PropertyName = "protectedItemCount")] + public int? ProtectedItemCount { get; private set; } + /// /// Gets the historic health of the process server based on the health /// in last 24 hours. Possible values include: 'None', 'Normal', diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs index c1aba2f7beac..3048174a57ea 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs @@ -34,16 +34,21 @@ public ProtectedItemsQueryParameter() /// The source fabric name /// filter. /// The recovery plan filter. + /// The source fabric location + /// filter. + /// The fabric object Id filter. /// The vCenter name filter. /// The replication provider type. /// Whether Multi VM group is /// auto created or specified by user. Possible values include: /// 'AutoCreated', 'UserSpecified' /// The process server Id filter. - public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string), string instanceType = default(string), string multiVmGroupCreateOption = default(string), string processServerId = default(string)) + public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string sourceFabricLocation = default(string), string fabricObjectId = default(string), string vCenterName = default(string), string instanceType = default(string), string multiVmGroupCreateOption = default(string), string processServerId = default(string)) { SourceFabricName = sourceFabricName; RecoveryPlanName = recoveryPlanName; + SourceFabricLocation = sourceFabricLocation; + FabricObjectId = fabricObjectId; VCenterName = vCenterName; InstanceType = instanceType; MultiVmGroupCreateOption = multiVmGroupCreateOption; @@ -68,6 +73,18 @@ public ProtectedItemsQueryParameter() [JsonProperty(PropertyName = "recoveryPlanName")] public string RecoveryPlanName { get; set; } + /// + /// Gets or sets the source fabric location filter. + /// + [JsonProperty(PropertyName = "sourceFabricLocation")] + public string SourceFabricLocation { get; set; } + + /// + /// Gets or sets the fabric object Id filter. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + /// /// Gets or sets the vCenter name filter. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs index b0d2a933ed5b..55b82b7dfcb5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs @@ -36,19 +36,22 @@ public RcmProxyDetails() /// The RCM proxy Bios Id. /// The fabric object Id. /// The RCM proxy Fqdn. + /// The client authentication + /// type. /// The version. /// The last heartbeat received from the /// RCM proxy. /// The health of the RCM proxy. Possible values /// include: 'None', 'Normal', 'Warning', 'Critical' /// The health errors. - public RcmProxyDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + public RcmProxyDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string clientAuthenticationType = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) { Id = id; Name = name; BiosId = biosId; FabricObjectId = fabricObjectId; Fqdn = fqdn; + ClientAuthenticationType = clientAuthenticationType; Version = version; LastHeartbeatUtc = lastHeartbeatUtc; Health = health; @@ -91,6 +94,12 @@ public RcmProxyDetails() [JsonProperty(PropertyName = "fqdn")] public string Fqdn { get; private set; } + /// + /// Gets the client authentication type. + /// + [JsonProperty(PropertyName = "clientAuthenticationType")] + public string ClientAuthenticationType { get; private set; } + /// /// Gets the version. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs index d0e4e9c4d43a..633aa36415cb 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs @@ -42,7 +42,13 @@ public ReprotectAgentDetails() /// The health of the reprotect agent. Possible /// values include: 'None', 'Normal', 'Warning', 'Critical' /// The health errors. - public ReprotectAgentDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + /// The protected item count. + /// The list of accessible + /// datastores fetched from discovery. + /// The Vcenter Id. + /// The last time when SDS information + /// discovered in SRS. + public ReprotectAgentDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList), int? protectedItemCount = default(int?), IList accessibleDatastores = default(IList), string vcenterId = default(string), System.DateTime? lastDiscoveryInUtc = default(System.DateTime?)) { Id = id; Name = name; @@ -53,6 +59,10 @@ public ReprotectAgentDetails() LastHeartbeatUtc = lastHeartbeatUtc; Health = health; HealthErrors = healthErrors; + ProtectedItemCount = protectedItemCount; + AccessibleDatastores = accessibleDatastores; + VcenterId = vcenterId; + LastDiscoveryInUtc = lastDiscoveryInUtc; CustomInit(); } @@ -116,5 +126,29 @@ public ReprotectAgentDetails() [JsonProperty(PropertyName = "healthErrors")] public IList HealthErrors { get; private set; } + /// + /// Gets the protected item count. + /// + [JsonProperty(PropertyName = "protectedItemCount")] + public int? ProtectedItemCount { get; private set; } + + /// + /// Gets the list of accessible datastores fetched from discovery. + /// + [JsonProperty(PropertyName = "accessibleDatastores")] + public IList AccessibleDatastores { get; private set; } + + /// + /// Gets the Vcenter Id. + /// + [JsonProperty(PropertyName = "vcenterId")] + public string VcenterId { get; private set; } + + /// + /// Gets the last time when SDS information discovered in SRS. + /// + [JsonProperty(PropertyName = "lastDiscoveryInUtc")] + public System.DateTime? LastDiscoveryInUtc { get; private set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInput.cs new file mode 100644 index 000000000000..c2bff8d34daa --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInput.cs @@ -0,0 +1,73 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Update appliance for replication protected item input. + /// + public partial class UpdateApplianceForReplicationProtectedItemInput + { + /// + /// Initializes a new instance of the + /// UpdateApplianceForReplicationProtectedItemInput class. + /// + public UpdateApplianceForReplicationProtectedItemInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// UpdateApplianceForReplicationProtectedItemInput class. + /// + /// Update appliance replication protected + /// item properties. + public UpdateApplianceForReplicationProtectedItemInput(UpdateApplianceForReplicationProtectedItemInputProperties properties) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets update appliance replication protected item + /// properties. + /// + [JsonProperty(PropertyName = "properties")] + public UpdateApplianceForReplicationProtectedItemInputProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInputProperties.cs new file mode 100644 index 000000000000..7bb2562516aa --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemInputProperties.cs @@ -0,0 +1,81 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Update appliance for protected item input properties. + /// + public partial class UpdateApplianceForReplicationProtectedItemInputProperties + { + /// + /// Initializes a new instance of the + /// UpdateApplianceForReplicationProtectedItemInputProperties class. + /// + public UpdateApplianceForReplicationProtectedItemInputProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// UpdateApplianceForReplicationProtectedItemInputProperties class. + /// + /// The target appliance Id. + /// The provider specific input + /// to update replication protected item. + public UpdateApplianceForReplicationProtectedItemInputProperties(string targetApplianceId, UpdateApplianceForReplicationProtectedItemProviderSpecificInput providerSpecificDetails) + { + TargetApplianceId = targetApplianceId; + ProviderSpecificDetails = providerSpecificDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the target appliance Id. + /// + [JsonProperty(PropertyName = "targetApplianceId")] + public string TargetApplianceId { get; set; } + + /// + /// Gets or sets the provider specific input to update replication + /// protected item. + /// + [JsonProperty(PropertyName = "providerSpecificDetails")] + public UpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetails { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetApplianceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetApplianceId"); + } + if (ProviderSpecificDetails == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProviderSpecificDetails"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs new file mode 100644 index 000000000000..ef80e570c704 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs @@ -0,0 +1,37 @@ +// +// 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.Models +{ + using System.Linq; + + /// + /// Update replication protected item provider specific input. + /// + public partial class UpdateApplianceForReplicationProtectedItemProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// UpdateApplianceForReplicationProtectedItemProviderSpecificInput + /// class. + /// + public UpdateApplianceForReplicationProtectedItemProviderSpecificInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateDiskInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateDiskInput.cs new file mode 100644 index 000000000000..e6bf4f91e71d --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateDiskInput.cs @@ -0,0 +1,73 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Disk input for update. + /// + public partial class UpdateDiskInput + { + /// + /// Initializes a new instance of the UpdateDiskInput class. + /// + public UpdateDiskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UpdateDiskInput class. + /// + /// The disk Id. + /// The target disk name. + public UpdateDiskInput(string diskId, string targetDiskName = default(string)) + { + DiskId = diskId; + TargetDiskName = targetDiskName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the target disk name. + /// + [JsonProperty(PropertyName = "targetDiskName")] + public string TargetDiskName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs index 638aa32af69d..5fe20cb491ca 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs @@ -63,7 +63,8 @@ public VMNicDetails() /// A value indicating whether an /// existing NIC is allowed to be reused during test failover subject /// to availability. - public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMNetworkId = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoRecoveryNicName = default(string), string tfoRecoveryNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) + /// Target NIC name. + public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMNetworkId = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoRecoveryNicName = default(string), string tfoRecoveryNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?), string targetNicName = default(string)) { NicId = nicId; ReplicaNicId = replicaNicId; @@ -83,6 +84,7 @@ public VMNicDetails() TfoRecoveryNicName = tfoRecoveryNicName; TfoRecoveryNicResourceGroupName = tfoRecoveryNicResourceGroupName; TfoReuseExistingNic = tfoReuseExistingNic; + TargetNicName = targetNicName; CustomInit(); } @@ -207,5 +209,11 @@ public VMNicDetails() [JsonProperty(PropertyName = "tfoReuseExistingNic")] public bool? TfoReuseExistingNic { get; set; } + /// + /// Gets or sets target NIC name. + /// + [JsonProperty(PropertyName = "targetNicName")] + public string TargetNicName { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs index 1e31de9704e7..2d3922aa13a9 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs @@ -57,7 +57,8 @@ public VMNicInputDetails() /// A value indicating whether an /// existing NIC is allowed to be reused during test failover subject /// to availability. - public VMNicInputDetails(string nicId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoNicName = default(string), string tfoNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) + /// Target NIC name. + public VMNicInputDetails(string nicId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoNicName = default(string), string tfoNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?), string targetNicName = default(string)) { NicId = nicId; IpConfigs = ipConfigs; @@ -72,6 +73,7 @@ public VMNicInputDetails() TfoNicName = tfoNicName; TfoNicResourceGroupName = tfoNicResourceGroupName; TfoReuseExistingNic = tfoReuseExistingNic; + TargetNicName = targetNicName; CustomInit(); } @@ -166,5 +168,11 @@ public VMNicInputDetails() [JsonProperty(PropertyName = "tfoReuseExistingNic")] public bool? TfoReuseExistingNic { get; set; } + /// + /// Gets or sets target NIC name. + /// + [JsonProperty(PropertyName = "targetNicName")] + public string TargetNicName { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInput.cs index d0c534cf940b..2b6be921bfba 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInput.cs @@ -61,10 +61,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); } - if (Properties != null) - { - Properties.Validate(); - } } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInputProperties.cs index 6682a94a7eba..ce3dfec681af 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingCreationInputProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -34,9 +33,12 @@ public VaultSettingCreationInputProperties() /// /// The migration solution /// Id. - public VaultSettingCreationInputProperties(string migrationSolutionId) + /// VMware to Azure provider + /// type. + public VaultSettingCreationInputProperties(string migrationSolutionId = default(string), string vmwareToAzureProviderType = default(string)) { MigrationSolutionId = migrationSolutionId; + VmwareToAzureProviderType = vmwareToAzureProviderType; CustomInit(); } @@ -52,17 +54,10 @@ public VaultSettingCreationInputProperties(string migrationSolutionId) public string MigrationSolutionId { get; set; } /// - /// Validate the object. + /// Gets or sets vMware to Azure provider type. /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MigrationSolutionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId"); - } - } + [JsonProperty(PropertyName = "vmwareToAzureProviderType")] + public string VmwareToAzureProviderType { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingProperties.cs index 582df8b28c0d..80d32e28b9ff 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VaultSettingProperties.cs @@ -31,9 +31,12 @@ public VaultSettingProperties() /// /// The migration solution ARM /// Id. - public VaultSettingProperties(string migrationSolutionId = default(string)) + /// VMware to Azure provider + /// type. + public VaultSettingProperties(string migrationSolutionId = default(string), string vmwareToAzureProviderType = default(string)) { MigrationSolutionId = migrationSolutionId; + VmwareToAzureProviderType = vmwareToAzureProviderType; CustomInit(); } @@ -48,5 +51,11 @@ public VaultSettingProperties() [JsonProperty(PropertyName = "migrationSolutionId")] public string MigrationSolutionId { get; set; } + /// + /// Gets or sets vMware to Azure provider type. + /// + [JsonProperty(PropertyName = "vmwareToAzureProviderType")] + public string VmwareToAzureProviderType { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs index 8ddcf039c7cc..c2c1effa4bc7 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs @@ -972,6 +972,37 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateApplianceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUpdateApplianceWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Update the mobility service on a protected item. /// @@ -4863,6 +4894,242 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return _result; } + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateApplianceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ResourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (fabricName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); + } + if (protectionContainerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); + } + if (replicatedProtectedItemName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); + } + if (applianceUpdateInput == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "applianceUpdateInput"); + } + if (applianceUpdateInput != null) + { + applianceUpdateInput.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("applianceUpdateInput", applianceUpdateInput); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateAppliance", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateAppliance").ToString(); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); + _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); + _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(applianceUpdateInput != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applianceUpdateInput, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Update the mobility service on a protected item. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs index 8df0e6575051..efeeae6e9a8b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs @@ -1038,6 +1038,64 @@ public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtec } } + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + public static ReplicationProtectedItem UpdateAppliance(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) + { + return operations.UpdateApplianceAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput).GetAwaiter().GetResult(); + } + + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateApplianceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateApplianceWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Update the mobility service on a protected item. /// @@ -2062,6 +2120,64 @@ public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationP } } + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + public static ReplicationProtectedItem BeginUpdateAppliance(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput) + { + return operations.BeginUpdateApplianceAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput).GetAwaiter().GetResult(); + } + + /// + /// Updates appliance for replication protected Item. + /// + /// + /// The operation to update appliance of an ASR replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Appliance update protection input. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateApplianceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemInput applianceUpdateInput, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateApplianceWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Update the mobility service on a protected item. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs index 5d7b364120f0..fc76be9472cd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs @@ -19,46 +19,35 @@ public static IEnumerable> ApiInfo_SiteRecoveryMan { return new Tuple[] { - new Tuple("Compute", "ReplicationEligibilityResults", "2021-02-10"), - new Tuple("RecoveryServices", "MigrationRecoveryPoints", "2021-02-10"), - new Tuple("RecoveryServices", "Operations", "2021-02-10"), - new Tuple("RecoveryServices", "RecoveryPoints", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationAlertSettings", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationEvents", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationFabrics", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationJobs", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationMigrationItems", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationNetworks", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationPolicies", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationProtectableItems", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationProtectedItems", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationProtectionIntents", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationVaultHealth", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationVaultSetting", "2021-02-10"), - new Tuple("RecoveryServices", "ReplicationvCenters", "2021-02-10"), - new Tuple("RecoveryServices", "SupportedOperatingSystems", "2021-02-10"), - new Tuple("RecoveryServices", "TargetComputeSizes", "2021-02-10"), + new Tuple("Compute", "ReplicationEligibilityResults", "2021-06-01"), + new Tuple("RecoveryServices", "MigrationRecoveryPoints", "2021-06-01"), + new Tuple("RecoveryServices", "Operations", "2021-06-01"), + new Tuple("RecoveryServices", "RecoveryPoints", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationAlertSettings", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationEvents", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationFabrics", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationJobs", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationMigrationItems", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationNetworks", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationPolicies", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationProtectableItems", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationProtectedItems", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationProtectionIntents", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationVaultHealth", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationVaultSetting", "2021-06-01"), + new Tuple("RecoveryServices", "ReplicationvCenters", "2021-06-01"), + new Tuple("RecoveryServices", "SupportedOperatingSystems", "2021-06-01"), + new Tuple("RecoveryServices", "TargetComputeSizes", "2021-06-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - 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=v2 --reflect-api-versions --csharp-sdks-folder=D:\\repos\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "77df9507f58fcc7a9a4eb6c86d748535f74ca08e"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs index 763b72909d43..4eceaebde18a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs @@ -486,7 +486,7 @@ private void Initialize() ReplicationVaultHealth = new ReplicationVaultHealthOperations(this); ReplicationVaultSetting = new ReplicationVaultSettingOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-02-10"; + ApiVersion = "2021-06-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -607,6 +607,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType"));