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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static RecoveryServicesManagementClient GetRecoveryServicesManagementClie
}

return new RecoveryServicesManagementClient(
"Microsoft.SiteRecovery",
(SubscriptionCloudCredentials)environment.Credentials,
environment.BaseUri).WithHandler(HttpMockServer.CreateInstance());
}
Expand Down Expand Up @@ -101,9 +102,9 @@ public static SiteRecoveryManagementClient GetSiteRecoveryManagementClient(this
}

return new SiteRecoveryManagementClient(
SiteRecoveryTestsBase.MyCloudService,
SiteRecoveryTestsBase.MyVaultName,
SiteRecoveryTestsBase.MyResourceGroupName,
"Microsoft.SiteRecovery",
(SubscriptionCloudCredentials)environment.Credentials,
environment.BaseUri).WithHandler(HttpMockServer.CreateInstance());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ int LongRunningOperationRetryTimeout
get; set;
}

string ResourceNamespace
{
get; set;
}

/// <summary>
/// Definition of cloud service operations for the Recovery services
/// extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ Uri BaseUri
get;
}

string CloudServiceName
{
get; set;
}

/// <summary>
/// Gets subscription credentials which uniquely identify Microsoft
/// Azure subscription. The subscription ID forms part of the URI for
Expand Down Expand Up @@ -85,6 +80,11 @@ string ResourceName
get; set;
}

string ResourceNamespace
{
get; set;
}

/// <summary>
/// Definition for Job Operations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public async Task<LongRunningOperationResponse> BeginRestartingAsync(string jobI
url = url + "/resourceGroups/";
url = url + Uri.EscapeDataString(this.Client.ResourceGroupName);
url = url + "/providers/";
url = url + "Microsoft.SiteRecovery";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/";
url = url + "SiteRecoveryVault";
url = url + "/";
Expand Down Expand Up @@ -272,7 +272,7 @@ public async Task<LongRunningOperationResponse> BeginResumingAsync(string jobId,
url = url + "/resourceGroups/";
url = url + Uri.EscapeDataString(this.Client.ResourceGroupName);
url = url + "/providers/";
url = url + "Microsoft.SiteRecovery";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/";
url = url + "SiteRecoveryVault";
url = url + "/";
Expand Down Expand Up @@ -450,7 +450,7 @@ public async Task<JobResponse> GetAsync(string jobId, CustomRequestHeaders custo
url = url + "/resourceGroups/";
url = url + Uri.EscapeDataString(this.Client.ResourceGroupName);
url = url + "/providers/";
url = url + "Microsoft.SiteRecovery";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/";
url = url + "SiteRecoveryVault";
url = url + "/";
Expand Down Expand Up @@ -2147,7 +2147,7 @@ public async Task<JobListResponse> ListAsync(JobQueryParameter parameters, Custo
url = url + "/resourceGroups/";
url = url + Uri.EscapeDataString(this.Client.ResourceGroupName);
url = url + "/providers/";
url = url + "Microsoft.SiteRecovery";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/";
url = url + "SiteRecoveryVault";
url = url + "/";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;
using Microsoft.Azure.Management.SiteRecovery.Models;

namespace Microsoft.Azure.Management.SiteRecovery.Models
{
/// <summary>
/// The HyperV Azure failback input.
/// </summary>
public partial class AzureFailbackInput : FailoverReplicationProviderSpecificInput
{
private bool _createRecoveryVmIfDoesntExist;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public bool CreateRecoveryVmIfDoesntExist
{
get { return this._createRecoveryVmIfDoesntExist; }
set { this._createRecoveryVmIfDoesntExist = value; }
}

private bool _skipDataSync;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public bool SkipDataSync
{
get { return this._skipDataSync; }
set { this._skipDataSync = value; }
}

/// <summary>
/// Initializes a new instance of the AzureFailbackInput class.
/// </summary>
public AzureFailbackInput()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;
using Microsoft.Azure.Management.SiteRecovery.Models;

namespace Microsoft.Azure.Management.SiteRecovery.Models
{
/// <summary>
/// The HyperV Azure failover input.
/// </summary>
public partial class AzureFailoverInput : FailoverReplicationProviderSpecificInput
{
private string _primaryKekCertificatePfx;

/// <summary>
/// Optional.
/// </summary>
public string PrimaryKekCertificatePfx
{
get { return this._primaryKekCertificatePfx; }
set { this._primaryKekCertificatePfx = value; }
}

private string _secondaryKekCertificatePfx;

/// <summary>
/// Optional.
/// </summary>
public string SecondaryKekCertificatePfx
{
get { return this._secondaryKekCertificatePfx; }
set { this._secondaryKekCertificatePfx = value; }
}

private string _vaultLocation;

/// <summary>
/// Optional.
/// </summary>
public string VaultLocation
{
get { return this._vaultLocation; }
set { this._vaultLocation = value; }
}

/// <summary>
/// Initializes a new instance of the AzureFailoverInput class.
/// </summary>
public AzureFailoverInput()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;
using Microsoft.Azure.Management.SiteRecovery.Models;

namespace Microsoft.Azure.Management.SiteRecovery.Models
{
/// <summary>
/// The HyperV Azure reprotect input.
/// </summary>
public partial class AzureReprotectInput : FailoverReplicationProviderSpecificInput
{
private string _hvHostVmId;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string HvHostVmId
{
get { return this._hvHostVmId; }
set { this._hvHostVmId = value; }
}

private string _oSType;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string OSType
{
get { return this._oSType; }
set { this._oSType = value; }
}

private string _storageAccountName;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string StorageAccountName
{
get { return this._storageAccountName; }
set { this._storageAccountName = value; }
}

private string _storageAccountSubscriptionId;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string StorageAccountSubscriptionId
{
get { return this._storageAccountSubscriptionId; }
set { this._storageAccountSubscriptionId = value; }
}

private string _vHDId;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string VHDId
{
get { return this._vHDId; }
set { this._vHDId = value; }
}

private string _vmName;

/// <summary>
/// Optional. Secondary key encryption key certificate.
/// </summary>
public string VmName
{
get { return this._vmName; }
set { this._vmName = value; }
}

/// <summary>
/// Initializes a new instance of the AzureReprotectInput class.
/// </summary>
public AzureReprotectInput()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

using System;
using System.Linq;
using Microsoft.Azure.Management.SiteRecovery.Models;

namespace Microsoft.Azure.Management.SiteRecovery.Models
{
Expand Down Expand Up @@ -62,12 +63,12 @@ public string RecoveryProtectionContainerId
set { this._recoveryProtectionContainerId = value; }
}

private string _replicationProviderSettings;
private ProtectionProfileProviderSpecificInput _replicationProviderSettings;

/// <summary>
/// Optional.
/// Optional. the replication provider settings.
/// </summary>
public string ReplicationProviderSettings
public ProtectionProfileProviderSpecificInput ReplicationProviderSettings
{
get { return this._replicationProviderSettings; }
set { this._replicationProviderSettings = value; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;

namespace Microsoft.Azure.Management.SiteRecovery.Models
{
/// <summary>
/// Create profile provider specific input.
/// </summary>
public partial class FailoverReplicationProviderSpecificInput
{
/// <summary>
/// Initializes a new instance of the
/// FailoverReplicationProviderSpecificInput class.
/// </summary>
public FailoverReplicationProviderSpecificInput()
{
}
}
}
Loading