Interface DaprComponentsClient


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

      • list

        com.azure.core.http.rest.PagedIterable<DaprComponentInner> list​(String resourceGroupName,
                                                                        String environmentName)
        Get the Dapr Components for a managed environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        Returns:
        the Dapr Components for a managed environment 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.
      • list

        com.azure.core.http.rest.PagedIterable<DaprComponentInner> list​(String resourceGroupName,
                                                                        String environmentName,
                                                                        com.azure.core.util.Context context)
        Get the Dapr Components for a managed environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        context - The context to associate with this operation.
        Returns:
        the Dapr Components for a managed environment 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.
      • get

        DaprComponentInner get​(String resourceGroupName,
                               String environmentName,
                               String componentName)
        Get a dapr component.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        Returns:
        a dapr component.
        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.
      • getWithResponse

        com.azure.core.http.rest.Response<DaprComponentInner> getWithResponse​(String resourceGroupName,
                                                                              String environmentName,
                                                                              String componentName,
                                                                              com.azure.core.util.Context context)
        Get a dapr component.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        context - The context to associate with this operation.
        Returns:
        a dapr component 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.
      • createOrUpdate

        DaprComponentInner createOrUpdate​(String resourceGroupName,
                                          String environmentName,
                                          String componentName,
                                          DaprComponentInner daprComponentEnvelope)
        Creates or updates a Dapr Component in a Managed Environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        daprComponentEnvelope - Configuration details of the Dapr Component.
        Returns:
        dapr Component.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<DaprComponentInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                         String environmentName,
                                                                                         String componentName,
                                                                                         DaprComponentInner daprComponentEnvelope,
                                                                                         com.azure.core.util.Context context)
        Creates or updates a Dapr Component in a Managed Environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        daprComponentEnvelope - Configuration details of the Dapr Component.
        context - The context to associate with this operation.
        Returns:
        dapr Component 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.
      • delete

        void delete​(String resourceGroupName,
                    String environmentName,
                    String componentName)
        Delete a Dapr Component from a Managed Environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String environmentName,
                                                                   String componentName,
                                                                   com.azure.core.util.Context context)
        Delete a Dapr Component from a Managed Environment.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        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.
      • listSecrets

        DaprSecretsCollectionInner listSecrets​(String resourceGroupName,
                                               String environmentName,
                                               String componentName)
        List secrets for a dapr component.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        Returns:
        dapr component Secrets Collection ARM resource.
        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.
      • listSecretsWithResponse

        com.azure.core.http.rest.Response<DaprSecretsCollectionInner> listSecretsWithResponse​(String resourceGroupName,
                                                                                              String environmentName,
                                                                                              String componentName,
                                                                                              com.azure.core.util.Context context)
        List secrets for a dapr component.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        environmentName - Name of the Managed Environment.
        componentName - Name of the Dapr Component.
        context - The context to associate with this operation.
        Returns:
        dapr component Secrets Collection ARM resource 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.