azure.mgmt.devtestlabs.operations module

class azure.mgmt.devtestlabs.operations.LabOperations(client, config, serializer, deserializer)[source]

Bases: object

LabOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_environment(resource_group_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config)[source]

Create virtual machines in a Lab. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • lab_virtual_machine (LabVirtualMachine) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

create_or_update_resource(resource_group_name, name, lab, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing Lab. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • lab (Lab) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Lab

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete lab. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

generate_upload_uri(resource_group_name, name, blob_name=None, custom_headers=None, raw=False, **operation_config)[source]

Generate a URI for uploading custom disk images to a Lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • blob_name (str) – The blob name of the upload URI.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

GenerateUploadUriResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Lab

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_by_resource_group(resource_group_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List labs in a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabPaged

Raises:

CloudError

list_by_subscription(filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List labs in a subscription.

Parameters:
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabPaged

Raises:

CloudError

list_vhds(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]

List disk images available for custom image creation.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabVhdPaged

Raises:

CloudError

patch_resource(resource_group_name, name, lab, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of labs.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the lab.
  • lab (Lab) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Lab

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.ArtifactSourceOperations(client, config, serializer, deserializer)[source]

Bases: object

ArtifactSourceOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, name, artifact_source, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing artifact source.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the artifact source.
  • artifact_source (ArtifactSource) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArtifactSource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete artifact source.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the artifact source.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get artifact source.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the artifact source.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArtifactSource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List artifact sources in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArtifactSourcePaged

Raises:

CloudError

patch_resource(resource_group_name, lab_name, name, artifact_source, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of artifact sources.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the artifact source.
  • artifact_source (ArtifactSource) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArtifactSource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.ArtifactOperations(client, config, serializer, deserializer)[source]

Bases: object

ArtifactOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers=None, raw=False, **operation_config)[source]

Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • artifact_source_name (str) – The name of the artifact source.
  • name (str) – The name of the artifact.
  • generate_arm_template_request (GenerateArmTemplateRequest) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArmTemplateInfo

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, artifact_source_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get artifact.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • artifact_source_name (str) – The name of the artifact source.
  • name (str) – The name of the artifact.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Artifact

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, artifact_source_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List artifacts in a given artifact source.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • artifact_source_name (str) – The name of the artifact source.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ArtifactPaged

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.CostOperations(client, config, serializer, deserializer)[source]

Bases: object

CostOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get cost.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the cost.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Cost

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.CustomImageOperations(client, config, serializer, deserializer)[source]

Bases: object

CustomImageOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, name, custom_image, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing custom image. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the custom image.
  • custom_image (CustomImage) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns CustomImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete custom image. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the custom image.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get custom image.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the custom image.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

CustomImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List custom images in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

CustomImagePaged

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.FormulaOperations(client, config, serializer, deserializer)[source]

Bases: object

FormulaOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, name, formula, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing Formula. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the formula.
  • formula (Formula) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Formula

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete formula.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the formula.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get formula.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the formula.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Formula

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List formulas in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FormulaPaged

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.GalleryImageOperations(client, config, serializer, deserializer)[source]

Bases: object

GalleryImageOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List gallery images in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

GalleryImagePaged

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.PolicySetOperations(client, config, serializer, deserializer)[source]

Bases: object

PolicySetOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
evaluate_policies(resource_group_name, lab_name, name, policies=None, custom_headers=None, raw=False, **operation_config)[source]

Evaluates Lab Policy.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the policy set.
  • policies (list of EvaluatePoliciesProperties) – Policies to evaluate.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

EvaluatePoliciesResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.PolicyOperations(client, config, serializer, deserializer)[source]

Bases: object

PolicyOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing policy.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • policy_set_name (str) – The name of the policy set.
  • name (str) – The name of the policy.
  • policy (Policy) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Policy

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, policy_set_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete policy.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • policy_set_name (str) – The name of the policy set.
  • name (str) – The name of the policy.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, policy_set_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get policy.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • policy_set_name (str) – The name of the policy set.
  • name (str) – The name of the policy.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Policy

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, policy_set_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List policies in a given policy set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • policy_set_name (str) – The name of the policy set.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

PolicyPaged

Raises:

CloudError

patch_resource(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of policies.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • policy_set_name (str) – The name of the policy set.
  • name (str) – The name of the policy.
  • policy (Policy) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Policy

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.ScheduleOperations(client, config, serializer, deserializer)[source]

Bases: object

ScheduleOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, name, schedule, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing schedule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the schedule.
  • schedule (Schedule) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Schedule

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete schedule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the schedule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

execute(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Execute a schedule. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the schedule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get schedule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the schedule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Schedule

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List schedules in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SchedulePaged

Raises:

CloudError

patch_resource(resource_group_name, lab_name, name, schedule, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of schedules.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the schedule.
  • schedule (Schedule) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Schedule

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.VirtualMachineOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
apply_artifacts(resource_group_name, lab_name, name, artifacts=None, custom_headers=None, raw=False, **operation_config)[source]

Apply artifacts to Lab VM. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • artifacts (list of ArtifactInstallProperties) – The list of artifacts to apply.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

create_or_update_resource(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing Virtual Machine. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • lab_virtual_machine (LabVirtualMachine) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns LabVirtualMachine

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete virtual machine. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabVirtualMachine

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List virtual machines in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabVirtualMachinePaged

Raises:

CloudError

patch_resource(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of virtual machines.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • lab_virtual_machine (LabVirtualMachine) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LabVirtualMachine

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

start(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Start a Lab VM. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

stop(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Stop a Lab VM. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual Machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.devtestlabs.operations.VirtualNetworkOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualNetworkOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update_resource(resource_group_name, lab_name, name, virtual_network, custom_headers=None, raw=False, **operation_config)[source]

Create or replace an existing virtual network. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual network.
  • virtual_network (VirtualNetwork) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns VirtualNetwork

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete virtual network. This operation can take a while to complete.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual network.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_resource(resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get virtual network.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual network.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualNetwork

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, lab_name, filter=None, top=None, order_by=None, custom_headers=None, raw=False, **operation_config)[source]

List virtual networks in a given lab.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • filter (str) – The filter to apply on the operation.
  • top (int) – The maximum number of resources to return from the operation.
  • order_by (str) – The ordering expression for the results, using OData notation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualNetworkPaged

Raises:

CloudError

patch_resource(resource_group_name, lab_name, name, virtual_network, custom_headers=None, raw=False, **operation_config)[source]

Modify properties of virtual networks.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • lab_name (str) – The name of the lab.
  • name (str) – The name of the virtual network.
  • virtual_network (VirtualNetwork) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualNetwork

Return type:

ClientRawResponse if raw=true

Raises:

CloudError