Skip to content

Commit

Permalink
Generated from ebaf2364830101c3090ac47cc3fc1c34dd5afe7b
Browse files Browse the repository at this point in the history
Update to satisify avocado
  • Loading branch information
SDK Automation committed Dec 4, 2019
1 parent ae59391 commit d3eb338
Show file tree
Hide file tree
Showing 7 changed files with 708 additions and 61 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
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,24 @@ public partial interface IAlertsOperations
/// <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='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> UpdateSubscriptionLevelAlertStateToDismissWithHttpMessagesAsync(string alertName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -216,16 +231,35 @@ public partial interface IAlertsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> UpdateSubscriptionLevelAlertStateWithHttpMessagesAsync(string alertName, string alertUpdateActionType, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> UpdateSubscriptionLevelAlertStateToReactivateWithHttpMessagesAsync(string alertName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update the alert's state
/// </summary>
/// <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>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> UpdateResourceGroupLevelAlertStateToDismissWithHttpMessagesAsync(string alertName, string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update the alert's state
/// </summary>
/// <param name='alertName'>
/// Name of the alert object
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
Expand All @@ -243,7 +277,7 @@ public partial interface IAlertsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> UpdateResourceGroupLevelAlertStateWithHttpMessagesAsync(string alertName, string alertUpdateActionType, string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> UpdateResourceGroupLevelAlertStateToReactivateWithHttpMessagesAsync(string alertName, string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List all the alerts that are associated with the subscription
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Security.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Entity tag is used for comparing two or more entities from the same
/// requested resource.
/// </summary>
public partial class ETag
{
/// <summary>
/// Initializes a new instance of the ETag class.
/// </summary>
public ETag()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ETag class.
/// </summary>
/// <param name="etag">Entity tag is used for comparing two or more
/// entities from the same requested resource.</param>
public ETag(string etag = default(string))
{
Etag = etag;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets entity tag is used for comparing two or more entities
/// from the same requested resource.
/// </summary>
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Security.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// A list of key value pairs that describe the resource.
/// </summary>
public partial class Tags
{
/// <summary>
/// Initializes a new instance of the Tags class.
/// </summary>
public Tags()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the Tags class.
/// </summary>
/// <param name="tagsProperty">A list of key value pairs that describe
/// the resource.</param>
public Tags(IDictionary<string, string> tagsProperty = default(IDictionary<string, string>))
{
TagsProperty = tagsProperty;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets a list of key value pairs that describe the resource.
/// </summary>
[JsonProperty(PropertyName = "tags")]
public IDictionary<string, string> TagsProperty { get; set; }

}
}
Loading

0 comments on commit d3eb338

Please sign in to comment.