Interface DaprComponents
-
public interface DaprComponents
Resource collection API of DaprComponents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DaprComponent.DefinitionStages.Blank
define(String name)
Begins definition for a new DaprComponent resource.void
delete(String resourceGroupName, String environmentName, String name)
Delete a Dapr Component from a Managed Environment.void
deleteById(String id)
Delete a Dapr Component from a Managed Environment.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Delete a Dapr Component from a Managed Environment.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String resourceGroupName, String environmentName, String name, com.azure.core.util.Context context)
Delete a Dapr Component from a Managed Environment.DaprComponent
get(String resourceGroupName, String environmentName, String name)
Get a dapr component.DaprComponent
getById(String id)
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 name, com.azure.core.util.Context context)
Get a dapr component.com.azure.core.http.rest.PagedIterable<DaprComponent>
list(String resourceGroupName, String environmentName)
Get the Dapr Components for a managed environment.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.DaprSecretsCollection
listSecrets(String resourceGroupName, String environmentName, String name)
List secrets for a dapr component.com.azure.core.http.rest.Response<DaprSecretsCollection>
listSecretsWithResponse(String resourceGroupName, String environmentName, String name, com.azure.core.util.Context context)
List secrets for a dapr component.
-
-
-
Method Detail
-
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.
-
get
DaprComponent get(String resourceGroupName, String environmentName, String name)
Get a dapr component.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.name
- 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<DaprComponent> getWithResponse(String resourceGroupName, String environmentName, String name, 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.name
- 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.
-
delete
void delete(String resourceGroupName, String environmentName, String name)
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.name
- 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 name, 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.name
- 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
DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name)
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.name
- 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<DaprSecretsCollection> listSecretsWithResponse(String resourceGroupName, String environmentName, String name, 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.name
- 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.
-
getById
DaprComponent getById(String id)
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
void deleteById(String id)
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 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
DaprComponent.DefinitionStages.Blank define(String name)
Begins definition for a new DaprComponent resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new DaprComponent definition.
-
-