Skip to content

Commit 2d6c633

Browse files
authored
Elastic Job Agent Powershell Client Updates to support new features (JobPrivateEndpoints, Identity, Tiers) - Release with Az 11.0.0. (#23004)
* generating new clients with powershell from 2023-05-01 swagger merge PR. * first changes commit - job private endpoint adaptors and communicators * base changes for new private endpoint powershell commands * updating swagger commit to one from main branch * Implemented Get and Remove for private endpoint and improved New. Create base test to reflect it * exposed sku capacity and tier and added test to reflect it * adding Identity changes, fixing tags not actually working, updating Set command to actually use PUT * new private endpoint mds * updating help docs with latest changes * merge fix * minor UX change to allow workercount to be enough to update slo job agent, added changelog * addressing feedback * re-recorded all elastic job agent session tests. * fixing TestAgentCreateWithIdentity * filled in commandlets for job private endpoints help docs * added PS completer to WorkerCount, added identity and sku example to New and Set job agent commands * adding online version to md files and adding a unit tests for identity parsing * Adding Sku and identity tests for Update job agent * using the latest swagger commit to generate sql.sdk and pushing all generated files * address feedback * add final scenario tests for private endpoint cmdlets * updating help docs to reflect new parameters * Increasing test delay to allow backend to persist agent in CI pipeline * Update TestPrivateEndpointRemove so it passes on playback * re-recording with higher sleep time * fixing minor comment typos * fixing comment typo and trying wait-seconds * trying to use Start-Sleep to prevent race condition in scenario tests playback * updating to the latest swagger commit to see if that fixes pipeline issues * setting powershell 4.x version explicitly so that analyze pipeline doesn't default to 3.x version.
1 parent 6720602 commit 2d6c633

File tree

126 files changed

+55228
-38865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+55228
-38865
lines changed

src/Sql/Sql.Management.Sdk/Generated/CapabilitiesOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ internal CapabilitiesOperations (SqlManagementClient client)
8585
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
8686
}
8787

88-
string apiVersion = "2020-11-01-preview";
88+
string apiVersion = "2023-05-01-preview";
8989
// Tracing
9090
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
9191
string _invocationId = null;

src/Sql/Sql.Management.Sdk/Generated/FailoverGroupsOperations.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
8989
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
9090
}
9191

92-
string apiVersion = "2022-11-01-preview";
92+
string apiVersion = "2023-02-01-preview";
9393
// Tracing
9494
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
9595
string _invocationId = null;
@@ -307,7 +307,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
307307
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
308308
}
309309

310-
string apiVersion = "2022-11-01-preview";
310+
string apiVersion = "2023-02-01-preview";
311311
// Tracing
312312
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
313313
string _invocationId = null;
@@ -694,7 +694,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
694694
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
695695
}
696696

697-
string apiVersion = "2022-11-01-preview";
697+
string apiVersion = "2023-02-01-preview";
698698
// Tracing
699699
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
700700
string _invocationId = null;
@@ -936,7 +936,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
936936
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
937937
}
938938

939-
string apiVersion = "2022-11-01-preview";
939+
string apiVersion = "2023-02-01-preview";
940940
// Tracing
941941
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
942942
string _invocationId = null;
@@ -1145,7 +1145,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
11451145
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
11461146
}
11471147

1148-
string apiVersion = "2022-11-01-preview";
1148+
string apiVersion = "2023-02-01-preview";
11491149
// Tracing
11501150
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
11511151
string _invocationId = null;
@@ -1372,7 +1372,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
13721372
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
13731373
}
13741374

1375-
string apiVersion = "2022-11-01-preview";
1375+
string apiVersion = "2023-02-01-preview";
13761376
// Tracing
13771377
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
13781378
string _invocationId = null;
@@ -1592,7 +1592,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
15921592
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
15931593
}
15941594

1595-
string apiVersion = "2022-11-01-preview";
1595+
string apiVersion = "2023-02-01-preview";
15961596
// Tracing
15971597
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
15981598
string _invocationId = null;
@@ -1812,7 +1812,7 @@ internal FailoverGroupsOperations (SqlManagementClient client)
18121812
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
18131813
}
18141814

1815-
string apiVersion = "2022-11-01-preview";
1815+
string apiVersion = "2023-02-01-preview";
18161816
// Tracing
18171817
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
18181818
string _invocationId = null;

src/Sql/Sql.Management.Sdk/Generated/IJobExecutionsOperations.cs

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.
Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.Sql
7+
{
8+
using Microsoft.Rest.Azure;
9+
using Models;
10+
11+
/// <summary>
12+
/// JobPrivateEndpointsOperations operations.
13+
/// </summary>
14+
public partial interface IJobPrivateEndpointsOperations
15+
{
16+
/// <summary>
17+
/// Gets a list of job agent private endpoints.
18+
/// </summary>
19+
/// <remarks>
20+
/// Gets a list of job agent private endpoints.
21+
/// </remarks>
22+
/// <param name='resourceGroupName'>
23+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
24+
/// </param>
25+
/// <param name='serverName'>
26+
/// The name of the server.
27+
/// </param>
28+
/// <param name='jobAgentName'>
29+
/// The name of the job agent.
30+
/// </param>
31+
/// <param name='customHeaders'>
32+
/// The headers that will be added to request.
33+
/// </param>
34+
/// <param name='cancellationToken'>
35+
/// The cancellation token.
36+
/// </param>
37+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
38+
/// Thrown when the operation returned an invalid status code
39+
/// </exception>
40+
/// <exception cref="Microsoft.Rest.SerializationException">
41+
/// Thrown when unable to deserialize the response
42+
/// </exception>
43+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<JobPrivateEndpoint>>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
44+
45+
/// <summary>
46+
/// Gets a private endpoint.
47+
/// </summary>
48+
/// <remarks>
49+
/// Gets a private endpoint.
50+
/// </remarks>
51+
/// <param name='resourceGroupName'>
52+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
53+
/// </param>
54+
/// <param name='serverName'>
55+
/// The name of the server.
56+
/// </param>
57+
/// <param name='jobAgentName'>
58+
/// The name of the job agent.
59+
/// </param>
60+
/// <param name='privateEndpointName'>
61+
/// The name of the private endpoint to get.
62+
/// </param>
63+
/// <param name='customHeaders'>
64+
/// The headers that will be added to request.
65+
/// </param>
66+
/// <param name='cancellationToken'>
67+
/// The cancellation token.
68+
/// </param>
69+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
70+
/// Thrown when the operation returned an invalid status code
71+
/// </exception>
72+
/// <exception cref="Microsoft.Rest.SerializationException">
73+
/// Thrown when unable to deserialize the response
74+
/// </exception>
75+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<JobPrivateEndpoint>> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string privateEndpointName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
76+
77+
/// <summary>
78+
/// Creates or updates a private endpoint.
79+
/// </summary>
80+
/// <remarks>
81+
/// Creates or updates a private endpoint.
82+
/// </remarks>
83+
/// <param name='resourceGroupName'>
84+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
85+
/// </param>
86+
/// <param name='serverName'>
87+
/// The name of the server.
88+
/// </param>
89+
/// <param name='jobAgentName'>
90+
/// The name of the job agent.
91+
/// </param>
92+
/// <param name='privateEndpointName'>
93+
/// The name of the private endpoint.
94+
/// </param>
95+
/// <param name='parameters'>
96+
/// The requested private endpoint state.
97+
/// </param>
98+
/// <param name='customHeaders'>
99+
/// The headers that will be added to request.
100+
/// </param>
101+
/// <param name='cancellationToken'>
102+
/// The cancellation token.
103+
/// </param>
104+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
105+
/// Thrown when the operation returned an invalid status code
106+
/// </exception>
107+
/// <exception cref="Microsoft.Rest.SerializationException">
108+
/// Thrown when unable to deserialize the response
109+
/// </exception>
110+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<JobPrivateEndpoint>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string privateEndpointName, JobPrivateEndpoint parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
111+
112+
/// <summary>
113+
/// Deletes a private endpoint.
114+
/// </summary>
115+
/// <remarks>
116+
/// Deletes a private endpoint.
117+
/// </remarks>
118+
/// <param name='resourceGroupName'>
119+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
120+
/// </param>
121+
/// <param name='serverName'>
122+
/// The name of the server.
123+
/// </param>
124+
/// <param name='jobAgentName'>
125+
/// The name of the job agent.
126+
/// </param>
127+
/// <param name='privateEndpointName'>
128+
/// The name of the private endpoint to delete.
129+
/// </param>
130+
/// <param name='customHeaders'>
131+
/// The headers that will be added to request.
132+
/// </param>
133+
/// <param name='cancellationToken'>
134+
/// The cancellation token.
135+
/// </param>
136+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
137+
/// Thrown when the operation returned an invalid status code
138+
/// </exception>
139+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string privateEndpointName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
140+
141+
/// <summary>
142+
/// Creates or updates a private endpoint.
143+
/// </summary>
144+
/// <remarks>
145+
/// Creates or updates a private endpoint.
146+
/// </remarks>
147+
/// <param name='resourceGroupName'>
148+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
149+
/// </param>
150+
/// <param name='serverName'>
151+
/// The name of the server.
152+
/// </param>
153+
/// <param name='jobAgentName'>
154+
/// The name of the job agent.
155+
/// </param>
156+
/// <param name='privateEndpointName'>
157+
/// The name of the private endpoint.
158+
/// </param>
159+
/// <param name='parameters'>
160+
/// The requested private endpoint state.
161+
/// </param>
162+
/// <param name='customHeaders'>
163+
/// The headers that will be added to request.
164+
/// </param>
165+
/// <param name='cancellationToken'>
166+
/// The cancellation token.
167+
/// </param>
168+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
169+
/// Thrown when the operation returned an invalid status code
170+
/// </exception>
171+
/// <exception cref="Microsoft.Rest.SerializationException">
172+
/// Thrown when unable to deserialize the response
173+
/// </exception>
174+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<JobPrivateEndpoint>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string privateEndpointName, JobPrivateEndpoint parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
175+
176+
/// <summary>
177+
/// Deletes a private endpoint.
178+
/// </summary>
179+
/// <remarks>
180+
/// Deletes a private endpoint.
181+
/// </remarks>
182+
/// <param name='resourceGroupName'>
183+
/// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
184+
/// </param>
185+
/// <param name='serverName'>
186+
/// The name of the server.
187+
/// </param>
188+
/// <param name='jobAgentName'>
189+
/// The name of the job agent.
190+
/// </param>
191+
/// <param name='privateEndpointName'>
192+
/// The name of the private endpoint to delete.
193+
/// </param>
194+
/// <param name='customHeaders'>
195+
/// The headers that will be added to request.
196+
/// </param>
197+
/// <param name='cancellationToken'>
198+
/// The cancellation token.
199+
/// </param>
200+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
201+
/// Thrown when the operation returned an invalid status code
202+
/// </exception>
203+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string privateEndpointName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
204+
205+
/// <summary>
206+
/// Gets a list of job agent private endpoints.
207+
/// </summary>
208+
/// <remarks>
209+
/// Gets a list of job agent private endpoints.
210+
/// </remarks>
211+
/// <param name='nextPageLink'>
212+
/// The NextLink from the previous successful call to List operation.
213+
/// </param>
214+
/// <param name='customHeaders'>
215+
/// The headers that will be added to request.
216+
/// </param>
217+
/// <param name='cancellationToken'>
218+
/// The cancellation token.
219+
/// </param>
220+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
221+
/// Thrown when the operation returned an invalid status code
222+
/// </exception>
223+
/// <exception cref="Microsoft.Rest.SerializationException">
224+
/// Thrown when unable to deserialize the response
225+
/// </exception>
226+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<JobPrivateEndpoint>>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
227+
228+
}
229+
}

src/Sql/Sql.Management.Sdk/Generated/IJobStepExecutionsOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public partial interface IJobStepExecutionsOperations
6767
/// <exception cref="Microsoft.Rest.SerializationException">
6868
/// Thrown when unable to deserialize the response
6969
/// </exception>
70-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<JobExecution>>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
70+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<JobExecution>>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), long? skip = default(long?), long? top = default(long?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
7171

7272
/// <summary>
7373
/// Gets a step execution of a job execution.

0 commit comments

Comments
 (0)