/// <summary> /// Creates a new Private Endpoint Connection or updates an existing one. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='privateEndpointConnectionRequest'> /// </param> public static PrivateEndpointConnection CreateOrUpdate(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, string privateEndpointConnectionName, PrivateEndpointConnectionRequest privateEndpointConnectionRequest) { return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest).GetAwaiter().GetResult()); }
/// <summary> /// Approves or rejects a private endpoint connection /// </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='privateEndpointConnectionName'> /// The private endpoint connection name. /// </param> /// <param name='privateEndpointWrapper'> /// </param> /// <param name='ifMatch'> /// ETag of the private endpoint connection entity. Should only be specified /// for update, for which it should match existing entity or can be * for /// unconditional update. /// </param> public static PrivateEndpointConnectionResource CreateOrUpdate(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string factoryName, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, string ifMatch = default(string)) { return(operations.CreateOrUpdateAsync(resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch).GetAwaiter().GetResult()); }