/// <summary> /// Gets the private link resources supported for the managed hsm pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group that contains the managed HSM pool. /// </param> /// <param name='name'> /// Name of the managed HSM Pool /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MHSMPrivateLinkResourceListResult> ListByMHSMResourceAsync(this IMHSMPrivateLinkResourcesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByMHSMResourceWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the private link resources supported for the managed hsm pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group that contains the managed HSM pool. /// </param> /// <param name='name'> /// Name of the managed HSM Pool /// </param> public static MHSMPrivateLinkResourceListResult ListByMHSMResource(this IMHSMPrivateLinkResourcesOperations operations, string resourceGroupName, string name) { return(operations.ListByMHSMResourceAsync(resourceGroupName, name).GetAwaiter().GetResult()); }