Interface ManagedEnvironmentsClient


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

      • list

        com.azure.core.http.rest.PagedIterable<ManagedEnvironmentInner> 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<ManagedEnvironmentInner> 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<ManagedEnvironmentInner> 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<ManagedEnvironmentInner> 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

        ManagedEnvironmentInner getByResourceGroup​(String resourceGroupName,
                                                   String environmentName)
        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.
        environmentName - 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<ManagedEnvironmentInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                  String environmentName,
                                                                                                  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.
        environmentName - 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>,​ManagedEnvironmentInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                        String environmentName,
                                                                                                                                                                        ManagedEnvironmentInner environmentEnvelope)
        Creates or updates a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        Returns:
        the SyncPoller for polling of an environment for hosting 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>,​ManagedEnvironmentInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                        String environmentName,
                                                                                                                                                                        ManagedEnvironmentInner environmentEnvelope,
                                                                                                                                                                        com.azure.core.util.Context context)
        Creates or updates a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of an environment for hosting 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.
      • createOrUpdate

        ManagedEnvironmentInner createOrUpdate​(String resourceGroupName,
                                               String environmentName,
                                               ManagedEnvironmentInner environmentEnvelope)
        Creates or updates a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        Returns:
        an environment for hosting 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.
      • createOrUpdate

        ManagedEnvironmentInner createOrUpdate​(String resourceGroupName,
                                               String environmentName,
                                               ManagedEnvironmentInner environmentEnvelope,
                                               com.azure.core.util.Context context)
        Creates or updates a Managed Environment used to host container apps.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        context - The context to associate with this operation.
        Returns:
        an environment for hosting 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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String environmentName)
        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.
        environmentName - Name of the Environment.
        Returns:
        the SyncPoller for polling of long-running 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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String environmentName,
                                                                                                                          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.
        environmentName - Name of the Environment.
        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.
        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 environmentName)
        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.
        environmentName - 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 environmentName,
                    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.
        environmentName - 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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUpdate​(String resourceGroupName,
                                                                                                                          String environmentName,
                                                                                                                          ManagedEnvironmentInner environmentEnvelope)
        Patches a Managed Environment using JSON Merge Patch.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        Returns:
        the SyncPoller for polling of long-running 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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUpdate​(String resourceGroupName,
                                                                                                                          String environmentName,
                                                                                                                          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.
        environmentName - Name of the Environment.
        environmentEnvelope - Configuration details of the Environment.
        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.
        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 environmentName,
                    ManagedEnvironmentInner environmentEnvelope)
        Patches a Managed Environment using JSON Merge Patch.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - 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 environmentName,
                    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.
        environmentName - 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.