azure.mgmt.devtestlabs.models module

class azure.mgmt.devtestlabs.models.ApplicableSchedule(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, lab_vms_shutdown: Optional[_models.Schedule] = None, lab_vms_startup: Optional[_models.Schedule] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • lab_vms_shutdown (Schedule) – The auto-shutdown schedule, if one has been set at the lab or lab resource level.

  • lab_vms_startup (Schedule) – The auto-startup schedule, if one has been set at the lab or lab resource level.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • lab_vms_shutdown (Schedule) – The auto-shutdown schedule, if one has been set at the lab or lab resource level.

  • lab_vms_startup (Schedule) – The auto-startup schedule, if one has been set at the lab or lab resource level.

class azure.mgmt.devtestlabs.models.ApplicableScheduleFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ApplyArtifactsRequest(*, artifacts: Optional[List[_models.ArtifactInstallProperties]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Request body for applying artifacts to a virtual machine.

Variables

artifacts (list[ArtifactInstallProperties]) – The list of artifacts to apply.

Keyword Arguments

artifacts (list[ArtifactInstallProperties]) – The list of artifacts to apply.

class azure.mgmt.devtestlabs.models.ArmTemplate(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

An Azure Resource Manager template.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • display_name (str) – The display name of the ARM template.

  • description (str) – The description of the ARM template.

  • publisher (str) – The publisher of the ARM template.

  • icon (str) – The URI to the icon of the ARM template.

  • contents (JSON) – The contents of the ARM template.

  • created_date (datetime) – The creation date of the armTemplate.

  • parameters_value_files_info (list[ParametersValueFileInfo]) – File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.

  • enabled (bool) – Whether or not ARM template is enabled for use by lab user.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ArmTemplateInfo(*, template: Optional[collections.abc.MutableMapping[str, Any]] = None, parameters: Optional[collections.abc.MutableMapping[str, Any]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Information about a generated ARM template.

Variables
  • template (JSON) – The template’s contents.

  • parameters (JSON) – The parameters of the ARM template.

Keyword Arguments
  • template (JSON) – The template’s contents.

  • parameters (JSON) – The parameters of the ARM template.

class azure.mgmt.devtestlabs.models.ArmTemplateList(*, value: Optional[List[_models.ArmTemplate]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[ArmTemplate]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[ArmTemplate]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.ArmTemplateParameterProperties(*, name: Optional[str] = None, value: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an Azure Resource Manager template parameter.

Variables
  • name (str) – The name of the template parameter.

  • value (str) – The value of the template parameter.

Keyword Arguments
  • name (str) – The name of the template parameter.

  • value (str) – The value of the template parameter.

class azure.mgmt.devtestlabs.models.Artifact(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

An artifact.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • title (str) – The artifact’s title.

  • description (str) – The artifact’s description.

  • publisher (str) – The artifact’s publisher.

  • file_path (str) – The file path to the artifact.

  • icon (str) – The URI to the artifact icon.

  • target_os_type (str) – The artifact’s target OS.

  • parameters (JSON) – The artifact’s parameters.

  • created_date (datetime) – The artifact’s creation date.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties(*, deployment_status: Optional[str] = None, artifacts_applied: Optional[int] = None, total_artifacts: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an artifact deployment.

Variables
  • deployment_status (str) – The deployment status of the artifact.

  • artifacts_applied (int) – The total count of the artifacts that were successfully applied.

  • total_artifacts (int) – The total count of the artifacts that were tentatively applied.

Keyword Arguments
  • deployment_status (str) – The deployment status of the artifact.

  • artifacts_applied (int) – The total count of the artifacts that were successfully applied.

  • total_artifacts (int) – The total count of the artifacts that were tentatively applied.

class azure.mgmt.devtestlabs.models.ArtifactInstallProperties(*, artifact_id: Optional[str] = None, artifact_title: Optional[str] = None, parameters: Optional[List[_models.ArtifactParameterProperties]] = None, status: Optional[str] = None, deployment_status_message: Optional[str] = None, vm_extension_status_message: Optional[str] = None, install_time: Optional[datetime.datetime] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an artifact.

Variables
  • artifact_id (str) – The artifact’s identifier.

  • artifact_title (str) – The artifact’s title.

  • parameters (list[ArtifactParameterProperties]) – The parameters of the artifact.

  • status (str) – The status of the artifact.

  • deployment_status_message (str) – The status message from the deployment.

  • vm_extension_status_message (str) – The status message from the virtual machine extension.

  • install_time (datetime) – The time that the artifact starts to install on the virtual machine.

Keyword Arguments
  • artifact_id (str) – The artifact’s identifier.

  • artifact_title (str) – The artifact’s title.

  • parameters (list[ArtifactParameterProperties]) – The parameters of the artifact.

  • status (str) – The status of the artifact.

  • deployment_status_message (str) – The status message from the deployment.

  • vm_extension_status_message (str) – The status message from the virtual machine extension.

  • install_time (datetime) – The time that the artifact starts to install on the virtual machine.

class azure.mgmt.devtestlabs.models.ArtifactList(*, value: Optional[List[_models.Artifact]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Artifact]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Artifact]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.ArtifactParameterProperties(*, name: Optional[str] = None, value: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an artifact parameter.

Variables
  • name (str) – The name of the artifact parameter.

  • value (str) – The value of the artifact parameter.

Keyword Arguments
  • name (str) – The name of the artifact parameter.

  • value (str) – The value of the artifact parameter.

class azure.mgmt.devtestlabs.models.ArtifactSource(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, display_name: Optional[str] = None, uri: Optional[str] = None, source_type: Optional[Union[str, _models.SourceControlType]] = None, folder_path: Optional[str] = None, arm_template_folder_path: Optional[str] = None, branch_ref: Optional[str] = None, security_token: Optional[str] = None, status: Optional[Union[str, _models.EnableStatus]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

Properties of an artifact source.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • display_name (str) – The artifact source’s display name.

  • uri (str) – The artifact source’s URI.

  • source_type (str or SourceControlType) – The artifact source’s type. Known values are: “VsoGit”, “GitHub”, and “StorageAccount”.

  • folder_path (str) – The folder containing artifacts.

  • arm_template_folder_path (str) – The folder containing Azure Resource Manager templates.

  • branch_ref (str) – The artifact source’s branch reference.

  • security_token (str) – The security token to authenticate to the artifact source.

  • status (str or EnableStatus) – Indicates if the artifact source is enabled (values: Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • created_date (datetime) – The artifact source’s creation date.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • display_name (str) – The artifact source’s display name.

  • uri (str) – The artifact source’s URI.

  • source_type (str or SourceControlType) – The artifact source’s type. Known values are: “VsoGit”, “GitHub”, and “StorageAccount”.

  • folder_path (str) – The folder containing artifacts.

  • arm_template_folder_path (str) – The folder containing Azure Resource Manager templates.

  • branch_ref (str) – The artifact source’s branch reference.

  • security_token (str) – The security token to authenticate to the artifact source.

  • status (str or EnableStatus) – Indicates if the artifact source is enabled (values: Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

class azure.mgmt.devtestlabs.models.ArtifactSourceFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

Properties of an artifact source.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ArtifactSourceList(*, value: Optional[List[_models.ArtifactSource]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[ArtifactSource]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[ArtifactSource]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.AttachDiskProperties(*, leased_by_lab_vm_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of the disk to attach.

Variables

leased_by_lab_vm_id (str) – The resource ID of the Lab virtual machine to which the disk is attached.

Keyword Arguments

leased_by_lab_vm_id (str) – The resource ID of the Lab virtual machine to which the disk is attached.

class azure.mgmt.devtestlabs.models.AttachNewDataDiskOptions(*, disk_size_gi_b: Optional[int] = None, disk_name: Optional[str] = None, disk_type: Optional[Union[str, _models.StorageType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties to attach new disk to the Virtual Machine.

Variables
  • disk_size_gi_b (int) – Size of the disk to be attached in Gibibytes.

  • disk_name (str) – The name of the disk to be attached.

  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Known values are: “Standard”, “Premium”, and “StandardSSD”.

Keyword Arguments
  • disk_size_gi_b (int) – Size of the disk to be attached in Gibibytes.

  • disk_name (str) – The name of the disk to be attached.

  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Known values are: “Standard”, “Premium”, and “StandardSSD”.

class azure.mgmt.devtestlabs.models.BulkCreationParameters(*, instance_count: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Parameters for creating multiple virtual machines as a single action.

Variables

instance_count (int) – The number of virtual machine instances to create.

Keyword Arguments

instance_count (int) – The number of virtual machine instances to create.

class azure.mgmt.devtestlabs.models.CloudErrorBody(*, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, details: Optional[List[_models.CloudErrorBody]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Body of an error from a REST request.

Variables
Keyword Arguments
  • code (str) – The error code.

  • message (str) – The error message.

  • target (str) – The error target.

  • details (list[CloudErrorBody]) – Inner errors.

class azure.mgmt.devtestlabs.models.ComputeDataDisk(*, name: Optional[str] = None, disk_uri: Optional[str] = None, managed_disk_id: Optional[str] = None, disk_size_gi_b: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

A data disks attached to a virtual machine.

Variables
  • name (str) – Gets data disk name.

  • disk_uri (str) – When backed by a blob, the URI of underlying blob.

  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.

  • disk_size_gi_b (int) – Gets data disk size in GiB.

Keyword Arguments
  • name (str) – Gets data disk name.

  • disk_uri (str) – When backed by a blob, the URI of underlying blob.

  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.

  • disk_size_gi_b (int) – Gets data disk size in GiB.

class azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus(*, code: Optional[str] = None, display_status: Optional[str] = None, message: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Status information about a virtual machine.

Variables
  • code (str) – Gets the status Code.

  • display_status (str) – Gets the short localizable label for the status.

  • message (str) – Gets the message associated with the status.

Keyword Arguments
  • code (str) – Gets the status Code.

  • display_status (str) – Gets the short localizable label for the status.

  • message (str) – Gets the message associated with the status.

class azure.mgmt.devtestlabs.models.ComputeVmProperties(*, statuses: Optional[List[_models.ComputeVmInstanceViewStatus]] = None, os_type: Optional[str] = None, vm_size: Optional[str] = None, network_interface_id: Optional[str] = None, os_disk_id: Optional[str] = None, data_disk_ids: Optional[List[str]] = None, data_disks: Optional[List[_models.ComputeDataDisk]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a virtual machine returned by the Microsoft.Compute API.

Variables
  • statuses (list[ComputeVmInstanceViewStatus]) – Gets the statuses of the virtual machine.

  • os_type (str) – Gets the OS type of the virtual machine.

  • vm_size (str) – Gets the size of the virtual machine.

  • network_interface_id (str) – Gets the network interface ID of the virtual machine.

  • os_disk_id (str) – Gets OS disk blob uri for the virtual machine.

  • data_disk_ids (list[str]) – Gets data disks blob uri for the virtual machine.

  • data_disks (list[ComputeDataDisk]) – Gets all data disks attached to the virtual machine.

Keyword Arguments
  • statuses (list[ComputeVmInstanceViewStatus]) – Gets the statuses of the virtual machine.

  • os_type (str) – Gets the OS type of the virtual machine.

  • vm_size (str) – Gets the size of the virtual machine.

  • network_interface_id (str) – Gets the network interface ID of the virtual machine.

  • os_disk_id (str) – Gets OS disk blob uri for the virtual machine.

  • data_disk_ids (list[str]) – Gets data disks blob uri for the virtual machine.

  • data_disks (list[ComputeDataDisk]) – Gets all data disks attached to the virtual machine.

class azure.mgmt.devtestlabs.models.CostThresholdProperties(*, threshold_id: Optional[str] = None, percentage_threshold: Optional[_models.PercentageCostThresholdProperties] = None, display_on_chart: Optional[Union[str, _models.CostThresholdStatus]] = None, send_notification_when_exceeded: Optional[Union[str, _models.CostThresholdStatus]] = None, notification_sent: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a cost threshold item.

Variables
  • threshold_id (str) – The ID of the cost threshold item.

  • percentage_threshold (PercentageCostThresholdProperties) – The value of the percentage cost threshold.

  • display_on_chart (str or CostThresholdStatus) – Indicates whether this threshold will be displayed on cost charts. Known values are: “Enabled” and “Disabled”.

  • send_notification_when_exceeded (str or CostThresholdStatus) – Indicates whether notifications will be sent when this threshold is exceeded. Known values are: “Enabled” and “Disabled”.

  • notification_sent (str) – Indicates the datetime when notifications were last sent for this threshold.

Keyword Arguments
  • threshold_id (str) – The ID of the cost threshold item.

  • percentage_threshold (PercentageCostThresholdProperties) – The value of the percentage cost threshold.

  • display_on_chart (str or CostThresholdStatus) – Indicates whether this threshold will be displayed on cost charts. Known values are: “Enabled” and “Disabled”.

  • send_notification_when_exceeded (str or CostThresholdStatus) – Indicates whether notifications will be sent when this threshold is exceeded. Known values are: “Enabled” and “Disabled”.

  • notification_sent (str) – Indicates the datetime when notifications were last sent for this threshold.

class azure.mgmt.devtestlabs.models.CostThresholdStatus(value)[source]

Bases: str, enum.Enum

Indicates whether this threshold will be displayed on cost charts.

DISABLED = 'Disabled'
ENABLED = 'Enabled'
class azure.mgmt.devtestlabs.models.CostType(value)[source]

Bases: str, enum.Enum

The type of the cost.

PROJECTED = 'Projected'
REPORTED = 'Reported'
UNAVAILABLE = 'Unavailable'
class azure.mgmt.devtestlabs.models.CustomImage(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, vm: Optional[_models.CustomImagePropertiesFromVm] = None, vhd: Optional[_models.CustomImagePropertiesCustom] = None, description: Optional[str] = None, author: Optional[str] = None, managed_image_id: Optional[str] = None, managed_snapshot_id: Optional[str] = None, data_disk_storage_info: Optional[List[_models.DataDiskStorageTypeInfo]] = None, custom_image_plan: Optional[_models.CustomImagePropertiesFromPlan] = None, is_plan_authorized: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A custom image.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • vm (CustomImagePropertiesFromVm) – The virtual machine from which the image is to be created.

  • vhd (CustomImagePropertiesCustom) – The VHD from which the image is to be created.

  • description (str) – The description of the custom image.

  • author (str) – The author of the custom image.

  • creation_date (datetime) – The creation date of the custom image.

  • managed_image_id (str) – The Managed Image Id backing the custom image.

  • managed_snapshot_id (str) – The Managed Snapshot Id backing the custom image.

  • data_disk_storage_info (list[DataDiskStorageTypeInfo]) – Storage information about the data disks present in the custom image.

  • custom_image_plan (CustomImagePropertiesFromPlan) – Storage information about the plan related to this custom image.

  • is_plan_authorized (bool) – Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • vm (CustomImagePropertiesFromVm) – The virtual machine from which the image is to be created.

  • vhd (CustomImagePropertiesCustom) – The VHD from which the image is to be created.

  • description (str) – The description of the custom image.

  • author (str) – The author of the custom image.

  • managed_image_id (str) – The Managed Image Id backing the custom image.

  • managed_snapshot_id (str) – The Managed Snapshot Id backing the custom image.

  • data_disk_storage_info (list[DataDiskStorageTypeInfo]) – Storage information about the data disks present in the custom image.

  • custom_image_plan (CustomImagePropertiesFromPlan) – Storage information about the plan related to this custom image.

  • is_plan_authorized (bool) – Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

class azure.mgmt.devtestlabs.models.CustomImageFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A custom image.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.CustomImageList(*, value: Optional[List[_models.CustomImage]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[CustomImage]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[CustomImage]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.CustomImageOsType(value)[source]

Bases: str, enum.Enum

The OS type of the custom image (i.e. Windows, Linux).

LINUX = 'Linux'
NONE = 'None'
WINDOWS = 'Windows'
class azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom(*, os_type: Union[str, _models.CustomImageOsType], image_name: Optional[str] = None, sys_prep: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for creating a custom image from a VHD.

All required parameters must be populated in order to send to Azure.

Variables
  • image_name (str) – The image name.

  • sys_prep (bool) – Indicates whether sysprep has been run on the VHD.

  • os_type (str or CustomImageOsType) – The OS type of the custom image (i.e. Windows, Linux). Required. Known values are: “Windows”, “Linux”, and “None”.

Keyword Arguments
  • image_name (str) – The image name.

  • sys_prep (bool) – Indicates whether sysprep has been run on the VHD.

  • os_type (str or CustomImageOsType) – The OS type of the custom image (i.e. Windows, Linux). Required. Known values are: “Windows”, “Linux”, and “None”.

class azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlan(*, id: Optional[str] = None, publisher: Optional[str] = None, offer: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for plan on a custom image.

Variables
  • id (str) – The id of the plan, equivalent to name of the plan.

  • publisher (str) – The publisher for the plan from the marketplace image the custom image is derived from.

  • offer (str) – The offer for the plan from the marketplace image the custom image is derived from.

Keyword Arguments
  • id (str) – The id of the plan, equivalent to name of the plan.

  • publisher (str) – The publisher for the plan from the marketplace image the custom image is derived from.

  • offer (str) – The offer for the plan from the marketplace image the custom image is derived from.

class azure.mgmt.devtestlabs.models.CustomImagePropertiesFromVm(*, source_vm_id: Optional[str] = None, windows_os_info: Optional[_models.WindowsOsInfo] = None, linux_os_info: Optional[_models.LinuxOsInfo] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for creating a custom image from a virtual machine.

Variables
  • source_vm_id (str) – The source vm identifier.

  • windows_os_info (WindowsOsInfo) – The Windows OS information of the VM.

  • linux_os_info (LinuxOsInfo) – The Linux OS information of the VM.

Keyword Arguments
  • source_vm_id (str) – The source vm identifier.

  • windows_os_info (WindowsOsInfo) – The Windows OS information of the VM.

  • linux_os_info (LinuxOsInfo) – The Linux OS information of the VM.

class azure.mgmt.devtestlabs.models.DataDiskProperties(*, attach_new_data_disk_options: Optional[_models.AttachNewDataDiskOptions] = None, existing_lab_disk_id: Optional[str] = None, host_caching: Optional[Union[str, _models.HostCachingOptions]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Request body for adding a new or existing data disk to a virtual machine.

Variables
  • attach_new_data_disk_options (AttachNewDataDiskOptions) – Specifies options to attach a new disk to the virtual machine.

  • existing_lab_disk_id (str) – Specifies the existing lab disk id to attach to virtual machine.

  • host_caching (str or HostCachingOptions) – Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Known values are: “None”, “ReadOnly”, and “ReadWrite”.

Keyword Arguments
  • attach_new_data_disk_options (AttachNewDataDiskOptions) – Specifies options to attach a new disk to the virtual machine.

  • existing_lab_disk_id (str) – Specifies the existing lab disk id to attach to virtual machine.

  • host_caching (str or HostCachingOptions) – Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Known values are: “None”, “ReadOnly”, and “ReadWrite”.

class azure.mgmt.devtestlabs.models.DataDiskStorageTypeInfo(*, lun: Optional[str] = None, storage_type: Optional[Union[str, _models.StorageType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Storage information about the data disks present in the custom image.

Variables
  • lun (str) – Disk Lun.

  • storage_type (str or StorageType) – Disk Storage Type. Known values are: “Standard”, “Premium”, and “StandardSSD”.

Keyword Arguments
  • lun (str) – Disk Lun.

  • storage_type (str or StorageType) – Disk Storage Type. Known values are: “Standard”, “Premium”, and “StandardSSD”.

class azure.mgmt.devtestlabs.models.DayDetails(*, time: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a daily schedule.

Variables

time (str) – The time of day the schedule will occur.

Keyword Arguments

time (str) – The time of day the schedule will occur.

class azure.mgmt.devtestlabs.models.DetachDataDiskProperties(*, existing_lab_disk_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Request body for detaching data disk from a virtual machine.

Variables

existing_lab_disk_id (str) – Specifies the disk resource ID to detach from virtual machine.

Keyword Arguments

existing_lab_disk_id (str) – Specifies the disk resource ID to detach from virtual machine.

class azure.mgmt.devtestlabs.models.DetachDiskProperties(*, leased_by_lab_vm_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of the disk to detach.

Variables

leased_by_lab_vm_id (str) – The resource ID of the Lab VM to which the disk is attached.

Keyword Arguments

leased_by_lab_vm_id (str) – The resource ID of the Lab VM to which the disk is attached.

class azure.mgmt.devtestlabs.models.Disk(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, disk_type: Optional[Union[str, _models.StorageType]] = None, disk_size_gi_b: Optional[int] = None, leased_by_lab_vm_id: Optional[str] = None, disk_blob_name: Optional[str] = None, disk_uri: Optional[str] = None, storage_account_id: Optional[str] = None, host_caching: Optional[str] = None, managed_disk_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A Disk.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Known values are: “Standard”, “Premium”, and “StandardSSD”.

  • disk_size_gi_b (int) – The size of the disk in Gibibytes.

  • leased_by_lab_vm_id (str) – The resource ID of the VM to which this disk is leased.

  • disk_blob_name (str) – When backed by a blob, the name of the VHD blob without extension.

  • disk_uri (str) – When backed by a blob, the URI of underlying blob.

  • storage_account_id (str) – When backed by a blob, the storage account where the blob is.

  • created_date (datetime) – The creation date of the disk.

  • host_caching (str) – The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Known values are: “Standard”, “Premium”, and “StandardSSD”.

  • disk_size_gi_b (int) – The size of the disk in Gibibytes.

  • leased_by_lab_vm_id (str) – The resource ID of the VM to which this disk is leased.

  • disk_blob_name (str) – When backed by a blob, the name of the VHD blob without extension.

  • disk_uri (str) – When backed by a blob, the URI of underlying blob.

  • storage_account_id (str) – When backed by a blob, the storage account where the blob is.

  • host_caching (str) – The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.

class azure.mgmt.devtestlabs.models.DiskFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A Disk.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.DiskList(*, value: Optional[List[_models.Disk]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Disk]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Disk]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.DtlEnvironment(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, deployment_properties: Optional[_models.EnvironmentDeploymentProperties] = None, arm_template_display_name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

An environment, which is essentially an ARM template deployment.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • deployment_properties (EnvironmentDeploymentProperties) – The deployment properties of the environment.

  • arm_template_display_name (str) – The display name of the Azure Resource Manager template that produced the environment.

  • resource_group_id (str) – The identifier of the resource group containing the environment’s resources.

  • created_by_user (str) – The creator of the environment.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • deployment_properties (EnvironmentDeploymentProperties) – The deployment properties of the environment.

  • arm_template_display_name (str) – The display name of the Azure Resource Manager template that produced the environment.

class azure.mgmt.devtestlabs.models.DtlEnvironmentFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

An environment, which is essentially an ARM template deployment.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.DtlEnvironmentList(*, value: Optional[List[_models.DtlEnvironment]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[DtlEnvironment]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[DtlEnvironment]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.EnableStatus(value)[source]

Bases: str, enum.Enum

Indicates if the artifact source is enabled (values: Enabled, Disabled).

DISABLED = 'Disabled'
ENABLED = 'Enabled'
class azure.mgmt.devtestlabs.models.EnvironmentDeploymentProperties(*, arm_template_id: Optional[str] = None, parameters: Optional[List[_models.ArmTemplateParameterProperties]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an environment deployment.

Variables
  • arm_template_id (str) – The Azure Resource Manager template’s identifier.

  • parameters (list[ArmTemplateParameterProperties]) – The parameters of the Azure Resource Manager template.

Keyword Arguments
  • arm_template_id (str) – The Azure Resource Manager template’s identifier.

  • parameters (list[ArmTemplateParameterProperties]) – The parameters of the Azure Resource Manager template.

class azure.mgmt.devtestlabs.models.EnvironmentPermission(value)[source]

Bases: str, enum.Enum

The access rights to be granted to the user when provisioning an environment.

CONTRIBUTOR = 'Contributor'
READER = 'Reader'
class azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties(*, fact_name: Optional[str] = None, fact_data: Optional[str] = None, value_offset: Optional[str] = None, user_object_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for evaluating a policy set.

Variables
  • fact_name (str) – The fact name.

  • fact_data (str) – The fact data.

  • value_offset (str) – The value offset.

  • user_object_id (str) – The user for which policies will be evaluated.

Keyword Arguments
  • fact_name (str) – The fact name.

  • fact_data (str) – The fact data.

  • value_offset (str) – The value offset.

  • user_object_id (str) – The user for which policies will be evaluated.

class azure.mgmt.devtestlabs.models.EvaluatePoliciesRequest(*, policies: Optional[List[_models.EvaluatePoliciesProperties]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Request body for evaluating a policy set.

Variables

policies (list[EvaluatePoliciesProperties]) – Policies to evaluate.

Keyword Arguments

policies (list[EvaluatePoliciesProperties]) – Policies to evaluate.

class azure.mgmt.devtestlabs.models.EvaluatePoliciesResponse(*, results: Optional[List[_models.PolicySetResult]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Response body for evaluating a policy set.

Variables

results (list[PolicySetResult]) – Results of evaluating a policy set.

Keyword Arguments

results (list[PolicySetResult]) – Results of evaluating a policy set.

class azure.mgmt.devtestlabs.models.Event(*, event_name: Optional[Union[str, _models.NotificationChannelEventType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

An event to be notified for.

Variables

event_name (str or NotificationChannelEventType) – The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Known values are: “AutoShutdown” and “Cost”.

Keyword Arguments

event_name (str or NotificationChannelEventType) – The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Known values are: “AutoShutdown” and “Cost”.

class azure.mgmt.devtestlabs.models.ExportResourceUsageParameters(*, blob_storage_absolute_sas_uri: Optional[str] = None, usage_start_date: Optional[datetime.datetime] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The parameters of the export operation.

Variables
  • blob_storage_absolute_sas_uri (str) – The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.

  • usage_start_date (datetime) – The start time of the usage. If not provided, usage will be reported since the beginning of data collection.

Keyword Arguments
  • blob_storage_absolute_sas_uri (str) – The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.

  • usage_start_date (datetime) – The start time of the usage. If not provided, usage will be reported since the beginning of data collection.

class azure.mgmt.devtestlabs.models.ExternalSubnet(*, id: Optional[str] = None, name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Subnet information as returned by the Microsoft.Network API.

Variables
  • id (str) – Gets or sets the identifier.

  • name (str) – Gets or sets the name.

Keyword Arguments
  • id (str) – Gets or sets the identifier.

  • name (str) – Gets or sets the name.

class azure.mgmt.devtestlabs.models.FileUploadOptions(value)[source]

Bases: str, enum.Enum

Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.

NONE = 'None'
UPLOAD_FILES_AND_GENERATE_SAS_TOKENS = 'UploadFilesAndGenerateSasTokens'
class azure.mgmt.devtestlabs.models.Formula(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, os_type: Optional[str] = None, formula_content: Optional[_models.LabVirtualMachineCreationParameter] = None, vm: Optional[_models.FormulaPropertiesFromVm] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A formula for creating a VM, specifying an image base and other parameters.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • description (str) – The description of the formula.

  • author (str) – The author of the formula.

  • os_type (str) – The OS type of the formula.

  • creation_date (datetime) – The creation date of the formula.

  • formula_content (LabVirtualMachineCreationParameter) – The content of the formula.

  • vm (FormulaPropertiesFromVm) – Information about a VM from which a formula is to be created.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • description (str) – The description of the formula.

  • os_type (str) – The OS type of the formula.

  • formula_content (LabVirtualMachineCreationParameter) – The content of the formula.

  • vm (FormulaPropertiesFromVm) – Information about a VM from which a formula is to be created.

class azure.mgmt.devtestlabs.models.FormulaFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A formula for creating a VM, specifying an image base and other parameters.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.FormulaList(*, value: Optional[List[_models.Formula]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Formula]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Formula]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm(*, lab_vm_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Information about a VM from which a formula is to be created.

Variables

lab_vm_id (str) – The identifier of the VM from which a formula is to be created.

Keyword Arguments

lab_vm_id (str) – The identifier of the VM from which a formula is to be created.

class azure.mgmt.devtestlabs.models.GalleryImage(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, author: Optional[str] = None, description: Optional[str] = None, image_reference: Optional[_models.GalleryImageReference] = None, icon: Optional[str] = None, enabled: Optional[bool] = None, plan_id: Optional[str] = None, is_plan_authorized: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A gallery image.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • author (str) – The author of the gallery image.

  • created_date (datetime) – The creation date of the gallery image.

  • description (str) – The description of the gallery image.

  • image_reference (GalleryImageReference) – The image reference of the gallery image.

  • icon (str) – The icon of the gallery image.

  • enabled (bool) – Indicates whether this gallery image is enabled.

  • plan_id (str) – The third party plan that applies to this image.

  • is_plan_authorized (bool) – Indicates if the plan has been authorized for programmatic deployment.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • author (str) – The author of the gallery image.

  • description (str) – The description of the gallery image.

  • image_reference (GalleryImageReference) – The image reference of the gallery image.

  • icon (str) – The icon of the gallery image.

  • enabled (bool) – Indicates whether this gallery image is enabled.

  • plan_id (str) – The third party plan that applies to this image.

  • is_plan_authorized (bool) – Indicates if the plan has been authorized for programmatic deployment.

class azure.mgmt.devtestlabs.models.GalleryImageList(*, value: Optional[List[_models.GalleryImage]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[GalleryImage]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[GalleryImage]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.GalleryImageReference(*, offer: Optional[str] = None, publisher: Optional[str] = None, sku: Optional[str] = None, os_type: Optional[str] = None, version: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The reference information for an Azure Marketplace image.

Variables
  • offer (str) – The offer of the gallery image.

  • publisher (str) – The publisher of the gallery image.

  • sku (str) – The SKU of the gallery image.

  • os_type (str) – The OS type of the gallery image.

  • version (str) – The version of the gallery image.

Keyword Arguments
  • offer (str) – The offer of the gallery image.

  • publisher (str) – The publisher of the gallery image.

  • sku (str) – The SKU of the gallery image.

  • os_type (str) – The OS type of the gallery image.

  • version (str) – The version of the gallery image.

class azure.mgmt.devtestlabs.models.GenerateArmTemplateRequest(*, virtual_machine_name: Optional[str] = None, parameters: Optional[List[_models.ParameterInfo]] = None, location: Optional[str] = None, file_upload_options: Optional[Union[str, _models.FileUploadOptions]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Parameters for generating an ARM template for deploying artifacts.

Variables
  • virtual_machine_name (str) – The resource name of the virtual machine.

  • parameters (list[ParameterInfo]) – The parameters of the ARM template.

  • location (str) – The location of the virtual machine.

  • file_upload_options (str or FileUploadOptions) – Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. Known values are: “UploadFilesAndGenerateSasTokens” and “None”.

Keyword Arguments
  • virtual_machine_name (str) – The resource name of the virtual machine.

  • parameters (list[ParameterInfo]) – The parameters of the ARM template.

  • location (str) – The location of the virtual machine.

  • file_upload_options (str or FileUploadOptions) – Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. Known values are: “UploadFilesAndGenerateSasTokens” and “None”.

class azure.mgmt.devtestlabs.models.GenerateUploadUriParameter(*, blob_name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for generating an upload URI.

Variables

blob_name (str) – The blob name of the upload URI.

Keyword Arguments

blob_name (str) – The blob name of the upload URI.

class azure.mgmt.devtestlabs.models.GenerateUploadUriResponse(*, upload_uri: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Response body for generating an upload URI.

Variables

upload_uri (str) – The upload URI for the VHD.

Keyword Arguments

upload_uri (str) – The upload URI for the VHD.

class azure.mgmt.devtestlabs.models.HostCachingOptions(value)[source]

Bases: str, enum.Enum

Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).

NONE = 'None'
READ_ONLY = 'ReadOnly'
READ_WRITE = 'ReadWrite'
class azure.mgmt.devtestlabs.models.HourDetails(*, minute: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of an hourly schedule.

Variables

minute (int) – Minutes of the hour the schedule will run.

Keyword Arguments

minute (int) – Minutes of the hour the schedule will run.

class azure.mgmt.devtestlabs.models.HttpStatusCode(value)[source]

Bases: str, enum.Enum

The status code for the operation.

ACCEPTED = 'Accepted'
AMBIGUOUS = 'Ambiguous'
BAD_GATEWAY = 'BadGateway'
BAD_REQUEST = 'BadRequest'
CONFLICT = 'Conflict'
CONTINUE = 'Continue'
CREATED = 'Created'
EXPECTATION_FAILED = 'ExpectationFailed'
FORBIDDEN = 'Forbidden'
FOUND = 'Found'
GATEWAY_TIMEOUT = 'GatewayTimeout'
GONE = 'Gone'
HTTP_VERSION_NOT_SUPPORTED = 'HttpVersionNotSupported'
INTERNAL_SERVER_ERROR = 'InternalServerError'
LENGTH_REQUIRED = 'LengthRequired'
METHOD_NOT_ALLOWED = 'MethodNotAllowed'
MOVED = 'Moved'
MOVED_PERMANENTLY = 'MovedPermanently'
MULTIPLE_CHOICES = 'MultipleChoices'
NON_AUTHORITATIVE_INFORMATION = 'NonAuthoritativeInformation'
NOT_ACCEPTABLE = 'NotAcceptable'
NOT_FOUND = 'NotFound'
NOT_IMPLEMENTED = 'NotImplemented'
NOT_MODIFIED = 'NotModified'
NO_CONTENT = 'NoContent'
OK = 'OK'
PARTIAL_CONTENT = 'PartialContent'
PAYMENT_REQUIRED = 'PaymentRequired'
PRECONDITION_FAILED = 'PreconditionFailed'
PROXY_AUTHENTICATION_REQUIRED = 'ProxyAuthenticationRequired'
REDIRECT = 'Redirect'
REDIRECT_KEEP_VERB = 'RedirectKeepVerb'
REDIRECT_METHOD = 'RedirectMethod'
REQUESTED_RANGE_NOT_SATISFIABLE = 'RequestedRangeNotSatisfiable'
REQUEST_ENTITY_TOO_LARGE = 'RequestEntityTooLarge'
REQUEST_TIMEOUT = 'RequestTimeout'
REQUEST_URI_TOO_LONG = 'RequestUriTooLong'
RESET_CONTENT = 'ResetContent'
SEE_OTHER = 'SeeOther'
SERVICE_UNAVAILABLE = 'ServiceUnavailable'
SWITCHING_PROTOCOLS = 'SwitchingProtocols'
TEMPORARY_REDIRECT = 'TemporaryRedirect'
UNAUTHORIZED = 'Unauthorized'
UNSUPPORTED_MEDIA_TYPE = 'UnsupportedMediaType'
UNUSED = 'Unused'
UPGRADE_REQUIRED = 'UpgradeRequired'
USE_PROXY = 'UseProxy'
class azure.mgmt.devtestlabs.models.IdentityProperties(*, type: Optional[Union[str, _models.ManagedIdentityType]] = None, principal_id: Optional[str] = None, tenant_id: Optional[str] = None, client_secret_url: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a managed identity.

Variables
  • type (str or ManagedIdentityType) – Managed identity. Known values are: “None”, “SystemAssigned”, “UserAssigned”, and “SystemAssigned,UserAssigned”.

  • principal_id (str) – The principal id of resource identity.

  • tenant_id (str) – The tenant identifier of resource.

  • client_secret_url (str) – The client secret URL of the identity.

Keyword Arguments
  • type (str or ManagedIdentityType) – Managed identity. Known values are: “None”, “SystemAssigned”, “UserAssigned”, and “SystemAssigned,UserAssigned”.

  • principal_id (str) – The principal id of resource identity.

  • tenant_id (str) – The tenant identifier of resource.

  • client_secret_url (str) – The client secret URL of the identity.

class azure.mgmt.devtestlabs.models.ImportLabVirtualMachineRequest(*, source_virtual_machine_resource_id: Optional[str] = None, destination_virtual_machine_name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

This represents the payload required to import a virtual machine from a different lab into the current one.

Variables
  • source_virtual_machine_resource_id (str) – The full resource ID of the virtual machine to be imported.

  • destination_virtual_machine_name (str) – The name of the virtual machine in the destination lab.

Keyword Arguments
  • source_virtual_machine_resource_id (str) – The full resource ID of the virtual machine to be imported.

  • destination_virtual_machine_name (str) – The name of the virtual machine in the destination lab.

class azure.mgmt.devtestlabs.models.InboundNatRule(*, transport_protocol: Optional[Union[str, _models.TransportProtocol]] = None, frontend_port: Optional[int] = None, backend_port: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

A rule for NAT - exposing a VM’s port (backendPort) on the public IP address using a load balancer.

Variables
  • transport_protocol (str or TransportProtocol) – The transport protocol for the endpoint. Known values are: “Tcp” and “Udp”.

  • frontend_port (int) – The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.

  • backend_port (int) – The port to which the external traffic will be redirected.

Keyword Arguments
  • transport_protocol (str or TransportProtocol) – The transport protocol for the endpoint. Known values are: “Tcp” and “Udp”.

  • frontend_port (int) – The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.

  • backend_port (int) – The port to which the external traffic will be redirected.

class azure.mgmt.devtestlabs.models.Lab(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, lab_storage_type: Optional[Union[str, _models.StorageType]] = None, mandatory_artifacts_resource_ids_linux: Optional[List[str]] = None, mandatory_artifacts_resource_ids_windows: Optional[List[str]] = None, premium_data_disks: Optional[Union[str, _models.PremiumDataDisk]] = None, environment_permission: Optional[Union[str, _models.EnvironmentPermission]] = None, announcement: Optional[_models.LabAnnouncementProperties] = None, support: Optional[_models.LabSupportProperties] = None, extended_properties: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A lab.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • default_storage_account (str) – The lab’s default storage account.

  • default_premium_storage_account (str) – The lab’s default premium storage account.

  • artifacts_storage_account (str) – The lab’s artifact storage account.

  • premium_data_disk_storage_account (str) – The lab’s premium data disk storage account.

  • vault_name (str) – The lab’s Key vault.

  • lab_storage_type (str or StorageType) – Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Known values are: “Standard”, “Premium”, and “StandardSSD”.

  • mandatory_artifacts_resource_ids_linux (list[str]) – The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.

  • mandatory_artifacts_resource_ids_windows (list[str]) – The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.

  • created_date (datetime) – The creation date of the lab.

  • premium_data_disks (str or PremiumDataDisk) – The setting to enable usage of premium data disks. When its value is ‘Enabled’, creation of standard or premium data disks is allowed. When its value is ‘Disabled’, only creation of standard data disks is allowed. Known values are: “Disabled” and “Enabled”.

  • environment_permission (str or EnvironmentPermission) – The access rights to be granted to the user when provisioning an environment. Known values are: “Reader” and “Contributor”.

  • announcement (LabAnnouncementProperties) – The properties of any lab announcement associated with this lab.

  • support (LabSupportProperties) – The properties of any lab support message associated with this lab.

  • vm_creation_resource_group (str) – The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.

  • public_ip_id (str) – The public IP address for the lab’s load balancer.

  • load_balancer_id (str) – The load balancer used to for lab VMs that use shared IP address.

  • network_security_group_id (str) – The Network Security Group attached to the lab VMs Network interfaces to restrict open ports.

  • extended_properties (dict[str, str]) – Extended properties of the lab used for experimental features.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • lab_storage_type (str or StorageType) – Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Known values are: “Standard”, “Premium”, and “StandardSSD”.

  • mandatory_artifacts_resource_ids_linux (list[str]) – The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.

  • mandatory_artifacts_resource_ids_windows (list[str]) – The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.

  • premium_data_disks (str or PremiumDataDisk) – The setting to enable usage of premium data disks. When its value is ‘Enabled’, creation of standard or premium data disks is allowed. When its value is ‘Disabled’, only creation of standard data disks is allowed. Known values are: “Disabled” and “Enabled”.

  • environment_permission (str or EnvironmentPermission) – The access rights to be granted to the user when provisioning an environment. Known values are: “Reader” and “Contributor”.

  • announcement (LabAnnouncementProperties) – The properties of any lab announcement associated with this lab.

  • support (LabSupportProperties) – The properties of any lab support message associated with this lab.

  • extended_properties (dict[str, str]) – Extended properties of the lab used for experimental features.

class azure.mgmt.devtestlabs.models.LabAnnouncementProperties(*, title: Optional[str] = None, markdown: Optional[str] = None, enabled: Optional[Union[str, _models.EnableStatus]] = None, expiration_date: Optional[datetime.datetime] = None, expired: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a lab’s announcement banner.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • title (str) – The plain text title for the lab announcement.

  • markdown (str) – The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.

  • enabled (str or EnableStatus) – Is the lab announcement active/enabled at this time?. Known values are: “Enabled” and “Disabled”.

  • expiration_date (datetime) – The time at which the announcement expires (null for never).

  • expired (bool) – Has this announcement expired?.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • title (str) – The plain text title for the lab announcement.

  • markdown (str) – The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.

  • enabled (str or EnableStatus) – Is the lab announcement active/enabled at this time?. Known values are: “Enabled” and “Disabled”.

  • expiration_date (datetime) – The time at which the announcement expires (null for never).

  • expired (bool) – Has this announcement expired?.

class azure.mgmt.devtestlabs.models.LabCost(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, target_cost: Optional[_models.TargetCostProperties] = None, currency_code: Optional[str] = None, start_date_time: Optional[datetime.datetime] = None, end_date_time: Optional[datetime.datetime] = None, created_date: Optional[datetime.datetime] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A cost item.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • target_cost (TargetCostProperties) – The target cost properties.

  • lab_cost_summary (LabCostSummaryProperties) – The lab cost summary component of the cost data.

  • lab_cost_details (list[LabCostDetailsProperties]) – The lab cost details component of the cost data.

  • resource_costs (list[LabResourceCostProperties]) – The resource cost component of the cost data.

  • currency_code (str) – The currency code of the cost.

  • start_date_time (datetime) – The start time of the cost data.

  • end_date_time (datetime) – The end time of the cost data.

  • created_date (datetime) – The creation date of the cost.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • target_cost (TargetCostProperties) – The target cost properties.

  • currency_code (str) – The currency code of the cost.

  • start_date_time (datetime) – The start time of the cost data.

  • end_date_time (datetime) – The end time of the cost data.

  • created_date (datetime) – The creation date of the cost.

class azure.mgmt.devtestlabs.models.LabCostDetailsProperties(*, date: Optional[datetime.datetime] = None, cost: Optional[float] = None, cost_type: Optional[Union[str, _models.CostType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The properties of a lab cost item.

Variables
  • date (datetime) – The date of the cost item.

  • cost (float) – The cost component of the cost item.

  • cost_type (str or CostType) – The type of the cost. Known values are: “Unavailable”, “Reported”, and “Projected”.

Keyword Arguments
  • date (datetime) – The date of the cost item.

  • cost (float) – The cost component of the cost item.

  • cost_type (str or CostType) – The type of the cost. Known values are: “Unavailable”, “Reported”, and “Projected”.

class azure.mgmt.devtestlabs.models.LabCostSummaryProperties(*, estimated_lab_cost: Optional[float] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The properties of the cost summary.

Variables

estimated_lab_cost (float) – The cost component of the cost item.

Keyword Arguments

estimated_lab_cost (float) – The cost component of the cost item.

class azure.mgmt.devtestlabs.models.LabFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A lab.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.LabList(*, value: Optional[List[_models.Lab]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Lab]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Lab]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.LabResourceCostProperties(*, resourcename: Optional[str] = None, resource_u_id: Optional[str] = None, resource_cost: Optional[float] = None, resource_type: Optional[str] = None, resource_owner: Optional[str] = None, resource_pricing_tier: Optional[str] = None, resource_status: Optional[str] = None, resource_id: Optional[str] = None, external_resource_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The properties of a resource cost item.

Variables
  • resourcename (str) – The name of the resource.

  • resource_u_id (str) – The unique identifier of the resource.

  • resource_cost (float) – The cost component of the resource cost item.

  • resource_type (str) – The logical resource type (ex. virtualmachine, storageaccount).

  • resource_owner (str) – The owner of the resource (ex. janedoe@microsoft.com).

  • resource_pricing_tier (str) – The category of the resource (ex. Premium_LRS, Standard_DS1).

  • resource_status (str) – The status of the resource (ex. Active).

  • resource_id (str) – The ID of the resource.

  • external_resource_id (str) – The ID of the external resource.

Keyword Arguments
  • resourcename (str) – The name of the resource.

  • resource_u_id (str) – The unique identifier of the resource.

  • resource_cost (float) – The cost component of the resource cost item.

  • resource_type (str) – The logical resource type (ex. virtualmachine, storageaccount).

  • resource_owner (str) – The owner of the resource (ex. janedoe@microsoft.com).

  • resource_pricing_tier (str) – The category of the resource (ex. Premium_LRS, Standard_DS1).

  • resource_status (str) – The status of the resource (ex. Active).

  • resource_id (str) – The ID of the resource.

  • external_resource_id (str) – The ID of the external resource.

class azure.mgmt.devtestlabs.models.LabSupportProperties(*, enabled: Optional[Union[str, _models.EnableStatus]] = None, markdown: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a lab’s support banner.

Variables
  • enabled (str or EnableStatus) – Is the lab support banner active/enabled at this time?. Known values are: “Enabled” and “Disabled”.

  • markdown (str) – The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.

Keyword Arguments
  • enabled (str or EnableStatus) – Is the lab support banner active/enabled at this time?. Known values are: “Enabled” and “Disabled”.

  • markdown (str) – The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.

class azure.mgmt.devtestlabs.models.LabVhd(*, id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a VHD in the lab.

Variables

id (str) – The URI to the VHD.

Keyword Arguments

id (str) – The URI to the VHD.

class azure.mgmt.devtestlabs.models.LabVhdList(*, value: Optional[List[_models.LabVhd]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[LabVhd]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[LabVhd]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.LabVirtualMachine(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, notes: Optional[str] = None, owner_object_id: str = 'dynamicValue', owner_user_principal_name: Optional[str] = None, created_date: Optional[datetime.datetime] = None, custom_image_id: Optional[str] = None, size: Optional[str] = None, user_name: Optional[str] = None, password: Optional[str] = None, ssh_key: Optional[str] = None, is_authentication_with_ssh_key: Optional[bool] = None, lab_subnet_name: Optional[str] = None, lab_virtual_network_id: Optional[str] = None, disallow_public_ip_address: bool = False, artifacts: Optional[List[_models.ArtifactInstallProperties]] = None, gallery_image_reference: Optional[_models.GalleryImageReference] = None, plan_id: Optional[str] = None, network_interface: Optional[_models.NetworkInterfaceProperties] = None, expiration_date: Optional[datetime.datetime] = None, allow_claim: bool = False, storage_type: str = 'labStorageType', environment_id: Optional[str] = None, data_disk_parameters: Optional[List[_models.DataDiskProperties]] = None, schedule_parameters: Optional[List[_models.ScheduleCreationParameter]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A virtual machine.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • notes (str) – The notes of the virtual machine.

  • owner_object_id (str) – The object identifier of the owner of the virtual machine.

  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.

  • created_by_user_id (str) – The object identifier of the creator of the virtual machine.

  • created_by_user (str) – The email address of creator of the virtual machine.

  • created_date (datetime) – The creation date of the virtual machine.

  • compute_id (str) – The resource identifier (Microsoft.Compute) of the virtual machine.

  • custom_image_id (str) – The custom image identifier of the virtual machine.

  • os_type (str) – The OS type of the virtual machine.

  • size (str) – The size of the virtual machine.

  • user_name (str) – The user name of the virtual machine.

  • password (str) – The password of the virtual machine administrator.

  • ssh_key (str) – The SSH key of the virtual machine administrator.

  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.

  • fqdn (str) – The fully-qualified domain name of the virtual machine.

  • lab_subnet_name (str) – The lab subnet name of the virtual machine.

  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.

  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.

  • artifacts (list[ArtifactInstallProperties]) – The artifacts to be installed on the virtual machine.

  • artifact_deployment_status (ArtifactDeploymentStatusProperties) – The artifact deployment status for the virtual machine.

  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.

  • plan_id (str) – The id of the plan associated with the virtual machine image.

  • compute_vm (ComputeVmProperties) – The compute virtual machine properties.

  • network_interface (NetworkInterfaceProperties) – The network interface properties.

  • applicable_schedule (ApplicableSchedule) – The applicable schedule for the virtual machine.

  • expiration_date (datetime) – The expiration date for VM.

  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine.

  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).

  • virtual_machine_creation_source (str or VirtualMachineCreationSource) – Tells source of creation of lab virtual machine. Output property only. Known values are: “FromCustomImage”, “FromGalleryImage”, and “FromSharedGalleryImage”.

  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.

  • data_disk_parameters (list[DataDiskProperties]) – New or existing data disks to attach to the virtual machine after creation.

  • schedule_parameters (list[ScheduleCreationParameter]) – Virtual Machine schedules to be created.

  • last_known_power_state (str) – Last known compute power state captured in DTL.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • notes (str) – The notes of the virtual machine.

  • owner_object_id (str) – The object identifier of the owner of the virtual machine.

  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.

  • created_date (datetime) – The creation date of the virtual machine.

  • custom_image_id (str) – The custom image identifier of the virtual machine.

  • size (str) – The size of the virtual machine.

  • user_name (str) – The user name of the virtual machine.

  • password (str) – The password of the virtual machine administrator.

  • ssh_key (str) – The SSH key of the virtual machine administrator.

  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.

  • lab_subnet_name (str) – The lab subnet name of the virtual machine.

  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.

  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.

  • artifacts (list[ArtifactInstallProperties]) – The artifacts to be installed on the virtual machine.

  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.

  • plan_id (str) – The id of the plan associated with the virtual machine image.

  • network_interface (NetworkInterfaceProperties) – The network interface properties.

  • expiration_date (datetime) – The expiration date for VM.

  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine.

  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).

  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.

  • data_disk_parameters (list[DataDiskProperties]) – New or existing data disks to attach to the virtual machine after creation.

  • schedule_parameters (list[ScheduleCreationParameter]) – Virtual Machine schedules to be created.

class azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter(*, name: Optional[str] = None, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, bulk_creation_parameters: Optional[_models.BulkCreationParameters] = None, notes: Optional[str] = None, owner_object_id: str = 'dynamicValue', owner_user_principal_name: Optional[str] = None, created_date: Optional[datetime.datetime] = None, custom_image_id: Optional[str] = None, size: Optional[str] = None, user_name: Optional[str] = None, password: Optional[str] = None, ssh_key: Optional[str] = None, is_authentication_with_ssh_key: Optional[bool] = None, lab_subnet_name: Optional[str] = None, lab_virtual_network_id: Optional[str] = None, disallow_public_ip_address: bool = False, artifacts: Optional[List[_models.ArtifactInstallProperties]] = None, gallery_image_reference: Optional[_models.GalleryImageReference] = None, plan_id: Optional[str] = None, network_interface: Optional[_models.NetworkInterfaceProperties] = None, expiration_date: Optional[datetime.datetime] = None, allow_claim: bool = False, storage_type: str = 'labStorageType', environment_id: Optional[str] = None, data_disk_parameters: Optional[List[_models.DataDiskProperties]] = None, schedule_parameters: Optional[List[_models.ScheduleCreationParameter]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for creating a virtual machine.

Variables
  • name (str) – The name of the virtual machine or environment.

  • location (str) – The location of the new virtual machine or environment.

  • tags (dict[str, str]) – The tags of the resource.

  • bulk_creation_parameters (BulkCreationParameters) – The number of virtual machine instances to create.

  • notes (str) – The notes of the virtual machine.

  • owner_object_id (str) – The object identifier of the owner of the virtual machine.

  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.

  • created_date (datetime) – The creation date of the virtual machine.

  • custom_image_id (str) – The custom image identifier of the virtual machine.

  • size (str) – The size of the virtual machine.

  • user_name (str) – The user name of the virtual machine.

  • password (str) – The password of the virtual machine administrator.

  • ssh_key (str) – The SSH key of the virtual machine administrator.

  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.

  • lab_subnet_name (str) – The lab subnet name of the virtual machine.

  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.

  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.

  • artifacts (list[ArtifactInstallProperties]) – The artifacts to be installed on the virtual machine.

  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.

  • plan_id (str) – The id of the plan associated with the virtual machine image.

  • network_interface (NetworkInterfaceProperties) – The network interface properties.

  • expiration_date (datetime) – The expiration date for VM.

  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine.

  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).

  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.

  • data_disk_parameters (list[DataDiskProperties]) – New or existing data disks to attach to the virtual machine after creation.

  • schedule_parameters (list[ScheduleCreationParameter]) – Virtual Machine schedules to be created.

Keyword Arguments
  • name (str) – The name of the virtual machine or environment.

  • location (str) – The location of the new virtual machine or environment.

  • tags (dict[str, str]) – The tags of the resource.

  • bulk_creation_parameters (BulkCreationParameters) – The number of virtual machine instances to create.

  • notes (str) – The notes of the virtual machine.

  • owner_object_id (str) – The object identifier of the owner of the virtual machine.

  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.

  • created_date (datetime) – The creation date of the virtual machine.

  • custom_image_id (str) – The custom image identifier of the virtual machine.

  • size (str) – The size of the virtual machine.

  • user_name (str) – The user name of the virtual machine.

  • password (str) – The password of the virtual machine administrator.

  • ssh_key (str) – The SSH key of the virtual machine administrator.

  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.

  • lab_subnet_name (str) – The lab subnet name of the virtual machine.

  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.

  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.

  • artifacts (list[ArtifactInstallProperties]) – The artifacts to be installed on the virtual machine.

  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.

  • plan_id (str) – The id of the plan associated with the virtual machine image.

  • network_interface (NetworkInterfaceProperties) – The network interface properties.

  • expiration_date (datetime) – The expiration date for VM.

  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine.

  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).

  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.

  • data_disk_parameters (list[DataDiskProperties]) – New or existing data disks to attach to the virtual machine after creation.

  • schedule_parameters (list[ScheduleCreationParameter]) – Virtual Machine schedules to be created.

class azure.mgmt.devtestlabs.models.LabVirtualMachineFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A virtual machine.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.LabVirtualMachineList(*, value: Optional[List[_models.LabVirtualMachine]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
Keyword Arguments
class azure.mgmt.devtestlabs.models.LinuxOsInfo(*, linux_os_state: Optional[Union[str, _models.LinuxOsState]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Information about a Linux OS.

Variables

linux_os_state (str or LinuxOsState) – The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Known values are: “NonDeprovisioned”, “DeprovisionRequested”, and “DeprovisionApplied”.

Keyword Arguments

linux_os_state (str or LinuxOsState) – The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Known values are: “NonDeprovisioned”, “DeprovisionRequested”, and “DeprovisionApplied”.

class azure.mgmt.devtestlabs.models.LinuxOsState(value)[source]

Bases: str, enum.Enum

The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).

DEPROVISION_APPLIED = 'DeprovisionApplied'
DEPROVISION_REQUESTED = 'DeprovisionRequested'
NON_DEPROVISIONED = 'NonDeprovisioned'
class azure.mgmt.devtestlabs.models.ManagedIdentityType(value)[source]

Bases: str, enum.Enum

Managed identity.

NONE = 'None'
SYSTEM_ASSIGNED = 'SystemAssigned'
SYSTEM_ASSIGNED_USER_ASSIGNED = 'SystemAssigned,UserAssigned'
USER_ASSIGNED = 'UserAssigned'
class azure.mgmt.devtestlabs.models.NetworkInterfaceProperties(*, virtual_network_id: Optional[str] = None, subnet_id: Optional[str] = None, public_ip_address_id: Optional[str] = None, public_ip_address: Optional[str] = None, private_ip_address: Optional[str] = None, dns_name: Optional[str] = None, rdp_authority: Optional[str] = None, ssh_authority: Optional[str] = None, shared_public_ip_address_configuration: Optional[_models.SharedPublicIpAddressConfiguration] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a network interface.

Variables
  • virtual_network_id (str) – The resource ID of the virtual network.

  • subnet_id (str) – The resource ID of the sub net.

  • public_ip_address_id (str) – The resource ID of the public IP address.

  • public_ip_address (str) – The public IP address.

  • private_ip_address (str) – The private IP address.

  • dns_name (str) – The DNS name.

  • rdp_authority (str) – The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).

  • ssh_authority (str) – The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.

  • shared_public_ip_address_configuration (SharedPublicIpAddressConfiguration) – The configuration for sharing a public IP address across multiple virtual machines.

Keyword Arguments
  • virtual_network_id (str) – The resource ID of the virtual network.

  • subnet_id (str) – The resource ID of the sub net.

  • public_ip_address_id (str) – The resource ID of the public IP address.

  • public_ip_address (str) – The public IP address.

  • private_ip_address (str) – The private IP address.

  • dns_name (str) – The DNS name.

  • rdp_authority (str) – The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).

  • ssh_authority (str) – The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.

  • shared_public_ip_address_configuration (SharedPublicIpAddressConfiguration) – The configuration for sharing a public IP address across multiple virtual machines.

class azure.mgmt.devtestlabs.models.NotificationChannel(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, web_hook_url: Optional[str] = None, email_recipient: Optional[str] = None, notification_locale: Optional[str] = None, description: Optional[str] = None, events: Optional[List[_models.Event]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A notification.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • web_hook_url (str) – The webhook URL to send notifications to.

  • email_recipient (str) – The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

  • notification_locale (str) – The locale to use when sending a notification (fallback for unsupported languages is EN).

  • description (str) – Description of notification.

  • events (list[Event]) – The list of event for which this notification is enabled.

  • created_date (datetime) – The creation date of the notification channel.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • web_hook_url (str) – The webhook URL to send notifications to.

  • email_recipient (str) – The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

  • notification_locale (str) – The locale to use when sending a notification (fallback for unsupported languages is EN).

  • description (str) – Description of notification.

  • events (list[Event]) – The list of event for which this notification is enabled.

class azure.mgmt.devtestlabs.models.NotificationChannelEventType(value)[source]

Bases: str, enum.Enum

The event type for which this notification is enabled (i.e. AutoShutdown, Cost).

AUTO_SHUTDOWN = 'AutoShutdown'
COST = 'Cost'
class azure.mgmt.devtestlabs.models.NotificationChannelFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A notification.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.NotificationChannelList(*, value: Optional[List[_models.NotificationChannel]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
Keyword Arguments
class azure.mgmt.devtestlabs.models.NotificationSettings(*, status: Optional[Union[str, _models.EnableStatus]] = None, time_in_minutes: Optional[int] = None, webhook_url: Optional[str] = None, email_recipient: Optional[str] = None, notification_locale: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Notification settings for a schedule.

Variables
  • status (str or EnableStatus) – If notifications are enabled for this schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • time_in_minutes (int) – Time in minutes before event at which notification will be sent.

  • webhook_url (str) – The webhook URL to which the notification will be sent.

  • email_recipient (str) – The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

  • notification_locale (str) – The locale to use when sending a notification (fallback for unsupported languages is EN).

Keyword Arguments
  • status (str or EnableStatus) – If notifications are enabled for this schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • time_in_minutes (int) – Time in minutes before event at which notification will be sent.

  • webhook_url (str) – The webhook URL to which the notification will be sent.

  • email_recipient (str) – The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

  • notification_locale (str) – The locale to use when sending a notification (fallback for unsupported languages is EN).

class azure.mgmt.devtestlabs.models.NotifyParameters(*, event_name: Optional[Union[str, _models.NotificationChannelEventType]] = None, json_payload: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for generating a Notification.

Variables
  • event_name (str or NotificationChannelEventType) – The type of event (i.e. AutoShutdown, Cost). Known values are: “AutoShutdown” and “Cost”.

  • json_payload (str) – Properties for the notification in json format.

Keyword Arguments
  • event_name (str or NotificationChannelEventType) – The type of event (i.e. AutoShutdown, Cost). Known values are: “AutoShutdown” and “Cost”.

  • json_payload (str) – Properties for the notification in json format.

class azure.mgmt.devtestlabs.models.OperationError(*, code: Optional[str] = None, message: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Error details for the operation in case of a failure.

Variables
  • code (str) – The error code of the operation error.

  • message (str) – The error message of the operation error.

Keyword Arguments
  • code (str) – The error code of the operation error.

  • message (str) – The error message of the operation error.

class azure.mgmt.devtestlabs.models.OperationMetadata(*, name: Optional[str] = None, display: Optional[_models.OperationMetadataDisplay] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The REST API operation supported by DevTestLab ResourceProvider.

Variables
  • name (str) – Operation name: {provider}/{resource}/{operation}.

  • display (OperationMetadataDisplay) – The object that describes the operations.

Keyword Arguments
  • name (str) – Operation name: {provider}/{resource}/{operation}.

  • display (OperationMetadataDisplay) – The object that describes the operations.

class azure.mgmt.devtestlabs.models.OperationMetadataDisplay(*, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The object that describes the operations.

Variables
  • provider (str) – Friendly name of the resource provider.

  • resource (str) – Resource type on which the operation is performed.

  • operation (str) – Operation type: read, write, delete, listKeys/action, etc.

  • description (str) – Friendly name of the operation.

Keyword Arguments
  • provider (str) – Friendly name of the resource provider.

  • resource (str) – Resource type on which the operation is performed.

  • operation (str) – Operation type: read, write, delete, listKeys/action, etc.

  • description (str) – Friendly name of the operation.

class azure.mgmt.devtestlabs.models.OperationResult(*, status: Optional[str] = None, status_code: Optional[Union[str, _models.HttpStatusCode]] = None, error: Optional[_models.OperationError] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

An Operation Result.

Variables
  • status (str) – The operation status.

  • status_code (str or HttpStatusCode) – The status code for the operation. Known values are: “Continue”, “SwitchingProtocols”, “OK”, “Created”, “Accepted”, “NonAuthoritativeInformation”, “NoContent”, “ResetContent”, “PartialContent”, “MultipleChoices”, “Ambiguous”, “MovedPermanently”, “Moved”, “Found”, “Redirect”, “SeeOther”, “RedirectMethod”, “NotModified”, “UseProxy”, “Unused”, “TemporaryRedirect”, “RedirectKeepVerb”, “BadRequest”, “Unauthorized”, “PaymentRequired”, “Forbidden”, “NotFound”, “MethodNotAllowed”, “NotAcceptable”, “ProxyAuthenticationRequired”, “RequestTimeout”, “Conflict”, “Gone”, “LengthRequired”, “PreconditionFailed”, “RequestEntityTooLarge”, “RequestUriTooLong”, “UnsupportedMediaType”, “RequestedRangeNotSatisfiable”, “ExpectationFailed”, “UpgradeRequired”, “InternalServerError”, “NotImplemented”, “BadGateway”, “ServiceUnavailable”, “GatewayTimeout”, and “HttpVersionNotSupported”.

  • error (OperationError) – Error details for the operation in case of a failure.

Keyword Arguments
  • status (str) – The operation status.

  • status_code (str or HttpStatusCode) – The status code for the operation. Known values are: “Continue”, “SwitchingProtocols”, “OK”, “Created”, “Accepted”, “NonAuthoritativeInformation”, “NoContent”, “ResetContent”, “PartialContent”, “MultipleChoices”, “Ambiguous”, “MovedPermanently”, “Moved”, “Found”, “Redirect”, “SeeOther”, “RedirectMethod”, “NotModified”, “UseProxy”, “Unused”, “TemporaryRedirect”, “RedirectKeepVerb”, “BadRequest”, “Unauthorized”, “PaymentRequired”, “Forbidden”, “NotFound”, “MethodNotAllowed”, “NotAcceptable”, “ProxyAuthenticationRequired”, “RequestTimeout”, “Conflict”, “Gone”, “LengthRequired”, “PreconditionFailed”, “RequestEntityTooLarge”, “RequestUriTooLong”, “UnsupportedMediaType”, “RequestedRangeNotSatisfiable”, “ExpectationFailed”, “UpgradeRequired”, “InternalServerError”, “NotImplemented”, “BadGateway”, “ServiceUnavailable”, “GatewayTimeout”, and “HttpVersionNotSupported”.

  • error (OperationError) – Error details for the operation in case of a failure.

class azure.mgmt.devtestlabs.models.ParameterInfo(*, name: Optional[str] = None, value: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Information about an artifact’s parameter.

Variables
  • name (str) – The name of the artifact parameter.

  • value (str) – The value of the artifact parameter.

Keyword Arguments
  • name (str) – The name of the artifact parameter.

  • value (str) – The value of the artifact parameter.

class azure.mgmt.devtestlabs.models.ParametersValueFileInfo(*, file_name: Optional[str] = None, parameters_value_info: Optional[collections.abc.MutableMapping[str, Any]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

A file containing a set of parameter values for an ARM template.

Variables
  • file_name (str) – File name.

  • parameters_value_info (JSON) – Contents of the file.

Keyword Arguments
  • file_name (str) – File name.

  • parameters_value_info (JSON) – Contents of the file.

class azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties(*, threshold_value: Optional[float] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a percentage cost threshold.

Variables

threshold_value (float) – The cost threshold value.

Keyword Arguments

threshold_value (float) – The cost threshold value.

class azure.mgmt.devtestlabs.models.Policy(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, status: Optional[Union[str, _models.PolicyStatus]] = None, fact_name: Optional[Union[str, _models.PolicyFactName]] = None, fact_data: Optional[str] = None, threshold: Optional[str] = None, evaluator_type: Optional[Union[str, _models.PolicyEvaluatorType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A Policy.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • description (str) – The description of the policy.

  • status (str or PolicyStatus) – The status of the policy. Known values are: “Enabled” and “Disabled”.

  • fact_name (str or PolicyFactName) – The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: “UserOwnedLabVmCount”, “UserOwnedLabPremiumVmCount”, “LabVmCount”, “LabPremiumVmCount”, “LabVmSize”, “GalleryImage”, “UserOwnedLabVmCountInSubnet”, “LabTargetCost”, “EnvironmentTemplate”, and “ScheduleEditPermission”.

  • fact_data (str) – The fact data of the policy.

  • threshold (str) – The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

  • evaluator_type (str or PolicyEvaluatorType) – The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: “AllowedValuesPolicy” and “MaxValuePolicy”.

  • created_date (datetime) – The creation date of the policy.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • description (str) – The description of the policy.

  • status (str or PolicyStatus) – The status of the policy. Known values are: “Enabled” and “Disabled”.

  • fact_name (str or PolicyFactName) – The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: “UserOwnedLabVmCount”, “UserOwnedLabPremiumVmCount”, “LabVmCount”, “LabPremiumVmCount”, “LabVmSize”, “GalleryImage”, “UserOwnedLabVmCountInSubnet”, “LabTargetCost”, “EnvironmentTemplate”, and “ScheduleEditPermission”.

  • fact_data (str) – The fact data of the policy.

  • threshold (str) – The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

  • evaluator_type (str or PolicyEvaluatorType) – The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: “AllowedValuesPolicy” and “MaxValuePolicy”.

class azure.mgmt.devtestlabs.models.PolicyEvaluatorType(value)[source]

Bases: str, enum.Enum

The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).

ALLOWED_VALUES_POLICY = 'AllowedValuesPolicy'
MAX_VALUE_POLICY = 'MaxValuePolicy'
class azure.mgmt.devtestlabs.models.PolicyFactName(value)[source]

Bases: str, enum.Enum

The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.

ENVIRONMENT_TEMPLATE = 'EnvironmentTemplate'
GALLERY_IMAGE = 'GalleryImage'
LAB_PREMIUM_VM_COUNT = 'LabPremiumVmCount'
LAB_TARGET_COST = 'LabTargetCost'
LAB_VM_COUNT = 'LabVmCount'
LAB_VM_SIZE = 'LabVmSize'
SCHEDULE_EDIT_PERMISSION = 'ScheduleEditPermission'
USER_OWNED_LAB_PREMIUM_VM_COUNT = 'UserOwnedLabPremiumVmCount'
USER_OWNED_LAB_VM_COUNT = 'UserOwnedLabVmCount'
USER_OWNED_LAB_VM_COUNT_IN_SUBNET = 'UserOwnedLabVmCountInSubnet'
class azure.mgmt.devtestlabs.models.PolicyFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A Policy.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.PolicyList(*, value: Optional[List[_models.Policy]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Policy]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Policy]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.PolicySetResult(*, has_error: Optional[bool] = None, policy_violations: Optional[List[_models.PolicyViolation]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Result of a policy set evaluation.

Variables
  • has_error (bool) – A value indicating whether this policy set evaluation has discovered violations.

  • policy_violations (list[PolicyViolation]) – The list of policy violations.

Keyword Arguments
  • has_error (bool) – A value indicating whether this policy set evaluation has discovered violations.

  • policy_violations (list[PolicyViolation]) – The list of policy violations.

class azure.mgmt.devtestlabs.models.PolicyStatus(value)[source]

Bases: str, enum.Enum

The status of the policy.

DISABLED = 'Disabled'
ENABLED = 'Enabled'
class azure.mgmt.devtestlabs.models.PolicyViolation(*, code: Optional[str] = None, message: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Policy violation.

Variables
  • code (str) – The code of the policy violation.

  • message (str) – The message of the policy violation.

Keyword Arguments
  • code (str) – The code of the policy violation.

  • message (str) – The message of the policy violation.

class azure.mgmt.devtestlabs.models.Port(*, transport_protocol: Optional[Union[str, _models.TransportProtocol]] = None, backend_port: Optional[int] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a network port.

Variables
  • transport_protocol (str or TransportProtocol) – Protocol type of the port. Known values are: “Tcp” and “Udp”.

  • backend_port (int) – Backend port of the target virtual machine.

Keyword Arguments
  • transport_protocol (str or TransportProtocol) – Protocol type of the port. Known values are: “Tcp” and “Udp”.

  • backend_port (int) – Backend port of the target virtual machine.

class azure.mgmt.devtestlabs.models.PremiumDataDisk(value)[source]

Bases: str, enum.Enum

The setting to enable usage of premium data disks. When its value is ‘Enabled’, creation of standard or premium data disks is allowed. When its value is ‘Disabled’, only creation of standard data disks is allowed.

DISABLED = 'Disabled'
ENABLED = 'Enabled'
class azure.mgmt.devtestlabs.models.ProviderOperationResult(*, value: Optional[List[_models.OperationMetadata]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Result of the request to list REST API operations.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • value (list[OperationMetadata]) – List of operations supported by the resource provider.

  • next_link (str) – URL to get the next set of operation list results if there are any.

Keyword Arguments

value (list[OperationMetadata]) – List of operations supported by the resource provider.

class azure.mgmt.devtestlabs.models.RdpConnection(*, contents: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Represents a .rdp file.

Variables

contents (str) – The contents of the .rdp file.

Keyword Arguments

contents (str) – The contents of the .rdp file.

class azure.mgmt.devtestlabs.models.ReportingCycleType(value)[source]

Bases: str, enum.Enum

Reporting cycle type.

CALENDAR_MONTH = 'CalendarMonth'
CUSTOM = 'Custom'
class azure.mgmt.devtestlabs.models.ResizeLabVirtualMachineProperties(*, size: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Request body for resizing a virtual machine.

Variables

size (str) – Specifies the size of the virtual machine.

Keyword Arguments

size (str) – Specifies the size of the virtual machine.

class azure.mgmt.devtestlabs.models.Resource(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

An Azure resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.RetargetScheduleProperties(*, current_resource_id: Optional[str] = None, target_resource_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for retargeting a virtual machine schedule.

Variables
  • current_resource_id (str) – The resource Id of the virtual machine on which the schedule operates.

  • target_resource_id (str) – The resource Id of the virtual machine that the schedule should be retargeted to.

Keyword Arguments
  • current_resource_id (str) – The resource Id of the virtual machine on which the schedule operates.

  • target_resource_id (str) – The resource Id of the virtual machine that the schedule should be retargeted to.

class azure.mgmt.devtestlabs.models.Schedule(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, status: Optional[Union[str, _models.EnableStatus]] = None, task_type: Optional[str] = None, weekly_recurrence: Optional[_models.WeekDetails] = None, daily_recurrence: Optional[_models.DayDetails] = None, hourly_recurrence: Optional[_models.HourDetails] = None, time_zone_id: Optional[str] = None, notification_settings: Optional[_models.NotificationSettings] = None, target_resource_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A schedule.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

  • weekly_recurrence (WeekDetails) – If the schedule will occur only some days of the week, specify the weekly recurrence.

  • daily_recurrence (DayDetails) – If the schedule will occur once each day of the week, specify the daily recurrence.

  • hourly_recurrence (HourDetails) – If the schedule will occur multiple times a day, specify the hourly recurrence.

  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).

  • notification_settings (NotificationSettings) – Notification settings.

  • created_date (datetime) – The creation date of the schedule.

  • target_resource_id (str) – The resource ID to which the schedule belongs.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

  • weekly_recurrence (WeekDetails) – If the schedule will occur only some days of the week, specify the weekly recurrence.

  • daily_recurrence (DayDetails) – If the schedule will occur once each day of the week, specify the daily recurrence.

  • hourly_recurrence (HourDetails) – If the schedule will occur multiple times a day, specify the hourly recurrence.

  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).

  • notification_settings (NotificationSettings) – Notification settings.

  • target_resource_id (str) – The resource ID to which the schedule belongs.

class azure.mgmt.devtestlabs.models.ScheduleCreationParameter(*, name: Optional[str] = None, tags: Optional[Dict[str, str]] = None, status: Optional[Union[str, _models.EnableStatus]] = None, task_type: Optional[str] = None, weekly_recurrence: Optional[_models.WeekDetails] = None, daily_recurrence: Optional[_models.DayDetails] = None, hourly_recurrence: Optional[_models.HourDetails] = None, time_zone_id: Optional[str] = None, notification_settings: Optional[_models.NotificationSettings] = None, target_resource_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties for creating a schedule.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • name (str) – The name of the virtual machine or environment.

  • location (str) – The location of the new virtual machine or environment.

  • tags (dict[str, str]) – The tags of the resource.

  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

  • weekly_recurrence (WeekDetails) – If the schedule will occur only some days of the week, specify the weekly recurrence.

  • daily_recurrence (DayDetails) – If the schedule will occur once each day of the week, specify the daily recurrence.

  • hourly_recurrence (HourDetails) – If the schedule will occur multiple times a day, specify the hourly recurrence.

  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).

  • notification_settings (NotificationSettings) – Notification settings.

  • target_resource_id (str) – The resource ID to which the schedule belongs.

Keyword Arguments
  • name (str) – The name of the virtual machine or environment.

  • tags (dict[str, str]) – The tags of the resource.

  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Known values are: “Enabled” and “Disabled”.

  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

  • weekly_recurrence (WeekDetails) – If the schedule will occur only some days of the week, specify the weekly recurrence.

  • daily_recurrence (DayDetails) – If the schedule will occur once each day of the week, specify the daily recurrence.

  • hourly_recurrence (HourDetails) – If the schedule will occur multiple times a day, specify the hourly recurrence.

  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).

  • notification_settings (NotificationSettings) – Notification settings.

  • target_resource_id (str) – The resource ID to which the schedule belongs.

class azure.mgmt.devtestlabs.models.ScheduleFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A schedule.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ScheduleList(*, value: Optional[List[_models.Schedule]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Schedule]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Schedule]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.Secret(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, value: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A secret.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • value (str) – The value of the secret for secret creation.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • value (str) – The value of the secret for secret creation.

class azure.mgmt.devtestlabs.models.SecretFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A secret.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.SecretList(*, value: Optional[List[_models.Secret]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[Secret]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[Secret]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.ServiceFabric(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, external_service_fabric_id: Optional[str] = None, environment_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A Service Fabric.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • external_service_fabric_id (str) – The backing service fabric resource’s id.

  • environment_id (str) – The resource id of the environment under which the service fabric resource is present.

  • applicable_schedule (ApplicableSchedule) – The applicable schedule for the virtual machine.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • external_service_fabric_id (str) – The backing service fabric resource’s id.

  • environment_id (str) – The resource id of the environment under which the service fabric resource is present.

class azure.mgmt.devtestlabs.models.ServiceFabricFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A Service Fabric.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.ServiceFabricList(*, value: Optional[List[_models.ServiceFabric]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[ServiceFabric]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[ServiceFabric]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.ServiceRunner(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional[_models.IdentityProperties] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A container for a managed identity to execute DevTest lab services.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • identity (IdentityProperties) – The identity of the resource.

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • identity (IdentityProperties) – The identity of the resource.

class azure.mgmt.devtestlabs.models.ServiceRunnerList(*, value: Optional[List[_models.ServiceRunner]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[ServiceRunner]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[ServiceRunner]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.SharedPublicIpAddressConfiguration(*, inbound_nat_rules: Optional[List[_models.InboundNatRule]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a virtual machine that determine how it is connected to a load balancer.

Variables

inbound_nat_rules (list[InboundNatRule]) – The incoming NAT rules.

Keyword Arguments

inbound_nat_rules (list[InboundNatRule]) – The incoming NAT rules.

class azure.mgmt.devtestlabs.models.ShutdownNotificationContent(*, skip_url: Optional[str] = None, delay_url60: Optional[str] = None, delay_url120: Optional[str] = None, vm_name: Optional[str] = None, guid: Optional[str] = None, owner: Optional[str] = None, vm_url: Optional[str] = None, minutes_until_shutdown: Optional[str] = None, event_type: Optional[str] = None, text: Optional[str] = None, subscription_id: Optional[str] = None, resource_group_name: Optional[str] = None, lab_name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown.

Variables
  • skip_url (str) – The URL to skip auto-shutdown.

  • delay_url60 (str) – The URL to delay shutdown by 60 minutes.

  • delay_url120 (str) – The URL to delay shutdown by 2 hours.

  • vm_name (str) – The virtual machine to be shut down.

  • guid (str) – The GUID for the virtual machine to be shut down.

  • owner (str) – The owner of the virtual machine.

  • vm_url (str) – The URL of the virtual machine.

  • minutes_until_shutdown (str) – Minutes remaining until shutdown.

  • event_type (str) – The event for which a notification will be sent.

  • text (str) – The text for the notification.

  • subscription_id (str) – The subscription ID for the schedule.

  • resource_group_name (str) – The resource group name for the schedule.

  • lab_name (str) – The lab for the schedule.

Keyword Arguments
  • skip_url (str) – The URL to skip auto-shutdown.

  • delay_url60 (str) – The URL to delay shutdown by 60 minutes.

  • delay_url120 (str) – The URL to delay shutdown by 2 hours.

  • vm_name (str) – The virtual machine to be shut down.

  • guid (str) – The GUID for the virtual machine to be shut down.

  • owner (str) – The owner of the virtual machine.

  • vm_url (str) – The URL of the virtual machine.

  • minutes_until_shutdown (str) – Minutes remaining until shutdown.

  • event_type (str) – The event for which a notification will be sent.

  • text (str) – The text for the notification.

  • subscription_id (str) – The subscription ID for the schedule.

  • resource_group_name (str) – The resource group name for the schedule.

  • lab_name (str) – The lab for the schedule.

class azure.mgmt.devtestlabs.models.SourceControlType(value)[source]

Bases: str, enum.Enum

The artifact source’s type.

GIT_HUB = 'GitHub'
STORAGE_ACCOUNT = 'StorageAccount'
VSO_GIT = 'VsoGit'
class azure.mgmt.devtestlabs.models.StorageType(value)[source]

Bases: str, enum.Enum

The storage type for the disk (i.e. Standard, Premium).

PREMIUM = 'Premium'
STANDARD = 'Standard'
STANDARD_SSD = 'StandardSSD'
class azure.mgmt.devtestlabs.models.Subnet(*, resource_id: Optional[str] = None, lab_subnet_name: Optional[str] = None, allow_public_ip: Optional[Union[str, _models.UsagePermissionType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Subnet information.

Variables
  • resource_id (str) – The resource ID of the subnet.

  • lab_subnet_name (str) – The name of the subnet as seen in the lab.

  • allow_public_ip (str or UsagePermissionType) – The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Known values are: “Default”, “Deny”, and “Allow”.

Keyword Arguments
  • resource_id (str) – The resource ID of the subnet.

  • lab_subnet_name (str) – The name of the subnet as seen in the lab.

  • allow_public_ip (str or UsagePermissionType) – The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Known values are: “Default”, “Deny”, and “Allow”.

class azure.mgmt.devtestlabs.models.SubnetOverride(*, resource_id: Optional[str] = None, lab_subnet_name: Optional[str] = None, use_in_vm_creation_permission: Optional[Union[str, _models.UsagePermissionType]] = None, use_public_ip_address_permission: Optional[Union[str, _models.UsagePermissionType]] = None, shared_public_ip_address_configuration: Optional[_models.SubnetSharedPublicIpAddressConfiguration] = None, virtual_network_pool_name: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Property overrides on a subnet of a virtual network.

Variables
  • resource_id (str) – The resource ID of the subnet.

  • lab_subnet_name (str) – The name given to the subnet within the lab.

  • use_in_vm_creation_permission (str or UsagePermissionType) – Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). Known values are: “Default”, “Deny”, and “Allow”.

  • use_public_ip_address_permission (str or UsagePermissionType) – Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). Known values are: “Default”, “Deny”, and “Allow”.

  • shared_public_ip_address_configuration (SubnetSharedPublicIpAddressConfiguration) – Properties that virtual machines on this subnet will share.

  • virtual_network_pool_name (str) – The virtual network pool associated with this subnet.

Keyword Arguments
  • resource_id (str) – The resource ID of the subnet.

  • lab_subnet_name (str) – The name given to the subnet within the lab.

  • use_in_vm_creation_permission (str or UsagePermissionType) – Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). Known values are: “Default”, “Deny”, and “Allow”.

  • use_public_ip_address_permission (str or UsagePermissionType) – Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). Known values are: “Default”, “Deny”, and “Allow”.

  • shared_public_ip_address_configuration (SubnetSharedPublicIpAddressConfiguration) – Properties that virtual machines on this subnet will share.

  • virtual_network_pool_name (str) – The virtual network pool associated with this subnet.

class azure.mgmt.devtestlabs.models.SubnetSharedPublicIpAddressConfiguration(*, allowed_ports: Optional[List[_models.Port]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Configuration for public IP address sharing.

Variables

allowed_ports (list[Port]) – Backend ports that virtual machines on this subnet are allowed to expose.

Keyword Arguments

allowed_ports (list[Port]) – Backend ports that virtual machines on this subnet are allowed to expose.

class azure.mgmt.devtestlabs.models.TargetCostProperties(*, status: Optional[Union[str, _models.TargetCostStatus]] = None, target: Optional[int] = None, cost_thresholds: Optional[List[_models.CostThresholdProperties]] = None, cycle_start_date_time: Optional[datetime.datetime] = None, cycle_end_date_time: Optional[datetime.datetime] = None, cycle_type: Optional[Union[str, _models.ReportingCycleType]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a cost target.

Variables
  • status (str or TargetCostStatus) – Target cost status. Known values are: “Enabled” and “Disabled”.

  • target (int) – Lab target cost.

  • cost_thresholds (list[CostThresholdProperties]) – Cost thresholds.

  • cycle_start_date_time (datetime) – Reporting cycle start date.

  • cycle_end_date_time (datetime) – Reporting cycle end date.

  • cycle_type (str or ReportingCycleType) – Reporting cycle type. Known values are: “CalendarMonth” and “Custom”.

Keyword Arguments
  • status (str or TargetCostStatus) – Target cost status. Known values are: “Enabled” and “Disabled”.

  • target (int) – Lab target cost.

  • cost_thresholds (list[CostThresholdProperties]) – Cost thresholds.

  • cycle_start_date_time (datetime) – Reporting cycle start date.

  • cycle_end_date_time (datetime) – Reporting cycle end date.

  • cycle_type (str or ReportingCycleType) – Reporting cycle type. Known values are: “CalendarMonth” and “Custom”.

class azure.mgmt.devtestlabs.models.TargetCostStatus(value)[source]

Bases: str, enum.Enum

Target cost status.

DISABLED = 'Disabled'
ENABLED = 'Enabled'
class azure.mgmt.devtestlabs.models.TransportProtocol(value)[source]

Bases: str, enum.Enum

The transport protocol for the endpoint.

TCP = 'Tcp'
UDP = 'Udp'
class azure.mgmt.devtestlabs.models.UpdateResource(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Represents an update resource.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.UsagePermissionType(value)[source]

Bases: str, enum.Enum

The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).

ALLOW = 'Allow'
DEFAULT = 'Default'
DENY = 'Deny'
class azure.mgmt.devtestlabs.models.User(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional[_models.UserIdentity] = None, secret_store: Optional[_models.UserSecretStore] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

Profile of a lab user.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • identity (UserIdentity) – The identity of the user.

  • secret_store (UserSecretStore) – The secret store of the user.

  • created_date (datetime) – The creation date of the user profile.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • identity (UserIdentity) – The identity of the user.

  • secret_store (UserSecretStore) – The secret store of the user.

class azure.mgmt.devtestlabs.models.UserFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

Profile of a lab user.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.UserIdentity(*, principal_name: Optional[str] = None, principal_id: Optional[str] = None, tenant_id: Optional[str] = None, object_id: Optional[str] = None, app_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Identity attributes of a lab user.

Variables
  • principal_name (str) – Set to the principal name / UPN of the client JWT making the request.

  • principal_id (str) – Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.

  • tenant_id (str) – Set to the tenant ID of the client JWT making the request.

  • object_id (str) – Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.

  • app_id (str) – Set to the app Id of the client JWT making the request.

Keyword Arguments
  • principal_name (str) – Set to the principal name / UPN of the client JWT making the request.

  • principal_id (str) – Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.

  • tenant_id (str) – Set to the tenant ID of the client JWT making the request.

  • object_id (str) – Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.

  • app_id (str) – Set to the app Id of the client JWT making the request.

class azure.mgmt.devtestlabs.models.UserList(*, value: Optional[List[_models.User]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[User]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[User]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.UserSecretStore(*, key_vault_uri: Optional[str] = None, key_vault_id: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a user’s secret store.

Variables
  • key_vault_uri (str) – The URI of the user’s Key vault.

  • key_vault_id (str) – The ID of the user’s Key vault.

Keyword Arguments
  • key_vault_uri (str) – The URI of the user’s Key vault.

  • key_vault_id (str) – The ID of the user’s Key vault.

class azure.mgmt.devtestlabs.models.VirtualMachineCreationSource(value)[source]

Bases: str, enum.Enum

Tells source of creation of lab virtual machine. Output property only.

FROM_CUSTOM_IMAGE = 'FromCustomImage'
class azure.mgmt.devtestlabs.models.VirtualNetwork(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, allowed_subnets: Optional[List[_models.Subnet]] = None, description: Optional[str] = None, external_provider_resource_id: Optional[str] = None, subnet_overrides: Optional[List[_models.SubnetOverride]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.Resource

A virtual network.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The identifier of the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • allowed_subnets (list[Subnet]) – The allowed subnets of the virtual network.

  • description (str) – The description of the virtual network.

  • external_provider_resource_id (str) – The Microsoft.Network resource identifier of the virtual network.

  • external_subnets (list[ExternalSubnet]) – The external subnet properties.

  • subnet_overrides (list[SubnetOverride]) – The subnet overrides of the virtual network.

  • created_date (datetime) – The creation date of the virtual network.

  • provisioning_state (str) – The provisioning status of the resource.

  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).

Keyword Arguments
  • location (str) – The location of the resource.

  • tags (dict[str, str]) – The tags of the resource.

  • allowed_subnets (list[Subnet]) – The allowed subnets of the virtual network.

  • description (str) – The description of the virtual network.

  • external_provider_resource_id (str) – The Microsoft.Network resource identifier of the virtual network.

  • subnet_overrides (list[SubnetOverride]) – The subnet overrides of the virtual network.

class azure.mgmt.devtestlabs.models.VirtualNetworkFragment(*, tags: Optional[Dict[str, str]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs.models._models_py3.UpdateResource

A virtual network.

Variables

tags (dict[str, str]) – The tags of the resource.

Keyword Arguments

tags (dict[str, str]) – The tags of the resource.

class azure.mgmt.devtestlabs.models.VirtualNetworkList(*, value: Optional[List[_models.VirtualNetwork]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

The response of a list operation.

Variables
  • value (list[VirtualNetwork]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

Keyword Arguments
  • value (list[VirtualNetwork]) – Results of the list operation.

  • next_link (str) – Link for next set of results.

class azure.mgmt.devtestlabs.models.WeekDetails(*, weekdays: Optional[List[str]] = None, time: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Properties of a weekly schedule.

Variables
  • weekdays (list[str]) – The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).

  • time (str) – The time of the day the schedule will occur.

Keyword Arguments
  • weekdays (list[str]) – The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).

  • time (str) – The time of the day the schedule will occur.

class azure.mgmt.devtestlabs.models.WindowsOsInfo(*, windows_os_state: Optional[Union[str, _models.WindowsOsState]] = None, **kwargs)[source]

Bases: azure.mgmt.devtestlabs._serialization.Model

Information about a Windows OS.

Variables

windows_os_state (str or WindowsOsState) – The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Known values are: “NonSysprepped”, “SysprepRequested”, and “SysprepApplied”.

Keyword Arguments

windows_os_state (str or WindowsOsState) – The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Known values are: “NonSysprepped”, “SysprepRequested”, and “SysprepApplied”.

class azure.mgmt.devtestlabs.models.WindowsOsState(value)[source]

Bases: str, enum.Enum

The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).

NON_SYSPREPPED = 'NonSysprepped'
SYSPREP_APPLIED = 'SysprepApplied'
SYSPREP_REQUESTED = 'SysprepRequested'