Interface DaprComponents
public interface DaprComponents
Resource collection API of DaprComponents.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new DaprComponent resource.void
Delete a Dapr Component.void
deleteById
(String id) Delete a Dapr Component.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a Dapr Component.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String environmentName, String componentName, com.azure.core.util.Context context) Delete a Dapr Component.Get a dapr component.Get a dapr component.com.azure.core.http.rest.Response<DaprComponent>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a dapr component.com.azure.core.http.rest.Response<DaprComponent>
getWithResponse
(String resourceGroupName, String environmentName, String componentName, com.azure.core.util.Context context) Get a dapr component.com.azure.core.http.rest.PagedIterable<DaprComponent>
Get the Dapr Components for a managed environment.com.azure.core.http.rest.PagedIterable<DaprComponent>
Get the Dapr Components for a managed environment.listSecrets
(String resourceGroupName, String environmentName, String componentName) List secrets for a dapr component.com.azure.core.http.rest.Response<DaprSecretsCollection>
listSecretsWithResponse
(String resourceGroupName, String environmentName, String componentName, com.azure.core.util.Context context) List secrets for a dapr component.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<DaprComponent> 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<DaprComponent> 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.
-
getWithResponse
com.azure.core.http.rest.Response<DaprComponent> 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.
-
get
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.
-
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.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.
-
delete
Delete a Dapr Component.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.
-
listSecretsWithResponse
com.azure.core.http.rest.Response<DaprSecretsCollection> 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 for ListSecrets Action 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.
-
listSecrets
DaprSecretsCollection 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 for ListSecrets Action.
- 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
Get a dapr component.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<DaprComponent> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a dapr component.- Parameters:
id
- the resource ID.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.
-
deleteById
Delete a Dapr Component.Delete a Dapr Component from a Managed Environment.
- Parameters:
id
- the resource ID.- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a Dapr Component.Delete a Dapr Component from a Managed Environment.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new DaprComponent resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new DaprComponent definition.
-