Skip to content

Commit 90495c5

Browse files
krivi37Stefan Krivokapicisra-fel
authored
Add managed instance DTC cmdlets (#20805)
* Added SDK updates and DTC cmdlets * Removed debugger line * Added tests and fixed input object parameter set * Updated help and tests * Updated help files * Fixed help files * Removed excess positions * Added a safeguard for the DTC model and modified the comment to better explain how the host name and dns suffix are related * Adressing comments --------- Co-authored-by: Stefan Krivokapic <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent eaa5066 commit 90495c5

28 files changed

+12749
-5
lines changed
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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.Sql
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+
/// ManagedInstanceDtcsOperations operations.
23+
/// </summary>
24+
public partial interface IManagedInstanceDtcsOperations
25+
{
26+
/// <summary>
27+
/// Gets a list of managed instance DTC settings.
28+
/// </summary>
29+
/// <param name='resourceGroupName'>
30+
/// The name of the resource group that contains the resource. You can
31+
/// obtain this value from the Azure Resource Manager API or the
32+
/// portal.
33+
/// </param>
34+
/// <param name='managedInstanceName'>
35+
/// The name of the managed instance.
36+
/// </param>
37+
/// <param name='customHeaders'>
38+
/// The headers that will be added to request.
39+
/// </param>
40+
/// <param name='cancellationToken'>
41+
/// The cancellation token.
42+
/// </param>
43+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
44+
/// Thrown when the operation returned an invalid status code
45+
/// </exception>
46+
/// <exception cref="Microsoft.Rest.SerializationException">
47+
/// Thrown when unable to deserialize the response
48+
/// </exception>
49+
/// <exception cref="Microsoft.Rest.ValidationException">
50+
/// Thrown when a required parameter is null
51+
/// </exception>
52+
Task<AzureOperationResponse<IPage<ManagedInstanceDtc>>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
53+
/// <summary>
54+
/// Gets managed instance DTC settings.
55+
/// </summary>
56+
/// <param name='resourceGroupName'>
57+
/// The name of the resource group that contains the resource. You can
58+
/// obtain this value from the Azure Resource Manager API or the
59+
/// portal.
60+
/// </param>
61+
/// <param name='managedInstanceName'>
62+
/// The name of the managed instance.
63+
/// </param>
64+
/// <param name='customHeaders'>
65+
/// The headers that will be added to request.
66+
/// </param>
67+
/// <param name='cancellationToken'>
68+
/// The cancellation token.
69+
/// </param>
70+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
71+
/// Thrown when the operation returned an invalid status code
72+
/// </exception>
73+
/// <exception cref="Microsoft.Rest.SerializationException">
74+
/// Thrown when unable to deserialize the response
75+
/// </exception>
76+
/// <exception cref="Microsoft.Rest.ValidationException">
77+
/// Thrown when a required parameter is null
78+
/// </exception>
79+
Task<AzureOperationResponse<ManagedInstanceDtc>> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
80+
/// <summary>
81+
/// Updates managed instance DTC settings.
82+
/// </summary>
83+
/// <param name='resourceGroupName'>
84+
/// The name of the resource group that contains the resource. You can
85+
/// obtain this value from the Azure Resource Manager API or the
86+
/// portal.
87+
/// </param>
88+
/// <param name='managedInstanceName'>
89+
/// The name of the managed instance.
90+
/// </param>
91+
/// <param name='parameters'>
92+
/// Managed instance DTC settings.
93+
/// </param>
94+
/// <param name='customHeaders'>
95+
/// The headers that will be added to request.
96+
/// </param>
97+
/// <param name='cancellationToken'>
98+
/// The cancellation token.
99+
/// </param>
100+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
101+
/// Thrown when the operation returned an invalid status code
102+
/// </exception>
103+
/// <exception cref="Microsoft.Rest.SerializationException">
104+
/// Thrown when unable to deserialize the response
105+
/// </exception>
106+
/// <exception cref="Microsoft.Rest.ValidationException">
107+
/// Thrown when a required parameter is null
108+
/// </exception>
109+
Task<AzureOperationResponse<ManagedInstanceDtc>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceDtc parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
110+
/// <summary>
111+
/// Updates managed instance DTC settings.
112+
/// </summary>
113+
/// <param name='resourceGroupName'>
114+
/// The name of the resource group that contains the resource. You can
115+
/// obtain this value from the Azure Resource Manager API or the
116+
/// portal.
117+
/// </param>
118+
/// <param name='managedInstanceName'>
119+
/// The name of the managed instance.
120+
/// </param>
121+
/// <param name='parameters'>
122+
/// Managed instance DTC settings.
123+
/// </param>
124+
/// <param name='customHeaders'>
125+
/// The headers that will be added to request.
126+
/// </param>
127+
/// <param name='cancellationToken'>
128+
/// The cancellation token.
129+
/// </param>
130+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
131+
/// Thrown when the operation returned an invalid status code
132+
/// </exception>
133+
/// <exception cref="Microsoft.Rest.SerializationException">
134+
/// Thrown when unable to deserialize the response
135+
/// </exception>
136+
/// <exception cref="Microsoft.Rest.ValidationException">
137+
/// Thrown when a required parameter is null
138+
/// </exception>
139+
Task<AzureOperationResponse<ManagedInstanceDtc>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceDtc parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
140+
/// <summary>
141+
/// Gets a list of managed instance DTC settings.
142+
/// </summary>
143+
/// <param name='nextPageLink'>
144+
/// The NextLink from the previous successful call to List operation.
145+
/// </param>
146+
/// <param name='customHeaders'>
147+
/// The headers that will be added to request.
148+
/// </param>
149+
/// <param name='cancellationToken'>
150+
/// The cancellation token.
151+
/// </param>
152+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
153+
/// Thrown when the operation returned an invalid status code
154+
/// </exception>
155+
/// <exception cref="Microsoft.Rest.SerializationException">
156+
/// Thrown when unable to deserialize the response
157+
/// </exception>
158+
/// <exception cref="Microsoft.Rest.ValidationException">
159+
/// Thrown when a required parameter is null
160+
/// </exception>
161+
Task<AzureOperationResponse<IPage<ManagedInstanceDtc>>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
162+
}
163+
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ public partial interface ISqlManagementClient : System.IDisposable
473473
/// </summary>
474474
IManagedServerDnsAliasesOperations ManagedServerDnsAliases { get; }
475475

476+
/// <summary>
477+
/// Gets the IManagedInstanceDtcsOperations.
478+
/// </summary>
479+
IManagedInstanceDtcsOperations ManagedInstanceDtcs { get; }
480+
476481
/// <summary>
477482
/// Gets the IManagedDatabasesOperations.
478483
/// </summary>

0 commit comments

Comments
 (0)