/// <summary> /// Creates a managed private endpoint. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Kusto cluster. /// </param> /// <param name='clusterName'> /// The name of the Kusto cluster. /// </param> /// <param name='managedPrivateEndpointName'> /// The name of the managed private endpoint. /// </param> /// <param name='parameters'> /// The managed private endpoint parameters. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ManagedPrivateEndpoint> CreateOrUpdateAsync(this IManagedPrivateEndpointsOperations operations, string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, managedPrivateEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a managed private endpoint. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='factoryName'> /// The factory name. /// </param> /// <param name='managedVirtualNetworkName'> /// Managed virtual network name /// </param> /// <param name='managedPrivateEndpointName'> /// Managed private endpoint name /// </param> /// <param name='managedPrivateEndpoint'> /// Managed private endpoint resource definition. /// </param> /// <param name='ifMatch'> /// ETag of the managed private endpoint entity. Should only be specified for /// update, for which it should match existing entity or can be * for /// unconditional update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ManagedPrivateEndpointResource> CreateOrUpdateAsync(this IManagedPrivateEndpointsOperations operations, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName, ManagedPrivateEndpointResource managedPrivateEndpoint, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, managedPrivateEndpoint, ifMatch, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }