RunbookDraftOperations Class

RunbookDraftOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
RunbookDraftOperations

Constructor

RunbookDraftOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_replace_content

Replaces the runbook draft content.

get

Retrieve the runbook draft identified by runbook name.

get_content

Retrieve the content of runbook draft identified by runbook name.

undo_edit

Undo draft edit to last known published state identified by runbook name.

begin_replace_content

Replaces the runbook draft content.

begin_replace_content(resource_group_name: str, automation_account_name: str, runbook_name: str, runbook_content: str, **kwargs: Any) -> LROPoller[IO]

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

automation_account_name
str
Required

The name of the automation account.

runbook_name
str
Required

The runbook name.

runbook_content
str
Required

The runbook draft content.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either IO or the result of cls(response)

Return type

LROPoller[<xref:IO>]

Exceptions

get

Retrieve the runbook draft identified by runbook name.

get(resource_group_name: str, automation_account_name: str, runbook_name: str, **kwargs: Any) -> _models.RunbookDraft

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

automation_account_name
str
Required

The name of the automation account.

runbook_name
str
Required

The runbook name.

cls
callable

A custom type or function that will be passed the direct response

Returns

RunbookDraft, or the result of cls(response)

Return type

Exceptions

get_content

Retrieve the content of runbook draft identified by runbook name.

get_content(resource_group_name: str, automation_account_name: str, runbook_name: str, **kwargs: Any) -> IO

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

automation_account_name
str
Required

The name of the automation account.

runbook_name
str
Required

The runbook name.

cls
callable

A custom type or function that will be passed the direct response

Returns

IO, or the result of cls(response)

Return type

<xref:IO>

Exceptions

undo_edit

Undo draft edit to last known published state identified by runbook name.

undo_edit(resource_group_name: str, automation_account_name: str, runbook_name: str, **kwargs: Any) -> _models.RunbookDraftUndoEditResult

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

automation_account_name
str
Required

The name of the automation account.

runbook_name
str
Required

The runbook name.

cls
callable

A custom type or function that will be passed the direct response

Returns

RunbookDraftUndoEditResult, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.automation.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\automation\\models\\__init__.py'>