Skip to content

Commit

Permalink
Generated from 746dca87e64cc4955bcc0dd4901f763fb0baaa2b
Browse files Browse the repository at this point in the history
Fixing tests
  • Loading branch information
SDK Automation committed Dec 19, 2019
1 parent fd9ed34 commit 24db8a8
Show file tree
Hide file tree
Showing 48 changed files with 8,026 additions and 125 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,26 @@ public static Alert GetResourceGroupLevelAlerts(this IAlertsOperations operation
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='alertUpdateActionType'>
/// Type of the action to do on the alert. Possible values include: 'Dismiss',
/// 'Reactivate'
public static void UpdateSubscriptionLevelAlertStateToDismiss(this IAlertsOperations operations, string alertName)
{
operations.UpdateSubscriptionLevelAlertStateToDismissAsync(alertName).GetAwaiter().GetResult();
}

/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static void UpdateSubscriptionLevelAlertState(this IAlertsOperations operations, string alertName, string alertUpdateActionType)
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task UpdateSubscriptionLevelAlertStateToDismissAsync(this IAlertsOperations operations, string alertName, CancellationToken cancellationToken = default(CancellationToken))
{
operations.UpdateSubscriptionLevelAlertStateAsync(alertName, alertUpdateActionType).GetAwaiter().GetResult();
(await operations.UpdateSubscriptionLevelAlertStateToDismissWithHttpMessagesAsync(alertName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
Expand All @@ -330,16 +343,26 @@ public static void UpdateSubscriptionLevelAlertState(this IAlertsOperations oper
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='alertUpdateActionType'>
/// Type of the action to do on the alert. Possible values include: 'Dismiss',
/// 'Reactivate'
public static void UpdateSubscriptionLevelAlertStateToReactivate(this IAlertsOperations operations, string alertName)
{
operations.UpdateSubscriptionLevelAlertStateToReactivateAsync(alertName).GetAwaiter().GetResult();
}

/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task UpdateSubscriptionLevelAlertStateAsync(this IAlertsOperations operations, string alertName, string alertUpdateActionType, CancellationToken cancellationToken = default(CancellationToken))
public static async Task UpdateSubscriptionLevelAlertStateToReactivateAsync(this IAlertsOperations operations, string alertName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.UpdateSubscriptionLevelAlertStateWithHttpMessagesAsync(alertName, alertUpdateActionType, null, cancellationToken).ConfigureAwait(false)).Dispose();
(await operations.UpdateSubscriptionLevelAlertStateToReactivateWithHttpMessagesAsync(alertName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
Expand All @@ -351,17 +374,34 @@ public static void UpdateSubscriptionLevelAlertState(this IAlertsOperations oper
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='alertUpdateActionType'>
/// Type of the action to do on the alert. Possible values include: 'Dismiss',
/// 'Reactivate'
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
/// case insensitive.
/// </param>
public static void UpdateResourceGroupLevelAlertStateToDismiss(this IAlertsOperations operations, string alertName, string resourceGroupName)
{
operations.UpdateResourceGroupLevelAlertStateToDismissAsync(alertName, resourceGroupName).GetAwaiter().GetResult();
}

/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
/// case insensitive.
/// </param>
public static void UpdateResourceGroupLevelAlertState(this IAlertsOperations operations, string alertName, string alertUpdateActionType, string resourceGroupName)
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task UpdateResourceGroupLevelAlertStateToDismissAsync(this IAlertsOperations operations, string alertName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
operations.UpdateResourceGroupLevelAlertStateAsync(alertName, alertUpdateActionType, resourceGroupName).GetAwaiter().GetResult();
(await operations.UpdateResourceGroupLevelAlertStateToDismissWithHttpMessagesAsync(alertName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
Expand All @@ -373,9 +413,23 @@ public static void UpdateResourceGroupLevelAlertState(this IAlertsOperations ope
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='alertUpdateActionType'>
/// Type of the action to do on the alert. Possible values include: 'Dismiss',
/// 'Reactivate'
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
/// case insensitive.
/// </param>
public static void UpdateResourceGroupLevelAlertStateToReactivate(this IAlertsOperations operations, string alertName, string resourceGroupName)
{
operations.UpdateResourceGroupLevelAlertStateToReactivateAsync(alertName, resourceGroupName).GetAwaiter().GetResult();
}

/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
Expand All @@ -384,9 +438,9 @@ public static void UpdateResourceGroupLevelAlertState(this IAlertsOperations ope
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task UpdateResourceGroupLevelAlertStateAsync(this IAlertsOperations operations, string alertName, string alertUpdateActionType, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
public static async Task UpdateResourceGroupLevelAlertStateToReactivateAsync(this IAlertsOperations operations, string alertName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.UpdateResourceGroupLevelAlertStateWithHttpMessagesAsync(alertName, alertUpdateActionType, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
(await operations.UpdateResourceGroupLevelAlertStateToReactivateWithHttpMessagesAsync(alertName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
Expand Down
Loading

0 comments on commit 24db8a8

Please sign in to comment.