Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1c0c996
Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)
openapi-sdkautomation[bot] Sep 12, 2019
749a116
Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)
openapi-sdkautomation[bot] Sep 13, 2019
d8bf3d9
Generated from 7cd1aa92499c42947998cf1570e19ac0087fda19 (#193)
openapi-sdkautomation[bot] Sep 16, 2019
8babe3b
Generated from aafad88743ef7a4dcd7bbfa6afd4591ba4e327bb (#196)
openapi-sdkautomation[bot] Sep 16, 2019
4d2bb01
[AutoPR Microsoft.Azure.ApplicationInsights] Add purge API details. (…
openapi-sdkautomation[bot] Sep 16, 2019
b41507f
[AutoPR Microsoft.Azure.Management.Billing] Amaga/update customer pol…
openapi-sdkautomation[bot] Sep 16, 2019
c967f0d
Generated from 7a0a386b7bb4042100e0d4a5c9aed5ac4374ab3d (#208)
openapi-sdkautomation[bot] Sep 17, 2019
acbab48
[AutoPR Microsoft.Azure.Management.ContainerRegistry] [ACR] Scope map…
openapi-sdkautomation[bot] Sep 18, 2019
1385750
[AutoPR Microsoft.Azure.Management.FrontDoor] [AFD WAF] Add defaultSt…
openapi-sdkautomation[bot] Sep 19, 2019
48786f1
[AutoPR Microsoft.Azure.Management.Reservations] [Hub Generated] Revi…
openapi-sdkautomation[bot] Sep 19, 2019
f66a46b
[AutoPR Microsoft.Azure.Management.DataMigration] Fix eligibility typ…
openapi-sdkautomation[bot] Sep 19, 2019
afe0964
[AutoPR Microsoft.Azure.Management.ContainerService] fix getting agen…
openapi-sdkautomation[bot] Sep 19, 2019
84a417c
[AutoPR Microsoft.Azure.Management.FrontDoor] Remove unsupported REST…
openapi-sdkautomation[bot] Sep 19, 2019
7ce402a
[AutoPR Microsoft.Azure.Management.Logic] [LogicApps] New Api version…
openapi-sdkautomation[bot] Sep 20, 2019
04c2939
[AutoPR Microsoft.Azure.Management.DataMigration] Add aad domain name…
openapi-sdkautomation[bot] Sep 23, 2019
1ad9279
[AutoPR Microsoft.Azure.Management.Media] Initial 2019-09-01-preview …
openapi-sdkautomation[bot] Sep 24, 2019
5f8294e
[AutoPR Microsoft.Azure.Management.SecurityCenter] Add ProtectionMode…
openapi-sdkautomation[bot] Sep 24, 2019
7c92960
[AutoPR Microsoft.Azure.Management.DataFactory] [Don't Review for now…
openapi-sdkautomation[bot] Sep 24, 2019
4b3a2fd
[AutoPR Microsoft.Azure.Management.DataFactory] [DataFactory] - Add C…
openapi-sdkautomation[bot] Sep 24, 2019
27ed93f
[AutoPR Microsoft.Azure.Management.Storage] [SRP] Add nextLink to Sto…
openapi-sdkautomation[bot] Sep 25, 2019
52c6ab7
Generated from b86adb1353a8bc55b1f587f3f6b646f07ff14af2 (#212)
openapi-sdkautomation[bot] Sep 25, 2019
3fa1f0f
Generated from 8cb028d8acfe861317992cff12232d4bbfc3a795 (#241)
openapi-sdkautomation[bot] Sep 26, 2019
c73d797
Generated from 0fdafe5376ca9140f2dd7e6552b51eb7e5c9aafc
Sep 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

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;
}
}

}
}
Loading