Skip to content

Commit f5f9c3b

Browse files
AJ-2017anujain-bVeryEarly
authored
Powershell changes for removing deprecated APIs from Network Watcher (#27462)
Co-authored-by: anu jain <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent 94fa99f commit f5f9c3b

File tree

57 files changed

+277
-2160
lines changed

Some content is hidden

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

57 files changed

+277
-2160
lines changed

src/Network/Network.Management.Sdk/Generated/ConnectionMonitorsOperations.cs

Lines changed: 0 additions & 477 deletions
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/ConnectionMonitorsOperationsExtensions.cs

Lines changed: 0 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -240,93 +240,6 @@ public static void Stop(this IConnectionMonitorsOperations operations, string re
240240
(await operations.StopWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false)).Dispose();
241241
}
242242
/// <summary>
243-
/// Starts the specified connection monitor.
244-
/// </summary>
245-
/// <param name='operations'>
246-
/// The operations group for this extension method.
247-
/// </param>
248-
/// <param name='resourceGroupName'>
249-
/// The name of the resource group containing Network Watcher.
250-
/// </param>
251-
/// <param name='networkWatcherName'>
252-
/// The name of the Network Watcher resource.
253-
/// </param>
254-
/// <param name='connectionMonitorName'>
255-
/// The name of the connection monitor.
256-
/// </param>
257-
public static void Start(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName)
258-
{
259-
((IConnectionMonitorsOperations)operations).StartAsync(resourceGroupName, networkWatcherName, connectionMonitorName).GetAwaiter().GetResult();
260-
}
261-
262-
/// <summary>
263-
/// Starts the specified connection monitor.
264-
/// </summary>
265-
/// <param name='operations'>
266-
/// The operations group for this extension method.
267-
/// </param>
268-
/// <param name='resourceGroupName'>
269-
/// The name of the resource group containing Network Watcher.
270-
/// </param>
271-
/// <param name='networkWatcherName'>
272-
/// The name of the Network Watcher resource.
273-
/// </param>
274-
/// <param name='connectionMonitorName'>
275-
/// The name of the connection monitor.
276-
/// </param>
277-
/// <param name='cancellationToken'>
278-
/// The cancellation token.
279-
/// </param>
280-
public static async System.Threading.Tasks.Task StartAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
281-
{
282-
(await operations.StartWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false)).Dispose();
283-
}
284-
/// <summary>
285-
/// Query a snapshot of the most recent connection states.
286-
/// </summary>
287-
/// <param name='operations'>
288-
/// The operations group for this extension method.
289-
/// </param>
290-
/// <param name='resourceGroupName'>
291-
/// The name of the resource group containing Network Watcher.
292-
/// </param>
293-
/// <param name='networkWatcherName'>
294-
/// The name of the Network Watcher resource.
295-
/// </param>
296-
/// <param name='connectionMonitorName'>
297-
/// The name given to the connection monitor.
298-
/// </param>
299-
public static ConnectionMonitorQueryResult Query(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName)
300-
{
301-
return ((IConnectionMonitorsOperations)operations).QueryAsync(resourceGroupName, networkWatcherName, connectionMonitorName).GetAwaiter().GetResult();
302-
}
303-
304-
/// <summary>
305-
/// Query a snapshot of the most recent connection states.
306-
/// </summary>
307-
/// <param name='operations'>
308-
/// The operations group for this extension method.
309-
/// </param>
310-
/// <param name='resourceGroupName'>
311-
/// The name of the resource group containing Network Watcher.
312-
/// </param>
313-
/// <param name='networkWatcherName'>
314-
/// The name of the Network Watcher resource.
315-
/// </param>
316-
/// <param name='connectionMonitorName'>
317-
/// The name given to the connection monitor.
318-
/// </param>
319-
/// <param name='cancellationToken'>
320-
/// The cancellation token.
321-
/// </param>
322-
public static async System.Threading.Tasks.Task<ConnectionMonitorQueryResult> QueryAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
323-
{
324-
using (var _result = await operations.QueryWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false))
325-
{
326-
return _result.Body;
327-
}
328-
}
329-
/// <summary>
330243
/// Lists all connection monitors for the specified Network Watcher.
331244
/// </summary>
332245
/// <param name='operations'>
@@ -502,92 +415,5 @@ public static void BeginStop(this IConnectionMonitorsOperations operations, stri
502415
{
503416
(await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false)).Dispose();
504417
}
505-
/// <summary>
506-
/// Starts the specified connection monitor.
507-
/// </summary>
508-
/// <param name='operations'>
509-
/// The operations group for this extension method.
510-
/// </param>
511-
/// <param name='resourceGroupName'>
512-
/// The name of the resource group containing Network Watcher.
513-
/// </param>
514-
/// <param name='networkWatcherName'>
515-
/// The name of the Network Watcher resource.
516-
/// </param>
517-
/// <param name='connectionMonitorName'>
518-
/// The name of the connection monitor.
519-
/// </param>
520-
public static void BeginStart(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName)
521-
{
522-
((IConnectionMonitorsOperations)operations).BeginStartAsync(resourceGroupName, networkWatcherName, connectionMonitorName).GetAwaiter().GetResult();
523-
}
524-
525-
/// <summary>
526-
/// Starts the specified connection monitor.
527-
/// </summary>
528-
/// <param name='operations'>
529-
/// The operations group for this extension method.
530-
/// </param>
531-
/// <param name='resourceGroupName'>
532-
/// The name of the resource group containing Network Watcher.
533-
/// </param>
534-
/// <param name='networkWatcherName'>
535-
/// The name of the Network Watcher resource.
536-
/// </param>
537-
/// <param name='connectionMonitorName'>
538-
/// The name of the connection monitor.
539-
/// </param>
540-
/// <param name='cancellationToken'>
541-
/// The cancellation token.
542-
/// </param>
543-
public static async System.Threading.Tasks.Task BeginStartAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
544-
{
545-
(await operations.BeginStartWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false)).Dispose();
546-
}
547-
/// <summary>
548-
/// Query a snapshot of the most recent connection states.
549-
/// </summary>
550-
/// <param name='operations'>
551-
/// The operations group for this extension method.
552-
/// </param>
553-
/// <param name='resourceGroupName'>
554-
/// The name of the resource group containing Network Watcher.
555-
/// </param>
556-
/// <param name='networkWatcherName'>
557-
/// The name of the Network Watcher resource.
558-
/// </param>
559-
/// <param name='connectionMonitorName'>
560-
/// The name given to the connection monitor.
561-
/// </param>
562-
public static ConnectionMonitorQueryResult BeginQuery(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName)
563-
{
564-
return ((IConnectionMonitorsOperations)operations).BeginQueryAsync(resourceGroupName, networkWatcherName, connectionMonitorName).GetAwaiter().GetResult();
565-
}
566-
567-
/// <summary>
568-
/// Query a snapshot of the most recent connection states.
569-
/// </summary>
570-
/// <param name='operations'>
571-
/// The operations group for this extension method.
572-
/// </param>
573-
/// <param name='resourceGroupName'>
574-
/// The name of the resource group containing Network Watcher.
575-
/// </param>
576-
/// <param name='networkWatcherName'>
577-
/// The name of the Network Watcher resource.
578-
/// </param>
579-
/// <param name='connectionMonitorName'>
580-
/// The name given to the connection monitor.
581-
/// </param>
582-
/// <param name='cancellationToken'>
583-
/// The cancellation token.
584-
/// </param>
585-
public static async System.Threading.Tasks.Task<ConnectionMonitorQueryResult> BeginQueryAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
586-
{
587-
using (var _result = await operations.BeginQueryWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false))
588-
{
589-
return _result.Body;
590-
}
591-
}
592418
}
593419
}

src/Network/Network.Management.Sdk/Generated/IConnectionMonitorsOperations.cs

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -162,61 +162,6 @@ public partial interface IConnectionMonitorsOperations
162162
/// </exception>
163163
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> StopWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
164164

165-
/// <summary>
166-
/// Starts the specified connection monitor.
167-
/// </summary>
168-
/// <remarks>
169-
/// Starts the specified connection monitor.
170-
/// </remarks>
171-
/// <param name='resourceGroupName'>
172-
/// The name of the resource group containing Network Watcher.
173-
/// </param>
174-
/// <param name='networkWatcherName'>
175-
/// The name of the Network Watcher resource.
176-
/// </param>
177-
/// <param name='connectionMonitorName'>
178-
/// The name of the connection monitor.
179-
/// </param>
180-
/// <param name='customHeaders'>
181-
/// The headers that will be added to request.
182-
/// </param>
183-
/// <param name='cancellationToken'>
184-
/// The cancellation token.
185-
/// </param>
186-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
187-
/// Thrown when the operation returned an invalid status code
188-
/// </exception>
189-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> StartWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
190-
191-
/// <summary>
192-
/// Query a snapshot of the most recent connection states.
193-
/// </summary>
194-
/// <remarks>
195-
/// Query a snapshot of the most recent connection states.
196-
/// </remarks>
197-
/// <param name='resourceGroupName'>
198-
/// The name of the resource group containing Network Watcher.
199-
/// </param>
200-
/// <param name='networkWatcherName'>
201-
/// The name of the Network Watcher resource.
202-
/// </param>
203-
/// <param name='connectionMonitorName'>
204-
/// The name given to the connection monitor.
205-
/// </param>
206-
/// <param name='customHeaders'>
207-
/// The headers that will be added to request.
208-
/// </param>
209-
/// <param name='cancellationToken'>
210-
/// The cancellation token.
211-
/// </param>
212-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
213-
/// Thrown when the operation returned an invalid status code
214-
/// </exception>
215-
/// <exception cref="Microsoft.Rest.SerializationException">
216-
/// Thrown when unable to deserialize the response
217-
/// </exception>
218-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ConnectionMonitorQueryResult>> QueryWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
219-
220165
/// <summary>
221166
/// Lists all connection monitors for the specified Network Watcher.
222167
/// </summary>
@@ -331,60 +276,5 @@ public partial interface IConnectionMonitorsOperations
331276
/// </exception>
332277
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginStopWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
333278

334-
/// <summary>
335-
/// Starts the specified connection monitor.
336-
/// </summary>
337-
/// <remarks>
338-
/// Starts the specified connection monitor.
339-
/// </remarks>
340-
/// <param name='resourceGroupName'>
341-
/// The name of the resource group containing Network Watcher.
342-
/// </param>
343-
/// <param name='networkWatcherName'>
344-
/// The name of the Network Watcher resource.
345-
/// </param>
346-
/// <param name='connectionMonitorName'>
347-
/// The name of the connection monitor.
348-
/// </param>
349-
/// <param name='customHeaders'>
350-
/// The headers that will be added to request.
351-
/// </param>
352-
/// <param name='cancellationToken'>
353-
/// The cancellation token.
354-
/// </param>
355-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
356-
/// Thrown when the operation returned an invalid status code
357-
/// </exception>
358-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginStartWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
359-
360-
/// <summary>
361-
/// Query a snapshot of the most recent connection states.
362-
/// </summary>
363-
/// <remarks>
364-
/// Query a snapshot of the most recent connection states.
365-
/// </remarks>
366-
/// <param name='resourceGroupName'>
367-
/// The name of the resource group containing Network Watcher.
368-
/// </param>
369-
/// <param name='networkWatcherName'>
370-
/// The name of the Network Watcher resource.
371-
/// </param>
372-
/// <param name='connectionMonitorName'>
373-
/// The name given to the connection monitor.
374-
/// </param>
375-
/// <param name='customHeaders'>
376-
/// The headers that will be added to request.
377-
/// </param>
378-
/// <param name='cancellationToken'>
379-
/// The cancellation token.
380-
/// </param>
381-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
382-
/// Thrown when the operation returned an invalid status code
383-
/// </exception>
384-
/// <exception cref="Microsoft.Rest.SerializationException">
385-
/// Thrown when unable to deserialize the response
386-
/// </exception>
387-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ConnectionMonitorQueryResult>> BeginQueryWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
388-
389279
}
390280
}

src/Network/Network.Management.Sdk/Generated/Models/ActiveConnectivityConfiguration.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public ActiveConnectivityConfiguration()
4040
/// <param name="hubs">List of hubItems
4141
/// </param>
4242

43+
/// <param name="connectivityCapabilities">Collection of additional settings to enhance specific topology behaviors of
44+
/// the connectivity configuration resource.
45+
/// </param>
46+
4347
/// <param name="appliesToGroups">Groups for configuration
4448
/// </param>
4549

@@ -60,9 +64,9 @@ public ActiveConnectivityConfiguration()
6064

6165
/// <param name="region">Deployment region.
6266
/// </param>
63-
public ActiveConnectivityConfiguration(string connectivityTopology = default(string), string isGlobal = default(string), string provisioningState = default(string), string description = default(string), System.Collections.Generic.IList<Hub> hubs = default(System.Collections.Generic.IList<Hub>), System.Collections.Generic.IList<ConnectivityGroupItem> appliesToGroups = default(System.Collections.Generic.IList<ConnectivityGroupItem>), string deleteExistingPeering = default(string), string resourceGuid = default(string), string id = default(string), System.Collections.Generic.IList<ConfigurationGroup> configurationGroups = default(System.Collections.Generic.IList<ConfigurationGroup>), System.DateTime? commitTime = default(System.DateTime?), string region = default(string))
67+
public ActiveConnectivityConfiguration(string connectivityTopology = default(string), string isGlobal = default(string), string provisioningState = default(string), string description = default(string), System.Collections.Generic.IList<Hub> hubs = default(System.Collections.Generic.IList<Hub>), object connectivityCapabilities = default(object), System.Collections.Generic.IList<ConnectivityGroupItem> appliesToGroups = default(System.Collections.Generic.IList<ConnectivityGroupItem>), string deleteExistingPeering = default(string), string resourceGuid = default(string), string id = default(string), System.Collections.Generic.IList<ConfigurationGroup> configurationGroups = default(System.Collections.Generic.IList<ConfigurationGroup>), System.DateTime? commitTime = default(System.DateTime?), string region = default(string))
6468

65-
: base(id, configurationGroups, connectivityTopology, isGlobal, provisioningState, description, hubs, appliesToGroups, deleteExistingPeering, resourceGuid)
69+
: base(id, configurationGroups, connectivityTopology, isGlobal, provisioningState, description, hubs, connectivityCapabilities, appliesToGroups, deleteExistingPeering, resourceGuid)
6670
{
6771
this.CommitTime = commitTime;
6872
this.Region = region;

0 commit comments

Comments
 (0)