
com.azure.resourcemanager.databricks.fluent.VNetPeeringsClient Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.databricks.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databricks.fluent.models.VirtualNetworkPeeringInner;
/**
* An instance of this class provides access to all the operations defined in VNetPeeringsClient.
*/
public interface VNetPeeringsClient {
/**
* Gets the workspace vNet Peering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the workspace vNet Peering along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String workspaceName,
String peeringName, Context context);
/**
* Gets the workspace vNet Peering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the workspace vNet Peering.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualNetworkPeeringInner get(String resourceGroupName, String workspaceName, String peeringName);
/**
* Deletes the workspace vNetPeering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String peeringName);
/**
* Deletes the workspace vNetPeering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String peeringName,
Context context);
/**
* Deletes the workspace vNetPeering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String peeringName);
/**
* Deletes the workspace vNetPeering.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String peeringName, Context context);
/**
* Creates vNet Peering for workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of peerings in a VirtualNetwork resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualNetworkPeeringInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String peeringName,
VirtualNetworkPeeringInner virtualNetworkPeeringParameters);
/**
* Creates vNet Peering for workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of peerings in a VirtualNetwork resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualNetworkPeeringInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String peeringName,
VirtualNetworkPeeringInner virtualNetworkPeeringParameters, Context context);
/**
* Creates vNet Peering for workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return peerings in a VirtualNetwork resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String workspaceName, String peeringName,
VirtualNetworkPeeringInner virtualNetworkPeeringParameters);
/**
* Creates vNet Peering for workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param peeringName The name of the workspace vNet peering.
* @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return peerings in a VirtualNetwork resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String workspaceName, String peeringName,
VirtualNetworkPeeringInner virtualNetworkPeeringParameters, Context context);
/**
* Lists the workspace vNet Peerings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return gets all virtual network peerings under a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
/**
* Lists the workspace vNet Peerings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.databricks.models.ErrorInfoException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return gets all virtual network peerings under a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName,
Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy