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
16 commits
Select commit Hold shift + click to select a range
9517527
Generated from cce264ba7c751076c58518d67e19b9e469832c0c (#136)
openapi-sdkautomation[bot] Aug 27, 2019
55c5bcb
Generated from 92006e420d65cb70e4b93bc5850af575da4efb78 (#162)
openapi-sdkautomation[bot] Aug 29, 2019
6229c52
[AutoPR Microsoft.Azure.Management.HealthcareApis] Move to stable ver…
openapi-sdkautomation[bot] Aug 30, 2019
e5884cd
[AutoPR Microsoft.Azure.Management.DataFactory] Chainingtrigger (#163)
openapi-sdkautomation[bot] Aug 30, 2019
9eb472c
[AutoPR Microsoft.Azure.Management.EventHub] Eventhub: added NetworkR…
openapi-sdkautomation[bot] Aug 30, 2019
511ac18
[AutoPR Microsoft.Azure.Management.Compute] [Compute] Add missing $ex…
openapi-sdkautomation[bot] Aug 30, 2019
81f9788
[AutoPR Microsoft.Azure.Management.CognitiveServices] Fix check domai…
openapi-sdkautomation[bot] Aug 30, 2019
cdef400
Generated from ba2bfe74bad69d5419a8966d712ebb7fbee44941 (#170)
openapi-sdkautomation[bot] Sep 2, 2019
3e21986
[AutoPR Microsoft.Azure.Management.DataFactory] [Data Factory]Add ORC…
openapi-sdkautomation[bot] Sep 3, 2019
1389b8f
[AutoPR Microsoft.Azure.Management.DataFactory] [Datafactory] Add a n…
openapi-sdkautomation[bot] Sep 3, 2019
92b8ed1
[AutoPR Microsoft.Azure.Management.ContainerService] Container Servic…
openapi-sdkautomation[bot] Sep 4, 2019
9115d34
[AutoPR Microsoft.Azure.Management.IotHub] [Hub Generated] Review req…
openapi-sdkautomation[bot] Sep 5, 2019
8c367d3
Generated from 0382c5495183ec9676153aca02fa21e186ef98d3 (#108)
openapi-sdkautomation[bot] Sep 5, 2019
6f5c4b8
[AutoPR Microsoft.Azure.Management.Storage] Add change feed propertie…
openapi-sdkautomation[bot] Sep 6, 2019
1197afb
Generated from 8a6ece51ce3e11abf40c7c78bb9343a93a80874c (#176)
openapi-sdkautomation[bot] Sep 6, 2019
e8031ba
Generated from d0215e3e28bf88ac79e264ecec74268ce685965c
Sep 7, 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