Interface Applications
public interface Applications
Resource collection API of Applications.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateById
(String applicationId, ApplicationInner parameters) Creates a new managed application.createOrUpdateById
(String applicationId, ApplicationInner parameters, com.azure.core.util.Context context) Creates a new managed application.Begins definition for a new Application resource.void
Deletes the managed application.void
deleteById
(String applicationId) Deletes the managed application.void
deleteById
(String applicationId, com.azure.core.util.Context context) Deletes the managed application.void
deleteByResourceGroup
(String resourceGroupName, String applicationName) Deletes the managed application.Gets the managed application.com.azure.core.http.rest.Response<Application>
getByIdWithResponse
(String applicationId, com.azure.core.util.Context context) Gets the managed application.getByResourceGroup
(String resourceGroupName, String applicationName) Gets the managed application.com.azure.core.http.rest.Response<Application>
getByResourceGroupWithResponse
(String resourceGroupName, String applicationName, com.azure.core.util.Context context) Gets the managed application.com.azure.core.http.rest.PagedIterable<Application>
list()
Gets all the applications within a subscription.com.azure.core.http.rest.PagedIterable<Application>
list
(com.azure.core.util.Context context) Gets all the applications within a subscription.com.azure.core.http.rest.PagedIterable<Application>
listByResourceGroup
(String resourceGroupName) Gets all the applications within a resource group.com.azure.core.http.rest.PagedIterable<Application>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Gets all the applications within a resource group.updateById
(String applicationId) Updates an existing managed application.com.azure.core.http.rest.Response<Application>
updateByIdWithResponse
(String applicationId, ApplicationInner parameters, com.azure.core.util.Context context) Updates an existing managed application.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Application> getByResourceGroupWithResponse(String resourceGroupName, String applicationName, com.azure.core.util.Context context) Gets the managed application.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationName
- The name of the managed application.context
- The context to associate with this operation.- Returns:
- the managed application along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Gets the managed application.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationName
- The name of the managed application.- Returns:
- the managed application.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Deletes the managed application.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationName
- The name of the managed application.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes the managed application.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationName
- The name of the managed application.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Gets all the applications within a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- all the applications within a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- 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<Application> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all the applications within 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 applications within a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- 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<Application> list()Gets all the applications within a subscription.- Returns:
- all the applications within a subscription as paginated response with
PagedIterable
. - Throws:
ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
Gets all the applications within a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- all the applications within a subscription as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- 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<Application> getByIdWithResponse(String applicationId, com.azure.core.util.Context context) Gets the managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.context
- The context to associate with this operation.- Returns:
- the managed application along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets the managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.- Returns:
- the managed application.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes the managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes the managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateById
Creates a new managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.parameters
- Parameters supplied to the create or update a managed application.- Returns:
- information about managed application.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateById
Application createOrUpdateById(String applicationId, ApplicationInner parameters, com.azure.core.util.Context context) Creates a new managed application.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.parameters
- Parameters supplied to the create or update a managed application.context
- The context to associate with this operation.- Returns:
- information about managed application.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateByIdWithResponse
com.azure.core.http.rest.Response<Application> updateByIdWithResponse(String applicationId, ApplicationInner parameters, com.azure.core.util.Context context) Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.parameters
- Parameters supplied to update an existing managed application.context
- The context to associate with this operation.- Returns:
- information about managed application along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateById
Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.- Parameters:
applicationId
- The fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}.- Returns:
- information about managed application.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- 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 Application resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Application definition.
-