Interface ContainerAppsRevisionsClient


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

      • listRevisions

        com.azure.core.http.rest.PagedIterable<RevisionInner> listRevisions​(String resourceGroupName,
                                                                            String containerAppName)
        Get the Revisions for a given Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App for which Revisions are needed.
        Returns:
        the Revisions for a given Container App as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listRevisions

        com.azure.core.http.rest.PagedIterable<RevisionInner> listRevisions​(String resourceGroupName,
                                                                            String containerAppName,
                                                                            String filter,
                                                                            com.azure.core.util.Context context)
        Get the Revisions for a given Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App for which Revisions are needed.
        filter - The filter to apply on the operation.
        context - The context to associate with this operation.
        Returns:
        the Revisions for a given Container App as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getRevision

        RevisionInner getRevision​(String resourceGroupName,
                                  String containerAppName,
                                  String name)
        Get a revision of a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        Returns:
        a revision of a Container App.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getRevisionWithResponse

        com.azure.core.http.rest.Response<RevisionInner> getRevisionWithResponse​(String resourceGroupName,
                                                                                 String containerAppName,
                                                                                 String name,
                                                                                 com.azure.core.util.Context context)
        Get a revision of a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        context - The context to associate with this operation.
        Returns:
        a revision of a Container App along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • activateRevision

        void activateRevision​(String resourceGroupName,
                              String containerAppName,
                              String name)
        Activates a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • activateRevisionWithResponse

        com.azure.core.http.rest.Response<Void> activateRevisionWithResponse​(String resourceGroupName,
                                                                             String containerAppName,
                                                                             String name,
                                                                             com.azure.core.util.Context context)
        Activates a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deactivateRevision

        void deactivateRevision​(String resourceGroupName,
                                String containerAppName,
                                String name)
        Deactivates a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deactivateRevisionWithResponse

        com.azure.core.http.rest.Response<Void> deactivateRevisionWithResponse​(String resourceGroupName,
                                                                               String containerAppName,
                                                                               String name,
                                                                               com.azure.core.util.Context context)
        Deactivates a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restartRevision

        void restartRevision​(String resourceGroupName,
                             String containerAppName,
                             String name)
        Restarts a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restartRevisionWithResponse

        com.azure.core.http.rest.Response<Void> restartRevisionWithResponse​(String resourceGroupName,
                                                                            String containerAppName,
                                                                            String name,
                                                                            com.azure.core.util.Context context)
        Restarts a revision for a Container App.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        containerAppName - Name of the Container App.
        name - Name of the Container App Revision.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        DefaultErrorResponseErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.