Interface ManagedEnvironments


  • public interface ManagedEnvironments
    Resource collection API of ManagedEnvironments.
    • Method Detail

      • list

        com.azure.core.http.rest.PagedIterable<ManagedEnvironment> list()
        Get all Managed Environments for a subscription.
        Returns:
        all Managed Environments for a subscription as paginated response with PagedIterable.
        Throws:
        DefaultErrorResponseErrorException - 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<ManagedEnvironment> list​(com.azure.core.util.Context context)
        Get all Managed Environments for a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all Managed Environments for a subscription 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<ManagedEnvironment> listByResourceGroup​(String resourceGroupName)
        Get all the Managed Environments in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        Returns:
        all the Managed Environments in a resource group 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<ManagedEnvironment> listByResourceGroup​(String resourceGroupName,
                                                                                       com.azure.core.util.Context context)
        Get all the Managed Environments in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        context - The context to associate with this operation.
        Returns:
        all the Managed Environments in a resource group 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.
      • getByResourceGroup

        ManagedEnvironment getByResourceGroup​(String resourceGroupName,
                                              String name)
        Get the properties of a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        Returns:
        the properties of a Managed Environment used to host container apps.
        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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<ManagedEnvironment> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                             String name,
                                                                                             com.azure.core.util.Context context)
        Get the properties of a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        context - The context to associate with this operation.
        Returns:
        the properties of a Managed Environment used to host container apps 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.
      • deleteByResourceGroup

        void deleteByResourceGroup​(String resourceGroupName,
                                   String name)
        Delete a Managed Environment if it does not have any container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        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.
      • delete

        void delete​(String resourceGroupName,
                    String name,
                    com.azure.core.util.Context context)
        Delete a Managed Environment if it does not have any container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        context - The context to associate with this operation.
        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.
      • update

        void update​(String resourceGroupName,
                    String name,
                    ManagedEnvironmentInner environmentEnvelope)
        Patches a Managed Environment using JSON Merge Patch.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        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.
      • update

        void update​(String resourceGroupName,
                    String name,
                    ManagedEnvironmentInner environmentEnvelope,
                    com.azure.core.util.Context context)
        Patches a Managed Environment using JSON Merge Patch.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        name - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        context - The context to associate with this operation.
        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.
      • getById

        ManagedEnvironment getById​(String id)
        Get the properties of a Managed Environment used to host container apps.
        Parameters:
        id - the resource ID.
        Returns:
        the properties of a Managed Environment used to host container apps 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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<ManagedEnvironment> getByIdWithResponse​(String id,
                                                                                  com.azure.core.util.Context context)
        Get the properties of a Managed Environment used to host container apps.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        Returns:
        the properties of a Managed Environment used to host container apps 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.
      • deleteByIdWithResponse

        void deleteByIdWithResponse​(String id,
                                    com.azure.core.util.Context context)
        Delete a Managed Environment if it does not have any container apps.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        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.