Interface AutoscaleSettingsClient
- All Superinterfaces:
InnerSupportsDelete<Void>
,InnerSupportsGet<AutoscaleSettingResourceInner>
,InnerSupportsListing<AutoscaleSettingResourceInner>
public interface AutoscaleSettingsClient
extends InnerSupportsGet<AutoscaleSettingResourceInner>, InnerSupportsListing<AutoscaleSettingResourceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in AutoscaleSettingsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.createOrUpdateAsync
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.com.azure.core.http.rest.Response
<AutoscaleSettingResourceInner> createOrUpdateWithResponse
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters, com.azure.core.util.Context context) Creates or updates an autoscale setting.Mono
<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> createOrUpdateWithResponseAsync
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.void
Deletes and autoscale setting.deleteAsync
(String resourceGroupName, String autoscaleSettingName) Deletes and autoscale setting.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String autoscaleSettingName, com.azure.core.util.Context context) Deletes and autoscale setting.deleteWithResponseAsync
(String resourceGroupName, String autoscaleSettingName) Deletes and autoscale setting.getByResourceGroup
(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.getByResourceGroupAsync
(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.com.azure.core.http.rest.Response
<AutoscaleSettingResourceInner> getByResourceGroupWithResponse
(String resourceGroupName, String autoscaleSettingName, com.azure.core.util.Context context) Gets an autoscale setting.Mono
<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> getByResourceGroupWithResponseAsync
(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.com.azure.core.http.rest.PagedIterable
<AutoscaleSettingResourceInner> list()
Lists the autoscale settings for a subscription.com.azure.core.http.rest.PagedIterable
<AutoscaleSettingResourceInner> list
(com.azure.core.util.Context context) Lists the autoscale settings for a subscription.com.azure.core.http.rest.PagedFlux
<AutoscaleSettingResourceInner> Lists the autoscale settings for a subscription.com.azure.core.http.rest.PagedIterable
<AutoscaleSettingResourceInner> listByResourceGroup
(String resourceGroupName) Lists the autoscale settings for a resource group.com.azure.core.http.rest.PagedIterable
<AutoscaleSettingResourceInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists the autoscale settings for a resource group.com.azure.core.http.rest.PagedFlux
<AutoscaleSettingResourceInner> listByResourceGroupAsync
(String resourceGroupName) Lists the autoscale settings for a resource group.update
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource.updateAsync
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource.com.azure.core.http.rest.Response
<AutoscaleSettingResourceInner> updateWithResponse
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource, com.azure.core.util.Context context) Updates an existing AutoscaleSettingsResource.Mono
<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> updateWithResponseAsync
(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource.
-
Method Details
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<AutoscaleSettingResourceInner> listByResourceGroupAsync(String resourceGroupName) Lists the autoscale settings for a resource group.- Specified by:
listByResourceGroupAsync
in interfaceInnerSupportsListing<AutoscaleSettingResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of autoscale setting resources as paginated response with
PagedFlux
. - 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<AutoscaleSettingResourceInner> listByResourceGroup(String resourceGroupName) Lists the autoscale settings for a resource group.- Specified by:
listByResourceGroup
in interfaceInnerSupportsListing<AutoscaleSettingResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of autoscale setting resources 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<AutoscaleSettingResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists the autoscale settings for 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:
- represents a collection of autoscale setting resources 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.parameters
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource along with
Response
on successful completion ofMono
. - 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.
-
createOrUpdateAsync
Mono<AutoscaleSettingResourceInner> createOrUpdateAsync(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.parameters
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource on successful completion of
Mono
. - 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<AutoscaleSettingResourceInner> createOrUpdateWithResponse(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters, com.azure.core.util.Context context) Creates or updates an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.parameters
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- the autoscale setting resource 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.
-
createOrUpdate
AutoscaleSettingResourceInner createOrUpdate(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters) Creates or updates an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.parameters
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String autoscaleSettingName) Deletes and autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteAsync
Deletes and autoscale setting.- Specified by:
deleteAsync
in interfaceInnerSupportsDelete<Void>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- Returns:
- A
Mono
that completes when a successful response is received. - 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String autoscaleSettingName, com.azure.core.util.Context context) Deletes and autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.context
- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes and autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- Returns:
- an autoscale setting along with
Response
on successful completion ofMono
. - 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.
-
getByResourceGroupAsync
Mono<AutoscaleSettingResourceInner> getByResourceGroupAsync(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.- Specified by:
getByResourceGroupAsync
in interfaceInnerSupportsGet<AutoscaleSettingResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- Returns:
- an autoscale setting on successful completion of
Mono
. - 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<AutoscaleSettingResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String autoscaleSettingName, com.azure.core.util.Context context) Gets an autoscale setting.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.context
- The context to associate with this operation.- Returns:
- an autoscale setting 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.
-
getByResourceGroup
AutoscaleSettingResourceInner getByResourceGroup(String resourceGroupName, String autoscaleSettingName) Gets an autoscale setting.- Specified by:
getByResourceGroup
in interfaceInnerSupportsGet<AutoscaleSettingResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.- Returns:
- an autoscale setting.
- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AutoscaleSettingResourceInner>> updateWithResponseAsync(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.autoscaleSettingResource
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource along with
Response
on successful completion ofMono
. - 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.
-
updateAsync
Mono<AutoscaleSettingResourceInner> updateAsync(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.autoscaleSettingResource
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource on successful completion of
Mono
. - 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.
-
updateWithResponse
com.azure.core.http.rest.Response<AutoscaleSettingResourceInner> updateWithResponse(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource, com.azure.core.util.Context context) Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.autoscaleSettingResource
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- the autoscale setting resource 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.
-
update
AutoscaleSettingResourceInner update(String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource) Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.autoscaleSettingName
- The autoscale setting name.autoscaleSettingResource
- Parameters supplied to the operation.- Returns:
- the autoscale setting resource.
- 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<AutoscaleSettingResourceInner> listAsync()Lists the autoscale settings for a subscription.- Specified by:
listAsync
in interfaceInnerSupportsListing<AutoscaleSettingResourceInner>
- Returns:
- represents a collection of autoscale setting resources as paginated response with
PagedFlux
. - 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
com.azure.core.http.rest.PagedIterable<AutoscaleSettingResourceInner> list()Lists the autoscale settings for a subscription.- Specified by:
list
in interfaceInnerSupportsListing<AutoscaleSettingResourceInner>
- Returns:
- represents a collection of autoscale setting resources 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
com.azure.core.http.rest.PagedIterable<AutoscaleSettingResourceInner> list(com.azure.core.util.Context context) Lists the autoscale settings for a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- represents a collection of autoscale setting resources 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.
-