/// <summary> /// Updates an existing PrivateLinkScope's tags. To update other fields use the /// CreateOrUpdate method. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='tags'> /// Resource tags /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AzureMonitorPrivateLinkScope> UpdateTagsAsync(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, scopeName, tags, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <AzureMonitorPrivateLinkScope> > ListAsync(this IPrivateLinkScopesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot /// specify a different value for InstrumentationKey nor AppId in the Put /// operation. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='azureMonitorPrivateLinkScopePayload'> /// Properties that need to be specified to create or update a Azure Monitor /// PrivateLinkScope. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AzureMonitorPrivateLinkScope> CreateOrUpdateAsync(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, AzureMonitorPrivateLinkScope azureMonitorPrivateLinkScopePayload, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, scopeName, azureMonitorPrivateLinkScopePayload, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes a Azure Monitor PrivateLinkScope. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> public static void Delete(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName) { operations.DeleteAsync(resourceGroupName, scopeName).GetAwaiter().GetResult(); }
/// <summary> /// Gets a list of Azure Monitor PrivateLinkScopes within a resource group. /// </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> public static IPage <AzureMonitorPrivateLinkScope> ListByResourceGroup(this IPrivateLinkScopesOperations operations, string resourceGroupName) { return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Azure Monitor PrivateLinkScopes within a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <AzureMonitorPrivateLinkScope> ListByResourceGroupNext(this IPrivateLinkScopesOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <AzureMonitorPrivateLinkScope> List(this IPrivateLinkScopesOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Deletes a Azure Monitor PrivateLinkScope. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, scopeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Updates an existing PrivateLinkScope's tags. To update other fields use the /// CreateOrUpdate method. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='tags'> /// Resource tags /// </param> public static AzureMonitorPrivateLinkScope UpdateTags(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.UpdateTagsAsync(resourceGroupName, scopeName, tags).GetAwaiter().GetResult()); }
/// <summary> /// Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot /// specify a different value for InstrumentationKey nor AppId in the Put /// operation. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='azureMonitorPrivateLinkScopePayload'> /// Properties that need to be specified to create or update a Azure Monitor /// PrivateLinkScope. /// </param> public static AzureMonitorPrivateLinkScope CreateOrUpdate(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, AzureMonitorPrivateLinkScope azureMonitorPrivateLinkScopePayload) { return(operations.CreateOrUpdateAsync(resourceGroupName, scopeName, azureMonitorPrivateLinkScopePayload).GetAwaiter().GetResult()); }
/// <summary> /// Returns a Azure Monitor PrivateLinkScope. /// </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='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> public static AzureMonitorPrivateLinkScope Get(this IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName) { return(operations.GetAsync(resourceGroupName, scopeName).GetAwaiter().GetResult()); }