Share via


StartStopManagedInstanceSchedulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:start_stop_managed_instance_schedules> attribute.

Constructor

StartStopManagedInstanceSchedulesOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates the managed instance's Start/Stop schedule.

delete

Deletes the managed instance's Start/Stop schedule.

get

Gets the managed instance's Start/Stop schedule.

list_by_instance

Lists the managed instance's Start/Stop schedules.

create_or_update

Creates or updates the managed instance's Start/Stop schedule.

async create_or_update(resource_group_name: str, managed_instance_name: str, start_stop_schedule_name: str | _models.StartStopScheduleName, parameters: _models.StartStopManagedInstanceSchedule, *, content_type: str = 'application/json', **kwargs: Any) -> _models.StartStopManagedInstanceSchedule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

start_stop_schedule_name
Required

Name of the managed instance Start/Stop schedule. "default" Required.

parameters
Required

The requested managed instance Start/Stop schedule. Is either a StartStopManagedInstanceSchedule type or a IO[bytes] type. Required.

Returns

Type Description

StartStopManagedInstanceSchedule or the result of cls(response)

Exceptions

Type Description

delete

Deletes the managed instance's Start/Stop schedule.

async delete(resource_group_name: str, managed_instance_name: str, start_stop_schedule_name: str | StartStopScheduleName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

start_stop_schedule_name
Required

Name of the managed instance Start/Stop schedule. "default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the managed instance's Start/Stop schedule.

async get(resource_group_name: str, managed_instance_name: str, start_stop_schedule_name: str | StartStopScheduleName, **kwargs: Any) -> StartStopManagedInstanceSchedule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

start_stop_schedule_name
Required

Name of the managed instance Start/Stop schedule. "default" Required.

Returns

Type Description

StartStopManagedInstanceSchedule or the result of cls(response)

Exceptions

Type Description

list_by_instance

Lists the managed instance's Start/Stop schedules.

list_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[StartStopManagedInstanceSchedule]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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