AutoscaleSettingsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:autoscale_settings> attribute.

Constructor

AutoscaleSettingsOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates an autoscale setting.

delete

Deletes and autoscale setting.

get

Gets an autoscale setting.

list_by_resource_group

Lists the autoscale settings for a resource group.

list_by_subscription

Lists the autoscale settings for a subscription.

update

Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.

create_or_update

Creates or updates an autoscale setting.

create_or_update(resource_group_name: str, autoscale_setting_name: str, parameters: _models.AutoscaleSettingResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AutoscaleSettingResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

autoscale_setting_name
Required
str

The autoscale setting name. Required.

parameters
Required

Parameters supplied to the operation. Is either a AutoscaleSettingResource type or a IO[bytes] type. Required.

Returns

Type Description

AutoscaleSettingResource or the result of cls(response)

Exceptions

Type Description

delete

Deletes and autoscale setting.

delete(resource_group_name: str, autoscale_setting_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

autoscale_setting_name
Required
str

The autoscale setting name. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets an autoscale setting.

get(resource_group_name: str, autoscale_setting_name: str, **kwargs: Any) -> AutoscaleSettingResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

autoscale_setting_name
Required
str

The autoscale setting name. Required.

Returns

Type Description

AutoscaleSettingResource or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Lists the autoscale settings for a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[AutoscaleSettingResource]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of either AutoscaleSettingResource or the result of cls(response)

Exceptions

Type Description

list_by_subscription

Lists the autoscale settings for a subscription.

list_by_subscription(**kwargs: Any) -> ItemPaged[AutoscaleSettingResource]

Returns

Type Description

An iterator like instance of either AutoscaleSettingResource or the result of cls(response)

Exceptions

Type Description

update

Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.

update(resource_group_name: str, autoscale_setting_name: str, autoscale_setting_resource: _models.AutoscaleSettingResourcePatch, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AutoscaleSettingResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

autoscale_setting_name
Required
str

The autoscale setting name. Required.

autoscale_setting_resource
Required

Parameters supplied to the operation. Is either a AutoscaleSettingResourcePatch type or a IO[bytes] type. Required.

Returns

Type Description

AutoscaleSettingResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv181\\Lib\\site-packages\\azure\\mgmt\\monitor\\models\\__init__.py'>