Interface VNetPeerings
public interface VNetPeerings
Resource collection API of VNetPeerings.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VirtualNetworkPeering resource.void
Deletes the workspace vNetPeering.void
delete
(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Deletes the workspace vNetPeering.void
deleteById
(String id) Deletes the workspace vNetPeering.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the workspace vNetPeering.Gets the workspace vNet Peering.Gets the workspace vNet Peering.com.azure.core.http.rest.Response<VirtualNetworkPeering>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets the workspace vNet Peering.com.azure.core.http.rest.Response<VirtualNetworkPeering>
getWithResponse
(String resourceGroupName, String workspaceName, String peeringName, com.azure.core.util.Context context) Gets the workspace vNet Peering.com.azure.core.http.rest.PagedIterable<VirtualNetworkPeering>
listByWorkspace
(String resourceGroupName, String workspaceName) Lists the workspace vNet Peerings.com.azure.core.http.rest.PagedIterable<VirtualNetworkPeering>
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<VirtualNetworkPeering> 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.
-
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.
-
listByWorkspace
com.azure.core.http.rest.PagedIterable<VirtualNetworkPeering> 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<VirtualNetworkPeering> 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.
-
getById
Gets the workspace vNet Peering.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<VirtualNetworkPeering> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the workspace vNet Peering.- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes the workspace vNetPeering.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Deletes the workspace vNetPeering.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new VirtualNetworkPeering resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new VirtualNetworkPeering definition.
-