Interface VirtualNetworksClient


  • public interface VirtualNetworksClient
    An instance of this class provides access to all the operations defined in VirtualNetworksClient.
    • Method Detail

      • getByResourceGroup

        VirtualNetworkInner getByResourceGroup​(String resourceGroupName,
                                               String virtualNetworkName)
        Implements VirtualNetwork GET method.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        Returns:
        the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<VirtualNetworkInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                              String virtualNetworkName,
                                                                                              com.azure.core.util.Context context)
        Implements VirtualNetwork GET method.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        context - The context to associate with this operation.
        Returns:
        the VirtualNetworks resource definition along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<VirtualNetworkInner>,​VirtualNetworkInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String virtualNetworkName,
                                                                                                                                                                VirtualNetworkInner body)
        Onboards the ScVmm virtual network as an Azure virtual network resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - Request payload.
        Returns:
        the SyncPoller for polling of the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<VirtualNetworkInner>,​VirtualNetworkInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String virtualNetworkName,
                                                                                                                                                                VirtualNetworkInner body,
                                                                                                                                                                com.azure.core.util.Context context)
        Onboards the ScVmm virtual network as an Azure virtual network resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - Request payload.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualNetworkInner createOrUpdate​(String resourceGroupName,
                                           String virtualNetworkName,
                                           VirtualNetworkInner body)
        Onboards the ScVmm virtual network as an Azure virtual network resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - Request payload.
        Returns:
        the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualNetworkInner createOrUpdate​(String resourceGroupName,
                                           String virtualNetworkName,
                                           VirtualNetworkInner body,
                                           com.azure.core.util.Context context)
        Onboards the ScVmm virtual network as an Azure virtual network resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - Request payload.
        context - The context to associate with this operation.
        Returns:
        the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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 virtualNetworkName,
                                                                                                                          Boolean force)
        Deregisters the ScVmm virtual network from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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 virtualNetworkName,
                                                                                                                          Boolean force,
                                                                                                                          com.azure.core.util.Context context)
        Deregisters the ScVmm virtual network from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
        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.
        com.azure.core.management.exception.ManagementException - 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 virtualNetworkName,
                    Boolean force)
        Deregisters the ScVmm virtual network from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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 virtualNetworkName)
        Deregisters the ScVmm virtual network from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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 virtualNetworkName,
                    Boolean force,
                    com.azure.core.util.Context context)
        Deregisters the ScVmm virtual network from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,​VirtualNetworkInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String virtualNetworkName,
                                                                                                                                                        ResourcePatch body)
        Updates the VirtualNetworks resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - VirtualNetworks patch payload.
        Returns:
        the SyncPoller for polling of the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,​VirtualNetworkInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String virtualNetworkName,
                                                                                                                                                        ResourcePatch body,
                                                                                                                                                        com.azure.core.util.Context context)
        Updates the VirtualNetworks resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - VirtualNetworks patch payload.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        VirtualNetworkInner update​(String resourceGroupName,
                                   String virtualNetworkName,
                                   ResourcePatch body)
        Updates the VirtualNetworks resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - VirtualNetworks patch payload.
        Returns:
        the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        VirtualNetworkInner update​(String resourceGroupName,
                                   String virtualNetworkName,
                                   ResourcePatch body,
                                   com.azure.core.util.Context context)
        Updates the VirtualNetworks resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualNetworkName - Name of the VirtualNetwork.
        body - VirtualNetworks patch payload.
        context - The context to associate with this operation.
        Returns:
        the VirtualNetworks resource definition.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> listByResourceGroup​(String resourceGroupName)
        List of VirtualNetworks in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        list of VirtualNetworks as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> listByResourceGroup​(String resourceGroupName,
                                                                                        com.azure.core.util.Context context)
        List of VirtualNetworks in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        list of VirtualNetworks as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> list()
        List of VirtualNetworks in a subscription.
        Returns:
        list of VirtualNetworks as paginated response with PagedIterable.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> list​(com.azure.core.util.Context context)
        List of VirtualNetworks in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        list of VirtualNetworks as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.