Interface Configurations
public interface Configurations
Resource collection API of Configurations.
-
Method Summary
Modifier and TypeMethodDescriptioncreateInSubscription
(ConfigurationName configurationName, ConfigDataInner configContract) Create/Overwrite Azure Advisor configuration.com.azure.core.http.rest.Response<ConfigData>
createInSubscriptionWithResponse
(ConfigurationName configurationName, ConfigDataInner configContract, com.azure.core.util.Context context) Create/Overwrite Azure Advisor configuration.define
(ConfigurationName name) Begins definition for a new ConfigData resource.com.azure.core.http.rest.PagedIterable<ConfigData>
list()
Retrieve Azure Advisor configurations.com.azure.core.http.rest.PagedIterable<ConfigData>
list
(com.azure.core.util.Context context) Retrieve Azure Advisor configurations.com.azure.core.http.rest.PagedIterable<ConfigData>
listByResourceGroup
(String resourceGroup) Retrieve Azure Advisor configurations.com.azure.core.http.rest.PagedIterable<ConfigData>
listByResourceGroup
(String resourceGroup, com.azure.core.util.Context context) Retrieve Azure Advisor configurations.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ConfigData> list()Retrieve Azure Advisor configurations.Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
- Returns:
- the list of Advisor configurations as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
Retrieve Azure Advisor configurations.Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
- Parameters:
context
- The context to associate with this operation.- Returns:
- the list of Advisor configurations as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createInSubscriptionWithResponse
com.azure.core.http.rest.Response<ConfigData> createInSubscriptionWithResponse(ConfigurationName configurationName, ConfigDataInner configContract, com.azure.core.util.Context context) Create/Overwrite Azure Advisor configuration.Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.
- Parameters:
configurationName
- Advisor configuration name. Value must be 'default'.configContract
- The Azure Advisor configuration data structure.context
- The context to associate with this operation.- Returns:
- the Advisor configuration data structure along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createInSubscription
ConfigData createInSubscription(ConfigurationName configurationName, ConfigDataInner configContract) Create/Overwrite Azure Advisor configuration.Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.
- Parameters:
configurationName
- Advisor configuration name. Value must be 'default'.configContract
- The Azure Advisor configuration data structure.- Returns:
- the Advisor configuration data structure.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Retrieve Azure Advisor configurations.- Parameters:
resourceGroup
- The name of the Azure resource group.- Returns:
- the list of Advisor configurations as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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<ConfigData> listByResourceGroup(String resourceGroup, com.azure.core.util.Context context) Retrieve Azure Advisor configurations.- Parameters:
resourceGroup
- The name of the Azure resource group.context
- The context to associate with this operation.- Returns:
- the list of Advisor configurations as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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 ConfigData resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ConfigData definition.
-