Interface AutoscaleSettingsClient

    • Method Detail

      • 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.
        context - The context to associate with this operation.
        Returns:
        represents a collection of autoscale setting resources.
        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.
        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.
      • createOrUpdateAsync

        Mono<AutoscaleSettingResourceInner> createOrUpdateAsync​(String resourceGroupName,
                                                                String autoscaleSettingName,
                                                                AutoscaleSettingResourceInner parameters)
        Creates or updates an autoscale setting.
        Parameters:
        resourceGroupName - The name of the resource group.
        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.
      • createOrUpdate

        AutoscaleSettingResourceInner createOrUpdate​(String resourceGroupName,
                                                     String autoscaleSettingName,
                                                     AutoscaleSettingResourceInner parameters)
        Creates or updates an autoscale setting.
        Parameters:
        resourceGroupName - The name of the resource group.
        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.
      • 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.
        autoscaleSettingName - The autoscale setting name.
        parameters - Parameters supplied to the operation.
        context - The context to associate with this 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.
        autoscaleSettingName - The autoscale setting name.
        Returns:
        the completion.
        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

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String autoscaleSettingName)
        Deletes and autoscale setting.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        autoscaleSettingName - The autoscale setting name.
        Returns:
        the completion.
        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

        void delete​(String resourceGroupName,
                    String autoscaleSettingName)
        Deletes and autoscale setting.
        Parameters:
        resourceGroupName - The name of the resource group.
        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.
      • 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.
        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.
      • 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.
        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.
      • 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.
        autoscaleSettingName - The autoscale setting name.
        context - The context to associate with this operation.
        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.
        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.
      • 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.
        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.
      • 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.
        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.
      • 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.
        autoscaleSettingName - The autoscale setting name.
        autoscaleSettingResource - Parameters supplied to the operation.
        context - The context to associate with this 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.
      • 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.
        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.