forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR Microsoft.Azure.ApplicationInsights] Add purge API details. (#…
…184) * Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194) chore: jsonfmt servicebus * Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195) Remove common from examples. * Generated from cf0d03934bcbc56858cf3696b0a3c7fa481c12ac Fix example
- Loading branch information
1 parent
2986e13
commit 0959fb6
Showing
164 changed files
with
25,017 additions
and
5,792 deletions.
There are no files selected for viewing
987 changes: 987 additions & 0 deletions
987
...pplicationinsights/Microsoft.Azure.ApplicationInsights/src/Generated/APIKeysOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
207 changes: 207 additions & 0 deletions
207
...insights/Microsoft.Azure.ApplicationInsights/src/Generated/APIKeysOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
// <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.ApplicationInsights.Management | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for APIKeysOperations. | ||
/// </summary> | ||
public static partial class APIKeysOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Gets a list of API keys of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
public static IEnumerable<ApplicationInsightsComponentAPIKey> List(this IAPIKeysOperations operations, string resourceGroupName, string resourceName) | ||
{ | ||
return operations.ListAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of API keys of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IEnumerable<ApplicationInsightsComponentAPIKey>> ListAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Create an API Key of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='aPIKeyProperties'> | ||
/// Properties that need to be specified to create an API key of a Application | ||
/// Insights component. | ||
/// </param> | ||
public static ApplicationInsightsComponentAPIKey Create(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, APIKeyRequest aPIKeyProperties) | ||
{ | ||
return operations.CreateAsync(resourceGroupName, resourceName, aPIKeyProperties).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Create an API Key of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='aPIKeyProperties'> | ||
/// Properties that need to be specified to create an API key of a Application | ||
/// Insights component. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<ApplicationInsightsComponentAPIKey> CreateAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, APIKeyRequest aPIKeyProperties, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, resourceName, aPIKeyProperties, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Delete an API Key of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='keyId'> | ||
/// The API Key ID. This is unique within a Application Insights component. | ||
/// </param> | ||
public static ApplicationInsightsComponentAPIKey Delete(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId) | ||
{ | ||
return operations.DeleteAsync(resourceGroupName, resourceName, keyId).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Delete an API Key of an Application Insights component. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='keyId'> | ||
/// The API Key ID. This is unique within a Application Insights component. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<ApplicationInsightsComponentAPIKey> DeleteAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, keyId, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Get the API Key for this key id. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='keyId'> | ||
/// The API Key ID. This is unique within a Application Insights component. | ||
/// </param> | ||
public static ApplicationInsightsComponentAPIKey Get(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId) | ||
{ | ||
return operations.GetAsync(resourceGroupName, resourceName, keyId).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Get the API Key for this key id. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='resourceName'> | ||
/// The name of the Application Insights component resource. | ||
/// </param> | ||
/// <param name='keyId'> | ||
/// The API Key ID. This is unique within a Application Insights component. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<ApplicationInsightsComponentAPIKey> GetAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, keyId, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.