Interface VmmServersClient


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

      • getByResourceGroup

        VmmServerInner getByResourceGroup​(String resourceGroupName,
                                          String vmmServerName)
        Implements VMMServer GET method.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        Returns:
        the VmmServers 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<VmmServerInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                         String vmmServerName,
                                                                                         com.azure.core.util.Context context)
        Implements VMMServer GET method.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        context - The context to associate with this operation.
        Returns:
        the VmmServers 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<VmmServerInner>,​VmmServerInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                      String vmmServerName,
                                                                                                                                                      VmmServerInner body)
        Onboards the SCVMM fabric as an Azure VmmServer resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - Request payload.
        Returns:
        the SyncPoller for polling of the VmmServers 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<VmmServerInner>,​VmmServerInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                      String vmmServerName,
                                                                                                                                                      VmmServerInner body,
                                                                                                                                                      com.azure.core.util.Context context)
        Onboards the SCVMM fabric as an Azure VmmServer resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - Request payload.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of the VmmServers 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

        VmmServerInner createOrUpdate​(String resourceGroupName,
                                      String vmmServerName,
                                      VmmServerInner body)
        Onboards the SCVMM fabric as an Azure VmmServer resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - Request payload.
        Returns:
        the VmmServers 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

        VmmServerInner createOrUpdate​(String resourceGroupName,
                                      String vmmServerName,
                                      VmmServerInner body,
                                      com.azure.core.util.Context context)
        Onboards the SCVMM fabric as an Azure VmmServer resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - Request payload.
        context - The context to associate with this operation.
        Returns:
        the VmmServers 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 vmmServerName,
                                                                                                                          Boolean force)
        Deboards the SCVMM fabric from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        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 vmmServerName,
                                                                                                                          Boolean force,
                                                                                                                          com.azure.core.util.Context context)
        Deboards the SCVMM fabric from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        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 vmmServerName,
                    Boolean force)
        Deboards the SCVMM fabric from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        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 vmmServerName)
        Deboards the SCVMM fabric from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        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 vmmServerName,
                    Boolean force,
                    com.azure.core.util.Context context)
        Deboards the SCVMM fabric from Azure.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        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<VmmServerInner>,​VmmServerInner> beginUpdate​(String resourceGroupName,
                                                                                                                                              String vmmServerName,
                                                                                                                                              ResourcePatch body)
        Updates the VmmServers resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - VmmServers patch payload.
        Returns:
        the SyncPoller for polling of the VmmServers 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<VmmServerInner>,​VmmServerInner> beginUpdate​(String resourceGroupName,
                                                                                                                                              String vmmServerName,
                                                                                                                                              ResourcePatch body,
                                                                                                                                              com.azure.core.util.Context context)
        Updates the VmmServers resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - VmmServers patch payload.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of the VmmServers 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

        VmmServerInner update​(String resourceGroupName,
                              String vmmServerName,
                              ResourcePatch body)
        Updates the VmmServers resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - VmmServers patch payload.
        Returns:
        the VmmServers 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

        VmmServerInner update​(String resourceGroupName,
                              String vmmServerName,
                              ResourcePatch body,
                              com.azure.core.util.Context context)
        Updates the VmmServers resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmmServerName - Name of the VMMServer.
        body - VmmServers patch payload.
        context - The context to associate with this operation.
        Returns:
        the VmmServers 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<VmmServerInner> listByResourceGroup​(String resourceGroupName)
        List of VmmServers in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        list of VmmServers 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<VmmServerInner> listByResourceGroup​(String resourceGroupName,
                                                                                   com.azure.core.util.Context context)
        List of VmmServers in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        list of VmmServers 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<VmmServerInner> list()
        List of VmmServers in a subscription.
        Returns:
        list of VmmServers 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<VmmServerInner> list​(com.azure.core.util.Context context)
        List of VmmServers in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        list of VmmServers 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.