Skip to content

Commit dd3e04a

Browse files
vaibhaotVaibhao Tatte
andauthored
First Commit (#21770)
Co-authored-by: Vaibhao Tatte <[email protected]>
1 parent 365fd61 commit dd3e04a

File tree

40 files changed

+14735
-27
lines changed

40 files changed

+14735
-27
lines changed
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
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+
/// ManagedLedgerDigestUploadsOperations operations.
23+
/// </summary>
24+
public partial interface IManagedLedgerDigestUploadsOperations
25+
{
26+
/// <summary>
27+
/// Gets all ledger digest upload settings on a database.
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='databaseName'>
38+
/// The name of the database.
39+
/// </param>
40+
/// <param name='customHeaders'>
41+
/// The headers that will be added to request.
42+
/// </param>
43+
/// <param name='cancellationToken'>
44+
/// The cancellation token.
45+
/// </param>
46+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
47+
/// Thrown when the operation returned an invalid status code
48+
/// </exception>
49+
/// <exception cref="Microsoft.Rest.SerializationException">
50+
/// Thrown when unable to deserialize the response
51+
/// </exception>
52+
/// <exception cref="Microsoft.Rest.ValidationException">
53+
/// Thrown when a required parameter is null
54+
/// </exception>
55+
Task<AzureOperationResponse<IPage<ManagedLedgerDigestUploads>>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
56+
/// <summary>
57+
/// Gets the current ledger digest upload configuration for a database.
58+
/// </summary>
59+
/// <param name='resourceGroupName'>
60+
/// The name of the resource group that contains the resource. You can
61+
/// obtain this value from the Azure Resource Manager API or the
62+
/// portal.
63+
/// </param>
64+
/// <param name='managedInstanceName'>
65+
/// The name of the managed instance.
66+
/// </param>
67+
/// <param name='databaseName'>
68+
/// The name of the database.
69+
/// </param>
70+
/// <param name='customHeaders'>
71+
/// The headers that will be added to request.
72+
/// </param>
73+
/// <param name='cancellationToken'>
74+
/// The cancellation token.
75+
/// </param>
76+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
77+
/// Thrown when the operation returned an invalid status code
78+
/// </exception>
79+
/// <exception cref="Microsoft.Rest.SerializationException">
80+
/// Thrown when unable to deserialize the response
81+
/// </exception>
82+
/// <exception cref="Microsoft.Rest.ValidationException">
83+
/// Thrown when a required parameter is null
84+
/// </exception>
85+
Task<AzureOperationResponse<ManagedLedgerDigestUploads>> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
86+
/// <summary>
87+
/// Enables upload ledger digests to an Azure Storage account or an
88+
/// Azure Confidential Ledger instance.
89+
/// </summary>
90+
/// <param name='resourceGroupName'>
91+
/// The name of the resource group that contains the resource. You can
92+
/// obtain this value from the Azure Resource Manager API or the
93+
/// portal.
94+
/// </param>
95+
/// <param name='managedInstanceName'>
96+
/// The name of the managed instance.
97+
/// </param>
98+
/// <param name='databaseName'>
99+
/// The name of the database.
100+
/// </param>
101+
/// <param name='parameters'>
102+
/// The Ledger Digest Storage Endpoint.
103+
/// </param>
104+
/// <param name='customHeaders'>
105+
/// The headers that will be added to request.
106+
/// </param>
107+
/// <param name='cancellationToken'>
108+
/// The cancellation token.
109+
/// </param>
110+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
111+
/// Thrown when the operation returned an invalid status code
112+
/// </exception>
113+
/// <exception cref="Microsoft.Rest.SerializationException">
114+
/// Thrown when unable to deserialize the response
115+
/// </exception>
116+
/// <exception cref="Microsoft.Rest.ValidationException">
117+
/// Thrown when a required parameter is null
118+
/// </exception>
119+
Task<AzureOperationResponse<ManagedLedgerDigestUploads>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploads parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
120+
/// <summary>
121+
/// Disables uploading ledger digests to an Azure Storage account or an
122+
/// Azure Confidential Ledger instance.
123+
/// </summary>
124+
/// <param name='resourceGroupName'>
125+
/// The name of the resource group that contains the resource. You can
126+
/// obtain this value from the Azure Resource Manager API or the
127+
/// portal.
128+
/// </param>
129+
/// <param name='managedInstanceName'>
130+
/// The name of the managed instance.
131+
/// </param>
132+
/// <param name='databaseName'>
133+
/// The name of the database.
134+
/// </param>
135+
/// <param name='customHeaders'>
136+
/// The headers that will be added to request.
137+
/// </param>
138+
/// <param name='cancellationToken'>
139+
/// The cancellation token.
140+
/// </param>
141+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
142+
/// Thrown when the operation returned an invalid status code
143+
/// </exception>
144+
/// <exception cref="Microsoft.Rest.SerializationException">
145+
/// Thrown when unable to deserialize the response
146+
/// </exception>
147+
/// <exception cref="Microsoft.Rest.ValidationException">
148+
/// Thrown when a required parameter is null
149+
/// </exception>
150+
Task<AzureOperationResponse<ManagedLedgerDigestUploads>> DisableWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
151+
/// <summary>
152+
/// Enables upload ledger digests to an Azure Storage account or an
153+
/// Azure Confidential Ledger instance.
154+
/// </summary>
155+
/// <param name='resourceGroupName'>
156+
/// The name of the resource group that contains the resource. You can
157+
/// obtain this value from the Azure Resource Manager API or the
158+
/// portal.
159+
/// </param>
160+
/// <param name='managedInstanceName'>
161+
/// The name of the managed instance.
162+
/// </param>
163+
/// <param name='databaseName'>
164+
/// The name of the database.
165+
/// </param>
166+
/// <param name='parameters'>
167+
/// The Ledger Digest Storage Endpoint.
168+
/// </param>
169+
/// <param name='customHeaders'>
170+
/// The headers that will be added to request.
171+
/// </param>
172+
/// <param name='cancellationToken'>
173+
/// The cancellation token.
174+
/// </param>
175+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
176+
/// Thrown when the operation returned an invalid status code
177+
/// </exception>
178+
/// <exception cref="Microsoft.Rest.SerializationException">
179+
/// Thrown when unable to deserialize the response
180+
/// </exception>
181+
/// <exception cref="Microsoft.Rest.ValidationException">
182+
/// Thrown when a required parameter is null
183+
/// </exception>
184+
Task<AzureOperationResponse<ManagedLedgerDigestUploads>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploads parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
185+
/// <summary>
186+
/// Disables uploading ledger digests to an Azure Storage account or an
187+
/// Azure Confidential Ledger instance.
188+
/// </summary>
189+
/// <param name='resourceGroupName'>
190+
/// The name of the resource group that contains the resource. You can
191+
/// obtain this value from the Azure Resource Manager API or the
192+
/// portal.
193+
/// </param>
194+
/// <param name='managedInstanceName'>
195+
/// The name of the managed instance.
196+
/// </param>
197+
/// <param name='databaseName'>
198+
/// The name of the database.
199+
/// </param>
200+
/// <param name='customHeaders'>
201+
/// The headers that will be added to request.
202+
/// </param>
203+
/// <param name='cancellationToken'>
204+
/// The cancellation token.
205+
/// </param>
206+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
207+
/// Thrown when the operation returned an invalid status code
208+
/// </exception>
209+
/// <exception cref="Microsoft.Rest.SerializationException">
210+
/// Thrown when unable to deserialize the response
211+
/// </exception>
212+
/// <exception cref="Microsoft.Rest.ValidationException">
213+
/// Thrown when a required parameter is null
214+
/// </exception>
215+
Task<AzureOperationResponse<ManagedLedgerDigestUploads>> BeginDisableWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
216+
/// <summary>
217+
/// Gets all ledger digest upload settings on a database.
218+
/// </summary>
219+
/// <param name='nextPageLink'>
220+
/// The NextLink from the previous successful call to List operation.
221+
/// </param>
222+
/// <param name='customHeaders'>
223+
/// The headers that will be added to request.
224+
/// </param>
225+
/// <param name='cancellationToken'>
226+
/// The cancellation token.
227+
/// </param>
228+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
229+
/// Thrown when the operation returned an invalid status code
230+
/// </exception>
231+
/// <exception cref="Microsoft.Rest.SerializationException">
232+
/// Thrown when unable to deserialize the response
233+
/// </exception>
234+
/// <exception cref="Microsoft.Rest.ValidationException">
235+
/// Thrown when a required parameter is null
236+
/// </exception>
237+
Task<AzureOperationResponse<IPage<ManagedLedgerDigestUploads>>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
238+
}
239+
}

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,6 @@ public partial interface ISqlManagementClient : System.IDisposable
468468
/// </summary>
469469
IManagedInstanceDtcsOperations ManagedInstanceDtcs { get; }
470470

471-
/// <summary>
472-
/// Gets the IManagedDatabasesOperations.
473-
/// </summary>
474-
IManagedDatabasesOperations ManagedDatabases { get; }
475-
476471
/// <summary>
477472
/// Gets the IManagedDatabaseRestoreDetailsOperations.
478473
/// </summary>
@@ -508,5 +503,15 @@ public partial interface ISqlManagementClient : System.IDisposable
508503
/// </summary>
509504
IServerConfigurationOptionsOperations ServerConfigurationOptions { get; }
510505

506+
/// <summary>
507+
/// Gets the IManagedLedgerDigestUploadsOperations.
508+
/// </summary>
509+
IManagedLedgerDigestUploadsOperations ManagedLedgerDigestUploads { get; }
510+
511+
/// <summary>
512+
/// Gets the IManagedDatabasesOperations.
513+
/// </summary>
514+
IManagedDatabasesOperations ManagedDatabases { get; }
515+
511516
}
512517
}

src/Sql/Sql.Sdk/Generated/ManagedDatabasesOperations.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
9595
{
9696
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
9797
}
98-
string apiVersion = "2022-05-01-preview";
98+
string apiVersion = "2022-08-01-preview";
9999
// Tracing
100100
bool _shouldTrace = ServiceClientTracing.IsEnabled;
101101
string _invocationId = null;
@@ -297,7 +297,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
297297
{
298298
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
299299
}
300-
string apiVersion = "2022-05-01-preview";
300+
string apiVersion = "2022-08-01-preview";
301301
// Tracing
302302
bool _shouldTrace = ServiceClientTracing.IsEnabled;
303303
string _invocationId = null;
@@ -694,7 +694,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
694694
{
695695
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
696696
}
697-
string apiVersion = "2022-05-01-preview";
697+
string apiVersion = "2022-08-01-preview";
698698
// Tracing
699699
bool _shouldTrace = ServiceClientTracing.IsEnabled;
700700
string _invocationId = null;
@@ -907,7 +907,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
907907
{
908908
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
909909
}
910-
string apiVersion = "2022-05-01-preview";
910+
string apiVersion = "2022-08-01-preview";
911911
// Tracing
912912
bool _shouldTrace = ServiceClientTracing.IsEnabled;
913913
string _invocationId = null;
@@ -1133,7 +1133,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
11331133
{
11341134
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
11351135
}
1136-
string apiVersion = "2022-05-01-preview";
1136+
string apiVersion = "2022-08-01-preview";
11371137
// Tracing
11381138
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11391139
string _invocationId = null;
@@ -1326,7 +1326,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
13261326
{
13271327
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
13281328
}
1329-
string apiVersion = "2022-05-01-preview";
1329+
string apiVersion = "2022-08-01-preview";
13301330
// Tracing
13311331
bool _shouldTrace = ServiceClientTracing.IsEnabled;
13321332
string _invocationId = null;
@@ -1545,7 +1545,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
15451545
{
15461546
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
15471547
}
1548-
string apiVersion = "2022-05-01-preview";
1548+
string apiVersion = "2022-08-01-preview";
15491549
// Tracing
15501550
bool _shouldTrace = ServiceClientTracing.IsEnabled;
15511551
string _invocationId = null;
@@ -1746,7 +1746,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
17461746
{
17471747
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
17481748
}
1749-
string apiVersion = "2022-05-01-preview";
1749+
string apiVersion = "2022-08-01-preview";
17501750
// Tracing
17511751
bool _shouldTrace = ServiceClientTracing.IsEnabled;
17521752
string _invocationId = null;
@@ -1947,7 +1947,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
19471947
{
19481948
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
19491949
}
1950-
string apiVersion = "2022-05-01-preview";
1950+
string apiVersion = "2022-08-01-preview";
19511951
// Tracing
19521952
bool _shouldTrace = ServiceClientTracing.IsEnabled;
19531953
string _invocationId = null;
@@ -2148,7 +2148,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
21482148
{
21492149
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
21502150
}
2151-
string apiVersion = "2022-05-01-preview";
2151+
string apiVersion = "2022-08-01-preview";
21522152
// Tracing
21532153
bool _shouldTrace = ServiceClientTracing.IsEnabled;
21542154
string _invocationId = null;

0 commit comments

Comments
 (0)