Skip to content

Commit f8a08fa

Browse files
committed
.NET SDK Resource Provider:'RecoveryServices.SiteRecovery'
REST Spec PR 'Azure/azure-rest-api-specs#6006' REST Spec PR Author 'hitesh715' REST Spec PR Last commit
1 parent fe95c39 commit f8a08fa

11 files changed

+1434
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// ReplicationVaultSettingOperations operations.
23+
/// </summary>
24+
public partial interface IReplicationVaultSettingOperations
25+
{
26+
/// <summary>
27+
/// Gets the list of vault setting.
28+
/// </summary>
29+
/// <remarks>
30+
/// Gets the list of vault setting. This includes the Migration Hub
31+
/// connection settings.
32+
/// </remarks>
33+
/// <param name='customHeaders'>
34+
/// The headers that will be added to request.
35+
/// </param>
36+
/// <param name='cancellationToken'>
37+
/// The cancellation token.
38+
/// </param>
39+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
40+
/// Thrown when the operation returned an invalid status code
41+
/// </exception>
42+
/// <exception cref="Microsoft.Rest.SerializationException">
43+
/// Thrown when unable to deserialize the response
44+
/// </exception>
45+
/// <exception cref="Microsoft.Rest.ValidationException">
46+
/// Thrown when a required parameter is null
47+
/// </exception>
48+
Task<AzureOperationResponse<IPage<VaultSetting>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
49+
/// <summary>
50+
/// Gets the vault setting.
51+
/// </summary>
52+
/// <remarks>
53+
/// Gets the vault setting. This includes the Migration Hub connection
54+
/// settings.
55+
/// </remarks>
56+
/// <param name='vaultSettingName'>
57+
/// Vault setting name.
58+
/// </param>
59+
/// <param name='customHeaders'>
60+
/// The headers that will be added to request.
61+
/// </param>
62+
/// <param name='cancellationToken'>
63+
/// The cancellation token.
64+
/// </param>
65+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
66+
/// Thrown when the operation returned an invalid status code
67+
/// </exception>
68+
/// <exception cref="Microsoft.Rest.SerializationException">
69+
/// Thrown when unable to deserialize the response
70+
/// </exception>
71+
/// <exception cref="Microsoft.Rest.ValidationException">
72+
/// Thrown when a required parameter is null
73+
/// </exception>
74+
Task<AzureOperationResponse<VaultSetting>> GetWithHttpMessagesAsync(string vaultSettingName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
75+
/// <summary>
76+
/// Updates vault setting. A vault setting object is a singleton per
77+
/// vault and it is always present by default.
78+
/// </summary>
79+
/// <remarks>
80+
/// The operation to configure vault setting.
81+
/// </remarks>
82+
/// <param name='vaultSettingName'>
83+
/// Vault setting name.
84+
/// </param>
85+
/// <param name='input'>
86+
/// Vault setting creation input.
87+
/// </param>
88+
/// <param name='customHeaders'>
89+
/// The headers that will be added to request.
90+
/// </param>
91+
/// <param name='cancellationToken'>
92+
/// The cancellation token.
93+
/// </param>
94+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
95+
/// Thrown when the operation returned an invalid status code
96+
/// </exception>
97+
/// <exception cref="Microsoft.Rest.SerializationException">
98+
/// Thrown when unable to deserialize the response
99+
/// </exception>
100+
/// <exception cref="Microsoft.Rest.ValidationException">
101+
/// Thrown when a required parameter is null
102+
/// </exception>
103+
Task<AzureOperationResponse<VaultSetting>> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
104+
/// <summary>
105+
/// Gets the list of vault setting.
106+
/// </summary>
107+
/// <remarks>
108+
/// Gets the list of vault setting. This includes the Migration Hub
109+
/// connection settings.
110+
/// </remarks>
111+
/// <param name='nextPageLink'>
112+
/// The NextLink from the previous successful call to List operation.
113+
/// </param>
114+
/// <param name='customHeaders'>
115+
/// The headers that will be added to request.
116+
/// </param>
117+
/// <param name='cancellationToken'>
118+
/// The cancellation token.
119+
/// </param>
120+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
121+
/// Thrown when the operation returned an invalid status code
122+
/// </exception>
123+
/// <exception cref="Microsoft.Rest.SerializationException">
124+
/// Thrown when unable to deserialize the response
125+
/// </exception>
126+
/// <exception cref="Microsoft.Rest.ValidationException">
127+
/// Thrown when a required parameter is null
128+
/// </exception>
129+
Task<AzureOperationResponse<IPage<VaultSetting>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
130+
}
131+
}

src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,10 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable
199199
/// </summary>
200200
IReplicationVaultHealthOperations ReplicationVaultHealth { get; }
201201

202+
/// <summary>
203+
/// Gets the IReplicationVaultSettingOperations.
204+
/// </summary>
205+
IReplicationVaultSettingOperations ReplicationVaultSetting { get; }
206+
202207
}
203208
}

src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ public VMwareV2FabricSpecificDetails()
3636
/// <param name="migrationSolutionId">The Migration solution ARM
3737
/// Id.</param>
3838
/// <param name="serviceEndpoint">The service endpoint.</param>
39-
public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string))
39+
/// <param name="serviceResourceId">The service resource Id.</param>
40+
public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string))
4041
{
4142
VmwareSiteId = vmwareSiteId;
4243
MigrationSolutionId = migrationSolutionId;
4344
ServiceEndpoint = serviceEndpoint;
45+
ServiceResourceId = serviceResourceId;
4446
CustomInit();
4547
}
4648

@@ -67,5 +69,11 @@ public VMwareV2FabricSpecificDetails()
6769
[JsonProperty(PropertyName = "serviceEndpoint")]
6870
public string ServiceEndpoint { get; private set; }
6971

72+
/// <summary>
73+
/// Gets the service resource Id.
74+
/// </summary>
75+
[JsonProperty(PropertyName = "serviceResourceId")]
76+
public string ServiceResourceId { get; private set; }
77+
7078
}
7179
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
12+
{
13+
using Newtonsoft.Json;
14+
using System.Linq;
15+
16+
/// <summary>
17+
/// Vault setting.
18+
/// </summary>
19+
public partial class VaultSetting : Resource
20+
{
21+
/// <summary>
22+
/// Initializes a new instance of the VaultSetting class.
23+
/// </summary>
24+
public VaultSetting()
25+
{
26+
CustomInit();
27+
}
28+
29+
/// <summary>
30+
/// Initializes a new instance of the VaultSetting class.
31+
/// </summary>
32+
/// <param name="id">Resource Id</param>
33+
/// <param name="name">Resource Name</param>
34+
/// <param name="type">Resource Type</param>
35+
/// <param name="location">Resource Location</param>
36+
/// <param name="properties">The vault setting properties.</param>
37+
public VaultSetting(string id = default(string), string name = default(string), string type = default(string), string location = default(string), VaultSettingProperties properties = default(VaultSettingProperties))
38+
: base(id, name, type, location)
39+
{
40+
Properties = properties;
41+
CustomInit();
42+
}
43+
44+
/// <summary>
45+
/// An initialization method that performs custom operations like setting defaults
46+
/// </summary>
47+
partial void CustomInit();
48+
49+
/// <summary>
50+
/// Gets or sets the vault setting properties.
51+
/// </summary>
52+
[JsonProperty(PropertyName = "properties")]
53+
public VaultSettingProperties Properties { get; set; }
54+
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
12+
{
13+
using Microsoft.Rest;
14+
using Newtonsoft.Json;
15+
using System.Linq;
16+
17+
/// <summary>
18+
/// Input to create vault setting.
19+
/// </summary>
20+
public partial class VaultSettingCreationInput
21+
{
22+
/// <summary>
23+
/// Initializes a new instance of the VaultSettingCreationInput class.
24+
/// </summary>
25+
public VaultSettingCreationInput()
26+
{
27+
CustomInit();
28+
}
29+
30+
/// <summary>
31+
/// Initializes a new instance of the VaultSettingCreationInput class.
32+
/// </summary>
33+
/// <param name="properties">Vault setting creation input
34+
/// properties.</param>
35+
public VaultSettingCreationInput(VaultSettingCreationInputProperties properties)
36+
{
37+
Properties = properties;
38+
CustomInit();
39+
}
40+
41+
/// <summary>
42+
/// An initialization method that performs custom operations like setting defaults
43+
/// </summary>
44+
partial void CustomInit();
45+
46+
/// <summary>
47+
/// Gets or sets vault setting creation input properties.
48+
/// </summary>
49+
[JsonProperty(PropertyName = "properties")]
50+
public VaultSettingCreationInputProperties Properties { get; set; }
51+
52+
/// <summary>
53+
/// Validate the object.
54+
/// </summary>
55+
/// <exception cref="ValidationException">
56+
/// Thrown if validation fails
57+
/// </exception>
58+
public virtual void Validate()
59+
{
60+
if (Properties == null)
61+
{
62+
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
63+
}
64+
if (Properties != null)
65+
{
66+
Properties.Validate();
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
12+
{
13+
using Microsoft.Rest;
14+
using Newtonsoft.Json;
15+
using System.Linq;
16+
17+
/// <summary>
18+
/// Input to create vault setting.
19+
/// </summary>
20+
public partial class VaultSettingCreationInputProperties
21+
{
22+
/// <summary>
23+
/// Initializes a new instance of the
24+
/// VaultSettingCreationInputProperties class.
25+
/// </summary>
26+
public VaultSettingCreationInputProperties()
27+
{
28+
CustomInit();
29+
}
30+
31+
/// <summary>
32+
/// Initializes a new instance of the
33+
/// VaultSettingCreationInputProperties class.
34+
/// </summary>
35+
/// <param name="migrationSolutionId">The migration solution
36+
/// Id.</param>
37+
public VaultSettingCreationInputProperties(string migrationSolutionId)
38+
{
39+
MigrationSolutionId = migrationSolutionId;
40+
CustomInit();
41+
}
42+
43+
/// <summary>
44+
/// An initialization method that performs custom operations like setting defaults
45+
/// </summary>
46+
partial void CustomInit();
47+
48+
/// <summary>
49+
/// Gets or sets the migration solution Id.
50+
/// </summary>
51+
[JsonProperty(PropertyName = "migrationSolutionId")]
52+
public string MigrationSolutionId { get; set; }
53+
54+
/// <summary>
55+
/// Validate the object.
56+
/// </summary>
57+
/// <exception cref="ValidationException">
58+
/// Thrown if validation fails
59+
/// </exception>
60+
public virtual void Validate()
61+
{
62+
if (MigrationSolutionId == null)
63+
{
64+
throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId");
65+
}
66+
}
67+
}
68+
}

0 commit comments

Comments
 (0)