Interface VNetPeeringsClient
public interface VNetPeeringsClient
An instance of this class provides access to all the operations defined in VNetPeeringsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,
VirtualNetworkPeeringInner> beginCreateOrUpdate
(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) Creates vNet Peering for workspace.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,
VirtualNetworkPeeringInner> beginCreateOrUpdate
(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, com.azure.core.util.Context context) Creates vNet Peering for workspace.beginDelete
(String resourceGroupName, String workspaceName, String peeringName) Deletes the workspace vNetPeering.beginDelete
(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Deletes the workspace vNetPeering.createOrUpdate
(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) Creates vNet Peering for workspace.createOrUpdate
(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, com.azure.core.util.Context context) Creates vNet Peering for workspace.void
Deletes the workspace vNetPeering.void
delete
(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Deletes the workspace vNetPeering.Gets the workspace vNet Peering.com.azure.core.http.rest.Response<VirtualNetworkPeeringInner>
getWithResponse
(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Gets the workspace vNet Peering.com.azure.core.http.rest.PagedIterable<VirtualNetworkPeeringInner>
listByWorkspace
(String resourceGroupName, String workspaceName) Lists the workspace vNet Peerings.com.azure.core.http.rest.PagedIterable<VirtualNetworkPeeringInner>
listByWorkspace
(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Lists the workspace vNet Peerings.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<VirtualNetworkPeeringInner> getWithResponse(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Gets the workspace vNet Peering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.context
- The context to associate with this operation.- Returns:
- the workspace vNet Peering along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets the workspace vNet Peering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.- Returns:
- the workspace vNet Peering.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String workspaceName, String peeringName) Deletes the workspace vNetPeering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Deletes the workspace vNetPeering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes the workspace vNetPeering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Deletes the workspace vNetPeering.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdate(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) Creates vNet Peering for workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.virtualNetworkPeeringParameters
- Parameters supplied to the create workspace vNet Peering.- Returns:
- the
SyncPoller
for polling of peerings in a VirtualNetwork resource. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdate(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, com.azure.core.util.Context context) Creates vNet Peering for workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.virtualNetworkPeeringParameters
- Parameters supplied to the create workspace vNet Peering.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of peerings in a VirtualNetwork resource. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) Creates vNet Peering for workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.virtualNetworkPeeringParameters
- Parameters supplied to the create workspace vNet Peering.- Returns:
- peerings in a VirtualNetwork resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String workspaceName, String peeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, com.azure.core.util.Context context) Creates vNet Peering for workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.peeringName
- The name of the workspace vNet peering.virtualNetworkPeeringParameters
- Parameters supplied to the create workspace vNet Peering.context
- The context to associate with this operation.- Returns:
- peerings in a VirtualNetwork resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByWorkspace
com.azure.core.http.rest.PagedIterable<VirtualNetworkPeeringInner> listByWorkspace(String resourceGroupName, String workspaceName) Lists the workspace vNet Peerings.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.- Returns:
- gets all virtual network peerings under a workspace as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByWorkspace
com.azure.core.http.rest.PagedIterable<VirtualNetworkPeeringInner> listByWorkspace(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Lists the workspace vNet Peerings.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- gets all virtual network peerings under a workspace as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorInfoException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-