Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use autorest.powershell to generate AlertsManagement SDK to replace track 1 SDK #22579

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

842 changes: 451 additions & 391 deletions src/AlertsManagement/AlertsManagement.Sdk/Generated/AlertsOperations.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// 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>
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.AlertsManagement
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// AlertProcessingRulesOperations operations.
Expand All @@ -26,25 +16,29 @@ public partial interface IAlertProcessingRulesOperations
/// <summary>
/// List all alert processing rules in a subscription.
/// </summary>
/// <remarks>
/// List all alert processing rules in a subscription.
/// </remarks>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AlertProcessingRule>,AlertProcessingRulesListBySubscriptionHeaders>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<AlertProcessingRule>,AlertProcessingRulesListBySubscriptionHeaders>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// List all alert processing rules in a resource group.
/// </summary>
/// <remarks>
/// List all alert processing rules in a resource group.
/// </remarks>
/// <param name='resourceGroupName'>
/// Resource group name where the resource is created.
/// </param>
Expand All @@ -54,19 +48,20 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AlertProcessingRule>,AlertProcessingRulesListByResourceGroupHeaders>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<AlertProcessingRule>,AlertProcessingRulesListByResourceGroupHeaders>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Get an alert processing rule by name.
/// </summary>
/// <remarks>
/// Get an alert processing rule by name.
/// </remarks>
/// <param name='resourceGroupName'>
/// Resource group name where the resource is created.
/// </param>
Expand All @@ -79,25 +74,25 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesGetByNameHeaders>> GetByNameWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesGetByNameHeaders>> GetByNameWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Create or update an alert processing rule.
/// </summary>
/// <remarks>
/// Create or update an alert processing rule.
/// </remarks>
/// <param name='resourceGroupName'>
/// Resource group name where the resource is created.
/// </param>
/// <param name='alertProcessingRuleName'>
/// The name of the alert processing rule that needs to be
/// created/updated.
/// The name of the alert processing rule that needs to be created/updated.
/// </param>
/// <param name='alertProcessingRule'>
/// Alert processing rule to be created/updated.
Expand All @@ -108,19 +103,20 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesCreateOrUpdateHeaders>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, AlertProcessingRule alertProcessingRule, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesCreateOrUpdateHeaders>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, AlertProcessingRule alertProcessingRule, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Delete an alert processing rule.
/// </summary>
/// <remarks>
/// Delete an alert processing rule.
/// </remarks>
/// <param name='resourceGroupName'>
/// Resource group name where the resource is created.
/// </param>
Expand All @@ -133,16 +129,17 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <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<AzureOperationHeaderResponse<AlertProcessingRulesDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<AlertProcessingRulesDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Enable, disable, or update tags for an alert processing rule.
/// </summary>
/// <remarks>
/// Enable, disable, or update tags for an alert processing rule.
/// </remarks>
/// <param name='resourceGroupName'>
/// Resource group name where the resource is created.
/// </param>
Expand All @@ -158,19 +155,20 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesUpdateHeaders>> UpdateWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, PatchObject alertProcessingRulePatch, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<AlertProcessingRule,AlertProcessingRulesUpdateHeaders>> UpdateWithHttpMessagesAsync(string resourceGroupName, string alertProcessingRuleName, PatchObject alertProcessingRulePatch, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// List all alert processing rules in a subscription.
/// </summary>
/// <remarks>
/// List all alert processing rules in a subscription.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
Expand All @@ -180,19 +178,20 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AlertProcessingRule>,AlertProcessingRulesListBySubscriptionHeaders>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<AlertProcessingRule>,AlertProcessingRulesListBySubscriptionHeaders>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// List all alert processing rules in a resource group.
/// </summary>
/// <remarks>
/// List all alert processing rules in a resource group.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
Expand All @@ -202,15 +201,13 @@ public partial interface IAlertProcessingRulesOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AlertProcessingRule>,AlertProcessingRulesListByResourceGroupHeaders>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<AlertProcessingRule>,AlertProcessingRulesListByResourceGroupHeaders>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// 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>
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.AlertsManagement
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;

/// <summary>
/// APIs for Azure alert processing rules CRUD operations.
/// </summary>
public partial interface IAlertsManagementClient : System.IDisposable
public partial interface IAlertsManagementClient : System.IDisposable
{
/// <summary>
/// The base URI of the service.
Expand All @@ -27,61 +22,65 @@ public partial interface IAlertsManagementClient : System.IDisposable
/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
JsonSerializerSettings SerializationSettings { get; }
Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
JsonSerializerSettings DeserializationSettings { get; }
Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
/// </summary>
ServiceClientCredentials Credentials { get; }
Microsoft.Rest.ServiceClientCredentials Credentials { get;}


/// <summary>
/// The ID of the target subscription.
/// </summary>
string SubscriptionId { get; set; }
string SubscriptionId { get; set;}


/// <summary>
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }
string AcceptLanguage { get; set;}


/// <summary>
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }
int? LongRunningOperationRetryTimeout { get; set;}


/// <summary>
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }
bool? GenerateClientRequestId { get; set;}


/// <summary>
/// Gets the IAlertProcessingRulesOperations.
/// Gets the IAlertProcessingRulesOperations
/// </summary>
IAlertProcessingRulesOperations AlertProcessingRules { get; }

/// <summary>
/// Gets the ISmartGroupsOperations.
/// Gets the ISmartGroupsOperations
/// </summary>
ISmartGroupsOperations SmartGroups { get; }

/// <summary>
/// Gets the IOperations.
/// Gets the IOperations
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the IAlertsOperations.
/// Gets the IAlertsOperations
/// </summary>
IAlertsOperations Alerts { get; }

}
}
}
Loading