ServiceRunnersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

DevTestLabsClient's

<xref:service_runners> attribute.

Constructor

ServiceRunnersOperations(*args, **kwargs)

Methods

create_or_update

Create or replace an existing service runner.

delete

Delete service runner.

get

Get service runner.

create_or_update

Create or replace an existing service runner.

async create_or_update(resource_group_name: str, lab_name: str, name: str, service_runner: _models.ServiceRunner, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ServiceRunner

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

lab_name
Required
str

The name of the lab. Required.

name
Required
str

The name of the service runner. Required.

service_runner
Required

A container for a managed identity to execute DevTest lab services. Is either a ServiceRunner type or a IO[bytes] type. Required.

Returns

Type Description

ServiceRunner or the result of cls(response)

Exceptions

Type Description

delete

Delete service runner.

async delete(resource_group_name: str, lab_name: str, name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

lab_name
Required
str

The name of the lab. Required.

name
Required
str

The name of the service runner. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get service runner.

async get(resource_group_name: str, lab_name: str, name: str, **kwargs: Any) -> ServiceRunner

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

lab_name
Required
str

The name of the lab. Required.

name
Required
str

The name of the service runner. Required.

Returns

Type Description

ServiceRunner or the result of cls(response)

Exceptions

Type Description

Attributes

models

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