Skip to content

Commit 89a77d4

Browse files
krivi37Stefan Krivokapic
andauthored
Add SecondaryType parameter to commands related to Instance Failover Groups (Azure#20996)
* Generated sdk * Added new parameter and updated tests * Updated changelog --------- Co-authored-by: Stefan Krivokapic <[email protected]>
1 parent da2d6a3 commit 89a77d4

29 files changed

+6177
-2360
lines changed

src/Sql/Sql.Sdk/Generated/IInstanceFailoverGroupsOperations.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.Sql
2424
public partial interface IInstanceFailoverGroupsOperations
2525
{
2626
/// <summary>
27-
/// Gets a failover group.
27+
/// Lists the failover groups in a location.
2828
/// </summary>
2929
/// <param name='resourceGroupName'>
3030
/// The name of the resource group that contains the resource. You can
@@ -34,9 +34,6 @@ public partial interface IInstanceFailoverGroupsOperations
3434
/// <param name='locationName'>
3535
/// The name of the region where the resource is located.
3636
/// </param>
37-
/// <param name='failoverGroupName'>
38-
/// The name of the failover group.
39-
/// </param>
4037
/// <param name='customHeaders'>
4138
/// The headers that will be added to request.
4239
/// </param>
@@ -52,9 +49,9 @@ public partial interface IInstanceFailoverGroupsOperations
5249
/// <exception cref="Microsoft.Rest.ValidationException">
5350
/// Thrown when a required parameter is null
5451
/// </exception>
55-
Task<AzureOperationResponse<InstanceFailoverGroup>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
52+
Task<AzureOperationResponse<IPage<InstanceFailoverGroup>>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
5653
/// <summary>
57-
/// Creates or updates a failover group.
54+
/// Gets a failover group.
5855
/// </summary>
5956
/// <param name='resourceGroupName'>
6057
/// The name of the resource group that contains the resource. You can
@@ -67,9 +64,6 @@ public partial interface IInstanceFailoverGroupsOperations
6764
/// <param name='failoverGroupName'>
6865
/// The name of the failover group.
6966
/// </param>
70-
/// <param name='parameters'>
71-
/// The failover group parameters.
72-
/// </param>
7367
/// <param name='customHeaders'>
7468
/// The headers that will be added to request.
7569
/// </param>
@@ -85,9 +79,9 @@ public partial interface IInstanceFailoverGroupsOperations
8579
/// <exception cref="Microsoft.Rest.ValidationException">
8680
/// Thrown when a required parameter is null
8781
/// </exception>
88-
Task<AzureOperationResponse<InstanceFailoverGroup>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
82+
Task<AzureOperationResponse<InstanceFailoverGroup>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
8983
/// <summary>
90-
/// Deletes a failover group.
84+
/// Creates or updates a failover group.
9185
/// </summary>
9286
/// <param name='resourceGroupName'>
9387
/// The name of the resource group that contains the resource. You can
@@ -100,6 +94,9 @@ public partial interface IInstanceFailoverGroupsOperations
10094
/// <param name='failoverGroupName'>
10195
/// The name of the failover group.
10296
/// </param>
97+
/// <param name='parameters'>
98+
/// The failover group parameters.
99+
/// </param>
103100
/// <param name='customHeaders'>
104101
/// The headers that will be added to request.
105102
/// </param>
@@ -109,12 +106,15 @@ public partial interface IInstanceFailoverGroupsOperations
109106
/// <exception cref="Microsoft.Rest.Azure.CloudException">
110107
/// Thrown when the operation returned an invalid status code
111108
/// </exception>
109+
/// <exception cref="Microsoft.Rest.SerializationException">
110+
/// Thrown when unable to deserialize the response
111+
/// </exception>
112112
/// <exception cref="Microsoft.Rest.ValidationException">
113113
/// Thrown when a required parameter is null
114114
/// </exception>
115-
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
115+
Task<AzureOperationResponse<InstanceFailoverGroup>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
116116
/// <summary>
117-
/// Lists the failover groups in a location.
117+
/// Deletes a failover group.
118118
/// </summary>
119119
/// <param name='resourceGroupName'>
120120
/// The name of the resource group that contains the resource. You can
@@ -124,6 +124,9 @@ public partial interface IInstanceFailoverGroupsOperations
124124
/// <param name='locationName'>
125125
/// The name of the region where the resource is located.
126126
/// </param>
127+
/// <param name='failoverGroupName'>
128+
/// The name of the failover group.
129+
/// </param>
127130
/// <param name='customHeaders'>
128131
/// The headers that will be added to request.
129132
/// </param>
@@ -133,13 +136,10 @@ public partial interface IInstanceFailoverGroupsOperations
133136
/// <exception cref="Microsoft.Rest.Azure.CloudException">
134137
/// Thrown when the operation returned an invalid status code
135138
/// </exception>
136-
/// <exception cref="Microsoft.Rest.SerializationException">
137-
/// Thrown when unable to deserialize the response
138-
/// </exception>
139139
/// <exception cref="Microsoft.Rest.ValidationException">
140140
/// Thrown when a required parameter is null
141141
/// </exception>
142-
Task<AzureOperationResponse<IPage<InstanceFailoverGroup>>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
142+
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
143143
/// <summary>
144144
/// Fails over from the current primary managed instance to this
145145
/// managed instance.

src/Sql/Sql.Sdk/Generated/ISqlManagementClient.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ public partial interface ISqlManagementClient : System.IDisposable
153153
/// </summary>
154154
IFailoverGroupsOperations FailoverGroups { get; }
155155

156-
/// <summary>
157-
/// Gets the IInstanceFailoverGroupsOperations.
158-
/// </summary>
159-
IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; }
160-
161156
/// <summary>
162157
/// Gets the IInstancePoolsOperations.
163158
/// </summary>
@@ -488,5 +483,10 @@ public partial interface ISqlManagementClient : System.IDisposable
488483
/// </summary>
489484
IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; }
490485

486+
/// <summary>
487+
/// Gets the IInstanceFailoverGroupsOperations.
488+
/// </summary>
489+
IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; }
490+
491491
}
492492
}

0 commit comments

Comments
 (0)