diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/__init__.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/__init__.py index 1bb40772c367..4a239efa60b9 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/__init__.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/__init__.py @@ -16,42 +16,27 @@ from ._models_py3 import ArmTemplate from ._models_py3 import ArmTemplateInfo from ._models_py3 import ArmTemplateParameterProperties - from ._models_py3 import ArmTemplateParameterPropertiesFragment from ._models_py3 import Artifact from ._models_py3 import ArtifactDeploymentStatusProperties - from ._models_py3 import ArtifactDeploymentStatusPropertiesFragment from ._models_py3 import ArtifactInstallProperties - from ._models_py3 import ArtifactInstallPropertiesFragment from ._models_py3 import ArtifactParameterProperties - from ._models_py3 import ArtifactParameterPropertiesFragment from ._models_py3 import ArtifactSource from ._models_py3 import ArtifactSourceFragment from ._models_py3 import AttachDiskProperties from ._models_py3 import AttachNewDataDiskOptions - from ._models_py3 import AttachNewDataDiskOptionsFragment from ._models_py3 import BulkCreationParameters - from ._models_py3 import BulkCreationParametersFragment from ._models_py3 import ComputeDataDisk - from ._models_py3 import ComputeDataDiskFragment from ._models_py3 import ComputeVmInstanceViewStatus - from ._models_py3 import ComputeVmInstanceViewStatusFragment from ._models_py3 import ComputeVmProperties - from ._models_py3 import ComputeVmPropertiesFragment from ._models_py3 import CostThresholdProperties from ._models_py3 import CustomImage from ._models_py3 import CustomImageFragment from ._models_py3 import CustomImagePropertiesCustom - from ._models_py3 import CustomImagePropertiesCustomFragment from ._models_py3 import CustomImagePropertiesFromPlan - from ._models_py3 import CustomImagePropertiesFromPlanFragment from ._models_py3 import CustomImagePropertiesFromVm - from ._models_py3 import CustomImagePropertiesFromVmFragment from ._models_py3 import DataDiskProperties - from ._models_py3 import DataDiskPropertiesFragment from ._models_py3 import DataDiskStorageTypeInfo - from ._models_py3 import DataDiskStorageTypeInfoFragment from ._models_py3 import DayDetails - from ._models_py3 import DayDetailsFragment from ._models_py3 import DetachDataDiskProperties from ._models_py3 import DetachDiskProperties from ._models_py3 import Disk @@ -59,54 +44,41 @@ from ._models_py3 import DtlEnvironment from ._models_py3 import DtlEnvironmentFragment from ._models_py3 import EnvironmentDeploymentProperties - from ._models_py3 import EnvironmentDeploymentPropertiesFragment from ._models_py3 import EvaluatePoliciesProperties from ._models_py3 import EvaluatePoliciesRequest from ._models_py3 import EvaluatePoliciesResponse from ._models_py3 import Event - from ._models_py3 import EventFragment from ._models_py3 import ExportResourceUsageParameters from ._models_py3 import ExternalSubnet - from ._models_py3 import ExternalSubnetFragment from ._models_py3 import Formula from ._models_py3 import FormulaFragment from ._models_py3 import FormulaPropertiesFromVm - from ._models_py3 import FormulaPropertiesFromVmFragment from ._models_py3 import GalleryImage from ._models_py3 import GalleryImageReference - from ._models_py3 import GalleryImageReferenceFragment from ._models_py3 import GenerateArmTemplateRequest from ._models_py3 import GenerateUploadUriParameter from ._models_py3 import GenerateUploadUriResponse from ._models_py3 import HourDetails - from ._models_py3 import HourDetailsFragment from ._models_py3 import IdentityProperties from ._models_py3 import ImportLabVirtualMachineRequest from ._models_py3 import InboundNatRule - from ._models_py3 import InboundNatRuleFragment from ._models_py3 import Lab from ._models_py3 import LabAnnouncementProperties - from ._models_py3 import LabAnnouncementPropertiesFragment from ._models_py3 import LabCost from ._models_py3 import LabCostDetailsProperties from ._models_py3 import LabCostSummaryProperties from ._models_py3 import LabFragment from ._models_py3 import LabResourceCostProperties from ._models_py3 import LabSupportProperties - from ._models_py3 import LabSupportPropertiesFragment from ._models_py3 import LabVhd from ._models_py3 import LabVirtualMachine from ._models_py3 import LabVirtualMachineCreationParameter - from ._models_py3 import LabVirtualMachineCreationParameterFragment from ._models_py3 import LabVirtualMachineFragment from ._models_py3 import LinuxOsInfo - from ._models_py3 import LinuxOsInfoFragment from ._models_py3 import NetworkInterfaceProperties - from ._models_py3 import NetworkInterfacePropertiesFragment from ._models_py3 import NotificationChannel from ._models_py3 import NotificationChannelFragment from ._models_py3 import NotificationSettings - from ._models_py3 import NotificationSettingsFragment from ._models_py3 import NotifyParameters from ._models_py3 import OperationError from ._models_py3 import OperationMetadata @@ -120,43 +92,34 @@ from ._models_py3 import PolicySetResult from ._models_py3 import PolicyViolation from ._models_py3 import Port - from ._models_py3 import PortFragment from ._models_py3 import RdpConnection from ._models_py3 import ResizeLabVirtualMachineProperties from ._models_py3 import Resource from ._models_py3 import RetargetScheduleProperties from ._models_py3 import Schedule from ._models_py3 import ScheduleCreationParameter - from ._models_py3 import ScheduleCreationParameterFragment from ._models_py3 import ScheduleFragment from ._models_py3 import Secret from ._models_py3 import SecretFragment from ._models_py3 import ServiceFabric from ._models_py3 import ServiceFabricFragment from ._models_py3 import ServiceRunner + from ._models_py3 import ServiceRunnerList from ._models_py3 import SharedPublicIpAddressConfiguration - from ._models_py3 import SharedPublicIpAddressConfigurationFragment from ._models_py3 import ShutdownNotificationContent from ._models_py3 import Subnet - from ._models_py3 import SubnetFragment from ._models_py3 import SubnetOverride - from ._models_py3 import SubnetOverrideFragment from ._models_py3 import SubnetSharedPublicIpAddressConfiguration - from ._models_py3 import SubnetSharedPublicIpAddressConfigurationFragment from ._models_py3 import TargetCostProperties from ._models_py3 import UpdateResource from ._models_py3 import User from ._models_py3 import UserFragment from ._models_py3 import UserIdentity - from ._models_py3 import UserIdentityFragment from ._models_py3 import UserSecretStore - from ._models_py3 import UserSecretStoreFragment from ._models_py3 import VirtualNetwork from ._models_py3 import VirtualNetworkFragment from ._models_py3 import WeekDetails - from ._models_py3 import WeekDetailsFragment from ._models_py3 import WindowsOsInfo - from ._models_py3 import WindowsOsInfoFragment except (SyntaxError, ImportError): from ._models import ApplicableSchedule from ._models import ApplicableScheduleFragment @@ -164,42 +127,27 @@ from ._models import ArmTemplate from ._models import ArmTemplateInfo from ._models import ArmTemplateParameterProperties - from ._models import ArmTemplateParameterPropertiesFragment from ._models import Artifact from ._models import ArtifactDeploymentStatusProperties - from ._models import ArtifactDeploymentStatusPropertiesFragment from ._models import ArtifactInstallProperties - from ._models import ArtifactInstallPropertiesFragment from ._models import ArtifactParameterProperties - from ._models import ArtifactParameterPropertiesFragment from ._models import ArtifactSource from ._models import ArtifactSourceFragment from ._models import AttachDiskProperties from ._models import AttachNewDataDiskOptions - from ._models import AttachNewDataDiskOptionsFragment from ._models import BulkCreationParameters - from ._models import BulkCreationParametersFragment from ._models import ComputeDataDisk - from ._models import ComputeDataDiskFragment from ._models import ComputeVmInstanceViewStatus - from ._models import ComputeVmInstanceViewStatusFragment from ._models import ComputeVmProperties - from ._models import ComputeVmPropertiesFragment from ._models import CostThresholdProperties from ._models import CustomImage from ._models import CustomImageFragment from ._models import CustomImagePropertiesCustom - from ._models import CustomImagePropertiesCustomFragment from ._models import CustomImagePropertiesFromPlan - from ._models import CustomImagePropertiesFromPlanFragment from ._models import CustomImagePropertiesFromVm - from ._models import CustomImagePropertiesFromVmFragment from ._models import DataDiskProperties - from ._models import DataDiskPropertiesFragment from ._models import DataDiskStorageTypeInfo - from ._models import DataDiskStorageTypeInfoFragment from ._models import DayDetails - from ._models import DayDetailsFragment from ._models import DetachDataDiskProperties from ._models import DetachDiskProperties from ._models import Disk @@ -207,54 +155,41 @@ from ._models import DtlEnvironment from ._models import DtlEnvironmentFragment from ._models import EnvironmentDeploymentProperties - from ._models import EnvironmentDeploymentPropertiesFragment from ._models import EvaluatePoliciesProperties from ._models import EvaluatePoliciesRequest from ._models import EvaluatePoliciesResponse from ._models import Event - from ._models import EventFragment from ._models import ExportResourceUsageParameters from ._models import ExternalSubnet - from ._models import ExternalSubnetFragment from ._models import Formula from ._models import FormulaFragment from ._models import FormulaPropertiesFromVm - from ._models import FormulaPropertiesFromVmFragment from ._models import GalleryImage from ._models import GalleryImageReference - from ._models import GalleryImageReferenceFragment from ._models import GenerateArmTemplateRequest from ._models import GenerateUploadUriParameter from ._models import GenerateUploadUriResponse from ._models import HourDetails - from ._models import HourDetailsFragment from ._models import IdentityProperties from ._models import ImportLabVirtualMachineRequest from ._models import InboundNatRule - from ._models import InboundNatRuleFragment from ._models import Lab from ._models import LabAnnouncementProperties - from ._models import LabAnnouncementPropertiesFragment from ._models import LabCost from ._models import LabCostDetailsProperties from ._models import LabCostSummaryProperties from ._models import LabFragment from ._models import LabResourceCostProperties from ._models import LabSupportProperties - from ._models import LabSupportPropertiesFragment from ._models import LabVhd from ._models import LabVirtualMachine from ._models import LabVirtualMachineCreationParameter - from ._models import LabVirtualMachineCreationParameterFragment from ._models import LabVirtualMachineFragment from ._models import LinuxOsInfo - from ._models import LinuxOsInfoFragment from ._models import NetworkInterfaceProperties - from ._models import NetworkInterfacePropertiesFragment from ._models import NotificationChannel from ._models import NotificationChannelFragment from ._models import NotificationSettings - from ._models import NotificationSettingsFragment from ._models import NotifyParameters from ._models import OperationError from ._models import OperationMetadata @@ -268,43 +203,34 @@ from ._models import PolicySetResult from ._models import PolicyViolation from ._models import Port - from ._models import PortFragment from ._models import RdpConnection from ._models import ResizeLabVirtualMachineProperties from ._models import Resource from ._models import RetargetScheduleProperties from ._models import Schedule from ._models import ScheduleCreationParameter - from ._models import ScheduleCreationParameterFragment from ._models import ScheduleFragment from ._models import Secret from ._models import SecretFragment from ._models import ServiceFabric from ._models import ServiceFabricFragment from ._models import ServiceRunner + from ._models import ServiceRunnerList from ._models import SharedPublicIpAddressConfiguration - from ._models import SharedPublicIpAddressConfigurationFragment from ._models import ShutdownNotificationContent from ._models import Subnet - from ._models import SubnetFragment from ._models import SubnetOverride - from ._models import SubnetOverrideFragment from ._models import SubnetSharedPublicIpAddressConfiguration - from ._models import SubnetSharedPublicIpAddressConfigurationFragment from ._models import TargetCostProperties from ._models import UpdateResource from ._models import User from ._models import UserFragment from ._models import UserIdentity - from ._models import UserIdentityFragment from ._models import UserSecretStore - from ._models import UserSecretStoreFragment from ._models import VirtualNetwork from ._models import VirtualNetworkFragment from ._models import WeekDetails - from ._models import WeekDetailsFragment from ._models import WindowsOsInfo - from ._models import WindowsOsInfoFragment from ._paged_models import ArmTemplatePaged from ._paged_models import ArtifactPaged from ._paged_models import ArtifactSourcePaged @@ -335,13 +261,14 @@ HostCachingOptions, NotificationChannelEventType, TransportProtocol, - VirtualMachineCreationSource, FileUploadOptions, + ManagedIdentityType, PremiumDataDisk, EnvironmentPermission, TargetCostStatus, ReportingCycleType, CostType, + VirtualMachineCreationSource, HttpStatusCode, PolicyStatus, PolicyFactName, @@ -356,42 +283,27 @@ 'ArmTemplate', 'ArmTemplateInfo', 'ArmTemplateParameterProperties', - 'ArmTemplateParameterPropertiesFragment', 'Artifact', 'ArtifactDeploymentStatusProperties', - 'ArtifactDeploymentStatusPropertiesFragment', 'ArtifactInstallProperties', - 'ArtifactInstallPropertiesFragment', 'ArtifactParameterProperties', - 'ArtifactParameterPropertiesFragment', 'ArtifactSource', 'ArtifactSourceFragment', 'AttachDiskProperties', 'AttachNewDataDiskOptions', - 'AttachNewDataDiskOptionsFragment', 'BulkCreationParameters', - 'BulkCreationParametersFragment', 'ComputeDataDisk', - 'ComputeDataDiskFragment', 'ComputeVmInstanceViewStatus', - 'ComputeVmInstanceViewStatusFragment', 'ComputeVmProperties', - 'ComputeVmPropertiesFragment', 'CostThresholdProperties', 'CustomImage', 'CustomImageFragment', 'CustomImagePropertiesCustom', - 'CustomImagePropertiesCustomFragment', 'CustomImagePropertiesFromPlan', - 'CustomImagePropertiesFromPlanFragment', 'CustomImagePropertiesFromVm', - 'CustomImagePropertiesFromVmFragment', 'DataDiskProperties', - 'DataDiskPropertiesFragment', 'DataDiskStorageTypeInfo', - 'DataDiskStorageTypeInfoFragment', 'DayDetails', - 'DayDetailsFragment', 'DetachDataDiskProperties', 'DetachDiskProperties', 'Disk', @@ -399,54 +311,41 @@ 'DtlEnvironment', 'DtlEnvironmentFragment', 'EnvironmentDeploymentProperties', - 'EnvironmentDeploymentPropertiesFragment', 'EvaluatePoliciesProperties', 'EvaluatePoliciesRequest', 'EvaluatePoliciesResponse', 'Event', - 'EventFragment', 'ExportResourceUsageParameters', 'ExternalSubnet', - 'ExternalSubnetFragment', 'Formula', 'FormulaFragment', 'FormulaPropertiesFromVm', - 'FormulaPropertiesFromVmFragment', 'GalleryImage', 'GalleryImageReference', - 'GalleryImageReferenceFragment', 'GenerateArmTemplateRequest', 'GenerateUploadUriParameter', 'GenerateUploadUriResponse', 'HourDetails', - 'HourDetailsFragment', 'IdentityProperties', 'ImportLabVirtualMachineRequest', 'InboundNatRule', - 'InboundNatRuleFragment', 'Lab', 'LabAnnouncementProperties', - 'LabAnnouncementPropertiesFragment', 'LabCost', 'LabCostDetailsProperties', 'LabCostSummaryProperties', 'LabFragment', 'LabResourceCostProperties', 'LabSupportProperties', - 'LabSupportPropertiesFragment', 'LabVhd', 'LabVirtualMachine', 'LabVirtualMachineCreationParameter', - 'LabVirtualMachineCreationParameterFragment', 'LabVirtualMachineFragment', 'LinuxOsInfo', - 'LinuxOsInfoFragment', 'NetworkInterfaceProperties', - 'NetworkInterfacePropertiesFragment', 'NotificationChannel', 'NotificationChannelFragment', 'NotificationSettings', - 'NotificationSettingsFragment', 'NotifyParameters', 'OperationError', 'OperationMetadata', @@ -460,43 +359,34 @@ 'PolicySetResult', 'PolicyViolation', 'Port', - 'PortFragment', 'RdpConnection', 'ResizeLabVirtualMachineProperties', 'Resource', 'RetargetScheduleProperties', 'Schedule', 'ScheduleCreationParameter', - 'ScheduleCreationParameterFragment', 'ScheduleFragment', 'Secret', 'SecretFragment', 'ServiceFabric', 'ServiceFabricFragment', 'ServiceRunner', + 'ServiceRunnerList', 'SharedPublicIpAddressConfiguration', - 'SharedPublicIpAddressConfigurationFragment', 'ShutdownNotificationContent', 'Subnet', - 'SubnetFragment', 'SubnetOverride', - 'SubnetOverrideFragment', 'SubnetSharedPublicIpAddressConfiguration', - 'SubnetSharedPublicIpAddressConfigurationFragment', 'TargetCostProperties', 'UpdateResource', 'User', 'UserFragment', 'UserIdentity', - 'UserIdentityFragment', 'UserSecretStore', - 'UserSecretStoreFragment', 'VirtualNetwork', 'VirtualNetworkFragment', 'WeekDetails', - 'WeekDetailsFragment', 'WindowsOsInfo', - 'WindowsOsInfoFragment', 'OperationMetadataPaged', 'LabPaged', 'LabVhdPaged', @@ -526,13 +416,14 @@ 'HostCachingOptions', 'NotificationChannelEventType', 'TransportProtocol', - 'VirtualMachineCreationSource', 'FileUploadOptions', + 'ManagedIdentityType', 'PremiumDataDisk', 'EnvironmentPermission', 'TargetCostStatus', 'ReportingCycleType', 'CostType', + 'VirtualMachineCreationSource', 'HttpStatusCode', 'PolicyStatus', 'PolicyFactName', diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_dev_test_labs_client_enums.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_dev_test_labs_client_enums.py index 6a60d733ee01..da84ef1f60b5 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_dev_test_labs_client_enums.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_dev_test_labs_client_enums.py @@ -22,6 +22,7 @@ class SourceControlType(str, Enum): vso_git = "VsoGit" git_hub = "GitHub" + storage_account = "StorageAccount" class StorageType(str, Enum): @@ -77,17 +78,18 @@ class TransportProtocol(str, Enum): udp = "Udp" -class VirtualMachineCreationSource(str, Enum): +class FileUploadOptions(str, Enum): - from_custom_image = "FromCustomImage" - from_gallery_image = "FromGalleryImage" - from_shared_gallery_image = "FromSharedGalleryImage" + upload_files_and_generate_sas_tokens = "UploadFilesAndGenerateSasTokens" + none = "None" -class FileUploadOptions(str, Enum): +class ManagedIdentityType(str, Enum): - upload_files_and_generate_sas_tokens = "UploadFilesAndGenerateSasTokens" none = "None" + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned,UserAssigned" class PremiumDataDisk(str, Enum): @@ -121,6 +123,13 @@ class CostType(str, Enum): projected = "Projected" +class VirtualMachineCreationSource(str, Enum): + + from_custom_image = "FromCustomImage" + from_gallery_image = "FromGalleryImage" + from_shared_gallery_image = "FromSharedGalleryImage" + + class HttpStatusCode(str, Enum): continue_enum = "Continue" @@ -133,13 +142,18 @@ class HttpStatusCode(str, Enum): reset_content = "ResetContent" partial_content = "PartialContent" multiple_choices = "MultipleChoices" + ambiguous = "Ambiguous" moved_permanently = "MovedPermanently" + moved = "Moved" + found = "Found" redirect = "Redirect" see_other = "SeeOther" + redirect_method = "RedirectMethod" not_modified = "NotModified" use_proxy = "UseProxy" unused = "Unused" temporary_redirect = "TemporaryRedirect" + redirect_keep_verb = "RedirectKeepVerb" bad_request = "BadRequest" unauthorized = "Unauthorized" payment_required = "PaymentRequired" diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py index cd489495c90c..91897ca51a6b 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py @@ -123,24 +123,14 @@ class ApplicableScheduleFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param lab_vms_shutdown: The auto-shutdown schedule, if one has been set - at the lab or lab resource level. - :type lab_vms_shutdown: ~azure.mgmt.devtestlabs.models.ScheduleFragment - :param lab_vms_startup: The auto-startup schedule, if one has been set at - the lab or lab resource level. - :type lab_vms_startup: ~azure.mgmt.devtestlabs.models.ScheduleFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'ScheduleFragment'}, - 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'ScheduleFragment'}, } def __init__(self, **kwargs): super(ApplicableScheduleFragment, self).__init__(**kwargs) - self.lab_vms_shutdown = kwargs.get('lab_vms_shutdown', None) - self.lab_vms_startup = kwargs.get('lab_vms_startup', None) class ApplyArtifactsRequest(Model): @@ -278,26 +268,6 @@ def __init__(self, **kwargs): self.value = kwargs.get('value', None) -class ArmTemplateParameterPropertiesFragment(Model): - """Properties of an Azure Resource Manager template parameter. - - :param name: The name of the template parameter. - :type name: str - :param value: The value of the template parameter. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ArmTemplateParameterPropertiesFragment, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) - - class Artifact(Resource): """An artifact. @@ -400,32 +370,6 @@ def __init__(self, **kwargs): self.total_artifacts = kwargs.get('total_artifacts', None) -class ArtifactDeploymentStatusPropertiesFragment(Model): - """Properties of an artifact deployment. - - :param deployment_status: The deployment status of the artifact. - :type deployment_status: str - :param artifacts_applied: The total count of the artifacts that were - successfully applied. - :type artifacts_applied: int - :param total_artifacts: The total count of the artifacts that were - tentatively applied. - :type total_artifacts: int - """ - - _attribute_map = { - 'deployment_status': {'key': 'deploymentStatus', 'type': 'str'}, - 'artifacts_applied': {'key': 'artifactsApplied', 'type': 'int'}, - 'total_artifacts': {'key': 'totalArtifacts', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ArtifactDeploymentStatusPropertiesFragment, self).__init__(**kwargs) - self.deployment_status = kwargs.get('deployment_status', None) - self.artifacts_applied = kwargs.get('artifacts_applied', None) - self.total_artifacts = kwargs.get('total_artifacts', None) - - class ArtifactInstallProperties(Model): """Properties of an artifact. @@ -469,49 +413,6 @@ def __init__(self, **kwargs): self.install_time = kwargs.get('install_time', None) -class ArtifactInstallPropertiesFragment(Model): - """Properties of an artifact. - - :param artifact_id: The artifact's identifier. - :type artifact_id: str - :param artifact_title: The artifact's title. - :type artifact_title: str - :param parameters: The parameters of the artifact. - :type parameters: - list[~azure.mgmt.devtestlabs.models.ArtifactParameterPropertiesFragment] - :param status: The status of the artifact. - :type status: str - :param deployment_status_message: The status message from the deployment. - :type deployment_status_message: str - :param vm_extension_status_message: The status message from the virtual - machine extension. - :type vm_extension_status_message: str - :param install_time: The time that the artifact starts to install on the - virtual machine. - :type install_time: datetime - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'artifact_title': {'key': 'artifactTitle', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArtifactParameterPropertiesFragment]'}, - 'status': {'key': 'status', 'type': 'str'}, - 'deployment_status_message': {'key': 'deploymentStatusMessage', 'type': 'str'}, - 'vm_extension_status_message': {'key': 'vmExtensionStatusMessage', 'type': 'str'}, - 'install_time': {'key': 'installTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(ArtifactInstallPropertiesFragment, self).__init__(**kwargs) - self.artifact_id = kwargs.get('artifact_id', None) - self.artifact_title = kwargs.get('artifact_title', None) - self.parameters = kwargs.get('parameters', None) - self.status = kwargs.get('status', None) - self.deployment_status_message = kwargs.get('deployment_status_message', None) - self.vm_extension_status_message = kwargs.get('vm_extension_status_message', None) - self.install_time = kwargs.get('install_time', None) - - class ArtifactParameterProperties(Model): """Properties of an artifact parameter. @@ -532,26 +433,6 @@ def __init__(self, **kwargs): self.value = kwargs.get('value', None) -class ArtifactParameterPropertiesFragment(Model): - """Properties of an artifact parameter. - - :param name: The name of the artifact parameter. - :type name: str - :param value: The value of the artifact parameter. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ArtifactParameterPropertiesFragment, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) - - class ArtifactSource(Resource): """Properties of an artifact source. @@ -573,7 +454,7 @@ class ArtifactSource(Resource): :param uri: The artifact source's URI. :type uri: str :param source_type: The artifact source's type. Possible values include: - 'VsoGit', 'GitHub' + 'VsoGit', 'GitHub', 'StorageAccount' :type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType :param folder_path: The folder containing artifacts. :type folder_path: str @@ -645,50 +526,14 @@ class ArtifactSourceFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param display_name: The artifact source's display name. - :type display_name: str - :param uri: The artifact source's URI. - :type uri: str - :param source_type: The artifact source's type. Possible values include: - 'VsoGit', 'GitHub' - :type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType - :param folder_path: The folder containing artifacts. - :type folder_path: str - :param arm_template_folder_path: The folder containing Azure Resource - Manager templates. - :type arm_template_folder_path: str - :param branch_ref: The artifact source's branch reference. - :type branch_ref: str - :param security_token: The security token to authenticate to the artifact - source. - :type security_token: str - :param status: Indicates if the artifact source is enabled (values: - Enabled, Disabled). Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'uri': {'key': 'properties.uri', 'type': 'str'}, - 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, - 'arm_template_folder_path': {'key': 'properties.armTemplateFolderPath', 'type': 'str'}, - 'branch_ref': {'key': 'properties.branchRef', 'type': 'str'}, - 'security_token': {'key': 'properties.securityToken', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, } def __init__(self, **kwargs): super(ArtifactSourceFragment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.uri = kwargs.get('uri', None) - self.source_type = kwargs.get('source_type', None) - self.folder_path = kwargs.get('folder_path', None) - self.arm_template_folder_path = kwargs.get('arm_template_folder_path', None) - self.branch_ref = kwargs.get('branch_ref', None) - self.security_token = kwargs.get('security_token', None) - self.status = kwargs.get('status', None) class AttachDiskProperties(Model): @@ -711,7 +556,7 @@ def __init__(self, **kwargs): class AttachNewDataDiskOptions(Model): """Properties to attach new disk to the Virtual Machine. - :param disk_size_gi_b: Size of the disk to be attached in GibiBytes. + :param disk_size_gi_b: Size of the disk to be attached in Gibibytes. :type disk_size_gi_b: int :param disk_name: The name of the disk to be attached. :type disk_name: str @@ -733,31 +578,6 @@ def __init__(self, **kwargs): self.disk_type = kwargs.get('disk_type', None) -class AttachNewDataDiskOptionsFragment(Model): - """Properties to attach new disk to the Virtual Machine. - - :param disk_size_gi_b: Size of the disk to be attached in GibiBytes. - :type disk_size_gi_b: int - :param disk_name: The name of the disk to be attached. - :type disk_name: str - :param disk_type: The storage type for the disk (i.e. Standard, Premium). - Possible values include: 'Standard', 'Premium', 'StandardSSD' - :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - """ - - _attribute_map = { - 'disk_size_gi_b': {'key': 'diskSizeGiB', 'type': 'int'}, - 'disk_name': {'key': 'diskName', 'type': 'str'}, - 'disk_type': {'key': 'diskType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AttachNewDataDiskOptionsFragment, self).__init__(**kwargs) - self.disk_size_gi_b = kwargs.get('disk_size_gi_b', None) - self.disk_name = kwargs.get('disk_name', None) - self.disk_type = kwargs.get('disk_type', None) - - class BulkCreationParameters(Model): """Parameters for creating multiple virtual machines as a single action. @@ -774,22 +594,6 @@ def __init__(self, **kwargs): self.instance_count = kwargs.get('instance_count', None) -class BulkCreationParametersFragment(Model): - """Parameters for creating multiple virtual machines as a single action. - - :param instance_count: The number of virtual machine instances to create. - :type instance_count: int - """ - - _attribute_map = { - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(BulkCreationParametersFragment, self).__init__(**kwargs) - self.instance_count = kwargs.get('instance_count', None) - - class CloudError(Model): """Error from a REST request. @@ -875,35 +679,6 @@ def __init__(self, **kwargs): self.disk_size_gi_b = kwargs.get('disk_size_gi_b', None) -class ComputeDataDiskFragment(Model): - """A data disks attached to a virtual machine. - - :param name: Gets data disk name. - :type name: str - :param disk_uri: When backed by a blob, the URI of underlying blob. - :type disk_uri: str - :param managed_disk_id: When backed by managed disk, this is the ID of the - compute disk resource. - :type managed_disk_id: str - :param disk_size_gi_b: Gets data disk size in GiB. - :type disk_size_gi_b: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'disk_uri': {'key': 'diskUri', 'type': 'str'}, - 'managed_disk_id': {'key': 'managedDiskId', 'type': 'str'}, - 'disk_size_gi_b': {'key': 'diskSizeGiB', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ComputeDataDiskFragment, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.disk_uri = kwargs.get('disk_uri', None) - self.managed_disk_id = kwargs.get('managed_disk_id', None) - self.disk_size_gi_b = kwargs.get('disk_size_gi_b', None) - - class ComputeVmInstanceViewStatus(Model): """Status information about a virtual machine. @@ -928,30 +703,6 @@ def __init__(self, **kwargs): self.message = kwargs.get('message', None) -class ComputeVmInstanceViewStatusFragment(Model): - """Status information about a virtual machine. - - :param code: Gets the status Code. - :type code: str - :param display_status: Gets the short localizable label for the status. - :type display_status: str - :param message: Gets the message associated with the status. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'display_status': {'key': 'displayStatus', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ComputeVmInstanceViewStatusFragment, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.display_status = kwargs.get('display_status', None) - self.message = kwargs.get('message', None) - - class ComputeVmProperties(Model): """Properties of a virtual machine returned by the Microsoft.Compute API. @@ -994,51 +745,8 @@ def __init__(self, **kwargs): self.data_disks = kwargs.get('data_disks', None) -class ComputeVmPropertiesFragment(Model): - """Properties of a virtual machine returned by the Microsoft.Compute API. - - :param statuses: Gets the statuses of the virtual machine. - :type statuses: - list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment] - :param os_type: Gets the OS type of the virtual machine. - :type os_type: str - :param vm_size: Gets the size of the virtual machine. - :type vm_size: str - :param network_interface_id: Gets the network interface ID of the virtual - machine. - :type network_interface_id: str - :param os_disk_id: Gets OS disk blob uri for the virtual machine. - :type os_disk_id: str - :param data_disk_ids: Gets data disks blob uri for the virtual machine. - :type data_disk_ids: list[str] - :param data_disks: Gets all data disks attached to the virtual machine. - :type data_disks: - list[~azure.mgmt.devtestlabs.models.ComputeDataDiskFragment] - """ - - _attribute_map = { - 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatusFragment]'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'network_interface_id': {'key': 'networkInterfaceId', 'type': 'str'}, - 'os_disk_id': {'key': 'osDiskId', 'type': 'str'}, - 'data_disk_ids': {'key': 'dataDiskIds', 'type': '[str]'}, - 'data_disks': {'key': 'dataDisks', 'type': '[ComputeDataDiskFragment]'}, - } - - def __init__(self, **kwargs): - super(ComputeVmPropertiesFragment, self).__init__(**kwargs) - self.statuses = kwargs.get('statuses', None) - self.os_type = kwargs.get('os_type', None) - self.vm_size = kwargs.get('vm_size', None) - self.network_interface_id = kwargs.get('network_interface_id', None) - self.os_disk_id = kwargs.get('os_disk_id', None) - self.data_disk_ids = kwargs.get('data_disk_ids', None) - self.data_disks = kwargs.get('data_disks', None) - - -class CostThresholdProperties(Model): - """Properties of a cost threshold item. +class CostThresholdProperties(Model): + """Properties of a cost threshold item. :param threshold_id: The ID of the cost threshold item. :type threshold_id: str @@ -1175,58 +883,14 @@ class CustomImageFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param vm: The virtual machine from which the image is to be created. - :type vm: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromVmFragment - :param vhd: The VHD from which the image is to be created. - :type vhd: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustomFragment - :param description: The description of the custom image. - :type description: str - :param author: The author of the custom image. - :type author: str - :param managed_image_id: The Managed Image Id backing the custom image. - :type managed_image_id: str - :param managed_snapshot_id: The Managed Snapshot Id backing the custom - image. - :type managed_snapshot_id: str - :param data_disk_storage_info: Storage information about the data disks - present in the custom image - :type data_disk_storage_info: - list[~azure.mgmt.devtestlabs.models.DataDiskStorageTypeInfoFragment] - :param custom_image_plan: Storage information about the plan related to - this custom image - :type custom_image_plan: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlanFragment - :param is_plan_authorized: Whether or not the custom images underlying - offer/plan has been enabled for programmatic deployment - :type is_plan_authorized: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVmFragment'}, - 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustomFragment'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, - 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, - 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfoFragment]'}, - 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlanFragment'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, } def __init__(self, **kwargs): super(CustomImageFragment, self).__init__(**kwargs) - self.vm = kwargs.get('vm', None) - self.vhd = kwargs.get('vhd', None) - self.description = kwargs.get('description', None) - self.author = kwargs.get('author', None) - self.managed_image_id = kwargs.get('managed_image_id', None) - self.managed_snapshot_id = kwargs.get('managed_snapshot_id', None) - self.data_disk_storage_info = kwargs.get('data_disk_storage_info', None) - self.custom_image_plan = kwargs.get('custom_image_plan', None) - self.is_plan_authorized = kwargs.get('is_plan_authorized', None) class CustomImagePropertiesCustom(Model): @@ -1260,31 +924,6 @@ def __init__(self, **kwargs): self.os_type = kwargs.get('os_type', None) -class CustomImagePropertiesCustomFragment(Model): - """Properties for creating a custom image from a VHD. - - :param image_name: The image name. - :type image_name: str - :param sys_prep: Indicates whether sysprep has been run on the VHD. - :type sys_prep: bool - :param os_type: The OS type of the custom image (i.e. Windows, Linux). - Possible values include: 'Windows', 'Linux', 'None' - :type os_type: str or ~azure.mgmt.devtestlabs.models.CustomImageOsType - """ - - _attribute_map = { - 'image_name': {'key': 'imageName', 'type': 'str'}, - 'sys_prep': {'key': 'sysPrep', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomImagePropertiesCustomFragment, self).__init__(**kwargs) - self.image_name = kwargs.get('image_name', None) - self.sys_prep = kwargs.get('sys_prep', None) - self.os_type = kwargs.get('os_type', None) - - class CustomImagePropertiesFromPlan(Model): """Properties for plan on a custom image. @@ -1311,32 +950,6 @@ def __init__(self, **kwargs): self.offer = kwargs.get('offer', None) -class CustomImagePropertiesFromPlanFragment(Model): - """Properties for plan on a custom image. - - :param id: The id of the plan, equivalent to name of the plan - :type id: str - :param publisher: The publisher for the plan from the marketplace image - the custom image is derived from - :type publisher: str - :param offer: The offer for the plan from the marketplace image the custom - image is derived from - :type offer: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'offer': {'key': 'offer', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomImagePropertiesFromPlanFragment, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.publisher = kwargs.get('publisher', None) - self.offer = kwargs.get('offer', None) - - class CustomImagePropertiesFromVm(Model): """Properties for creating a custom image from a virtual machine. @@ -1361,31 +974,6 @@ def __init__(self, **kwargs): self.linux_os_info = kwargs.get('linux_os_info', None) -class CustomImagePropertiesFromVmFragment(Model): - """Properties for creating a custom image from a virtual machine. - - :param source_vm_id: The source vm identifier. - :type source_vm_id: str - :param windows_os_info: The Windows OS information of the VM. - :type windows_os_info: - ~azure.mgmt.devtestlabs.models.WindowsOsInfoFragment - :param linux_os_info: The Linux OS information of the VM. - :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfoFragment - """ - - _attribute_map = { - 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, - 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfoFragment'}, - 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfoFragment'}, - } - - def __init__(self, **kwargs): - super(CustomImagePropertiesFromVmFragment, self).__init__(**kwargs) - self.source_vm_id = kwargs.get('source_vm_id', None) - self.windows_os_info = kwargs.get('windows_os_info', None) - self.linux_os_info = kwargs.get('linux_os_info', None) - - class DataDiskProperties(Model): """Request body for adding a new or existing data disk to a virtual machine. @@ -1415,35 +1003,6 @@ def __init__(self, **kwargs): self.host_caching = kwargs.get('host_caching', None) -class DataDiskPropertiesFragment(Model): - """Request body for adding a new or existing data disk to a virtual machine. - - :param attach_new_data_disk_options: Specifies options to attach a new - disk to the virtual machine. - :type attach_new_data_disk_options: - ~azure.mgmt.devtestlabs.models.AttachNewDataDiskOptionsFragment - :param existing_lab_disk_id: Specifies the existing lab disk id to attach - to virtual machine. - :type existing_lab_disk_id: str - :param host_caching: Caching option for a data disk (i.e. None, ReadOnly, - ReadWrite). Possible values include: 'None', 'ReadOnly', 'ReadWrite' - :type host_caching: str or - ~azure.mgmt.devtestlabs.models.HostCachingOptions - """ - - _attribute_map = { - 'attach_new_data_disk_options': {'key': 'attachNewDataDiskOptions', 'type': 'AttachNewDataDiskOptionsFragment'}, - 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, - 'host_caching': {'key': 'hostCaching', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataDiskPropertiesFragment, self).__init__(**kwargs) - self.attach_new_data_disk_options = kwargs.get('attach_new_data_disk_options', None) - self.existing_lab_disk_id = kwargs.get('existing_lab_disk_id', None) - self.host_caching = kwargs.get('host_caching', None) - - class DataDiskStorageTypeInfo(Model): """Storage information about the data disks present in the custom image. @@ -1465,27 +1024,6 @@ def __init__(self, **kwargs): self.storage_type = kwargs.get('storage_type', None) -class DataDiskStorageTypeInfoFragment(Model): - """Storage information about the data disks present in the custom image. - - :param lun: Disk Lun - :type lun: str - :param storage_type: Disk Storage Type. Possible values include: - 'Standard', 'Premium', 'StandardSSD' - :type storage_type: str or ~azure.mgmt.devtestlabs.models.StorageType - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataDiskStorageTypeInfoFragment, self).__init__(**kwargs) - self.lun = kwargs.get('lun', None) - self.storage_type = kwargs.get('storage_type', None) - - class DayDetails(Model): """Properties of a daily schedule. @@ -1502,22 +1040,6 @@ def __init__(self, **kwargs): self.time = kwargs.get('time', None) -class DayDetailsFragment(Model): - """Properties of a daily schedule. - - :param time: The time of day the schedule will occur. - :type time: str - """ - - _attribute_map = { - 'time': {'key': 'time', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DayDetailsFragment, self).__init__(**kwargs) - self.time = kwargs.get('time', None) - - class DetachDataDiskProperties(Model): """Request body for detaching data disk from a virtual machine. @@ -1571,7 +1093,7 @@ class Disk(Resource): :param disk_type: The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param disk_size_gi_b: The size of the disk in GibiBytes. + :param disk_size_gi_b: The size of the disk in Gibibytes. :type disk_size_gi_b: int :param leased_by_lab_vm_id: The resource ID of the VM to which this disk is leased. @@ -1581,6 +1103,9 @@ class Disk(Resource): :type disk_blob_name: str :param disk_uri: When backed by a blob, the URI of underlying blob. :type disk_uri: str + :param storage_account_id: When backed by a blob, the storage account + where the blob is. + :type storage_account_id: str :ivar created_date: The creation date of the disk. :vartype created_date: datetime :param host_caching: The host caching policy of the disk (i.e. None, @@ -1616,6 +1141,7 @@ class Disk(Resource): 'leased_by_lab_vm_id': {'key': 'properties.leasedByLabVmId', 'type': 'str'}, 'disk_blob_name': {'key': 'properties.diskBlobName', 'type': 'str'}, 'disk_uri': {'key': 'properties.diskUri', 'type': 'str'}, + 'storage_account_id': {'key': 'properties.storageAccountId', 'type': 'str'}, 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, @@ -1630,6 +1156,7 @@ def __init__(self, **kwargs): self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', None) self.disk_blob_name = kwargs.get('disk_blob_name', None) self.disk_uri = kwargs.get('disk_uri', None) + self.storage_account_id = kwargs.get('storage_account_id', None) self.created_date = None self.host_caching = kwargs.get('host_caching', None) self.managed_disk_id = kwargs.get('managed_disk_id', None) @@ -1642,47 +1169,14 @@ class DiskFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param disk_type: The storage type for the disk (i.e. Standard, Premium). - Possible values include: 'Standard', 'Premium', 'StandardSSD' - :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param disk_size_gi_b: The size of the disk in GibiBytes. - :type disk_size_gi_b: int - :param leased_by_lab_vm_id: The resource ID of the VM to which this disk - is leased. - :type leased_by_lab_vm_id: str - :param disk_blob_name: When backed by a blob, the name of the VHD blob - without extension. - :type disk_blob_name: str - :param disk_uri: When backed by a blob, the URI of underlying blob. - :type disk_uri: str - :param host_caching: The host caching policy of the disk (i.e. None, - ReadOnly, ReadWrite). - :type host_caching: str - :param managed_disk_id: When backed by managed disk, this is the ID of the - compute disk resource. - :type managed_disk_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'disk_type': {'key': 'properties.diskType', 'type': 'str'}, - 'disk_size_gi_b': {'key': 'properties.diskSizeGiB', 'type': 'int'}, - 'leased_by_lab_vm_id': {'key': 'properties.leasedByLabVmId', 'type': 'str'}, - 'disk_blob_name': {'key': 'properties.diskBlobName', 'type': 'str'}, - 'disk_uri': {'key': 'properties.diskUri', 'type': 'str'}, - 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, - 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, } def __init__(self, **kwargs): super(DiskFragment, self).__init__(**kwargs) - self.disk_type = kwargs.get('disk_type', None) - self.disk_size_gi_b = kwargs.get('disk_size_gi_b', None) - self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', None) - self.disk_blob_name = kwargs.get('disk_blob_name', None) - self.disk_uri = kwargs.get('disk_uri', None) - self.host_caching = kwargs.get('host_caching', None) - self.managed_disk_id = kwargs.get('managed_disk_id', None) class DtlEnvironment(Resource): @@ -1759,25 +1253,14 @@ class DtlEnvironmentFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param deployment_properties: The deployment properties of the - environment. - :type deployment_properties: - ~azure.mgmt.devtestlabs.models.EnvironmentDeploymentPropertiesFragment - :param arm_template_display_name: The display name of the Azure Resource - Manager template that produced the environment. - :type arm_template_display_name: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentPropertiesFragment'}, - 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, } def __init__(self, **kwargs): super(DtlEnvironmentFragment, self).__init__(**kwargs) - self.deployment_properties = kwargs.get('deployment_properties', None) - self.arm_template_display_name = kwargs.get('arm_template_display_name', None) class EnvironmentDeploymentProperties(Model): @@ -1801,27 +1284,6 @@ def __init__(self, **kwargs): self.parameters = kwargs.get('parameters', None) -class EnvironmentDeploymentPropertiesFragment(Model): - """Properties of an environment deployment. - - :param arm_template_id: The Azure Resource Manager template's identifier. - :type arm_template_id: str - :param parameters: The parameters of the Azure Resource Manager template. - :type parameters: - list[~azure.mgmt.devtestlabs.models.ArmTemplateParameterPropertiesFragment] - """ - - _attribute_map = { - 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterPropertiesFragment]'}, - } - - def __init__(self, **kwargs): - super(EnvironmentDeploymentPropertiesFragment, self).__init__(**kwargs) - self.arm_template_id = kwargs.get('arm_template_id', None) - self.parameters = kwargs.get('parameters', None) - - class EvaluatePoliciesProperties(Model): """Properties for evaluating a policy set. @@ -1901,24 +1363,6 @@ def __init__(self, **kwargs): self.event_name = kwargs.get('event_name', None) -class EventFragment(Model): - """An event to be notified for. - - :param event_name: The event type for which this notification is enabled - (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' - :type event_name: str or - ~azure.mgmt.devtestlabs.models.NotificationChannelEventType - """ - - _attribute_map = { - 'event_name': {'key': 'eventName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EventFragment, self).__init__(**kwargs) - self.event_name = kwargs.get('event_name', None) - - class ExportResourceUsageParameters(Model): """The parameters of the export operation. @@ -1962,26 +1406,6 @@ def __init__(self, **kwargs): self.name = kwargs.get('name', None) -class ExternalSubnetFragment(Model): - """Subnet information as returned by the Microsoft.Network API. - - :param id: Gets or sets the identifier. - :type id: str - :param name: Gets or sets the name. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExternalSubnetFragment, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - - class Formula(Resource): """A formula for creating a VM, specifying an image base and other parameters. @@ -2000,8 +1424,8 @@ class Formula(Resource): :type tags: dict[str, str] :param description: The description of the formula. :type description: str - :param author: The author of the formula. - :type author: str + :ivar author: The author of the formula. + :vartype author: str :param os_type: The OS type of the formula. :type os_type: str :ivar creation_date: The creation date of the formula. @@ -2022,6 +1446,7 @@ class Formula(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'author': {'readonly': True}, 'creation_date': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'unique_identifier': {'readonly': True}, @@ -2046,7 +1471,7 @@ class Formula(Resource): def __init__(self, **kwargs): super(Formula, self).__init__(**kwargs) self.description = kwargs.get('description', None) - self.author = kwargs.get('author', None) + self.author = None self.os_type = kwargs.get('os_type', None) self.creation_date = None self.formula_content = kwargs.get('formula_content', None) @@ -2060,35 +1485,14 @@ class FormulaFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param description: The description of the formula. - :type description: str - :param author: The author of the formula. - :type author: str - :param os_type: The OS type of the formula. - :type os_type: str - :param formula_content: The content of the formula. - :type formula_content: - ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameterFragment - :param vm: Information about a VM from which a formula is to be created. - :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVmFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameterFragment'}, - 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVmFragment'}, } def __init__(self, **kwargs): super(FormulaFragment, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.author = kwargs.get('author', None) - self.os_type = kwargs.get('os_type', None) - self.formula_content = kwargs.get('formula_content', None) - self.vm = kwargs.get('vm', None) class FormulaPropertiesFromVm(Model): @@ -2108,23 +1512,6 @@ def __init__(self, **kwargs): self.lab_vm_id = kwargs.get('lab_vm_id', None) -class FormulaPropertiesFromVmFragment(Model): - """Information about a VM from which a formula is to be created. - - :param lab_vm_id: The identifier of the VM from which a formula is to be - created. - :type lab_vm_id: str - """ - - _attribute_map = { - 'lab_vm_id': {'key': 'labVmId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FormulaPropertiesFromVmFragment, self).__init__(**kwargs) - self.lab_vm_id = kwargs.get('lab_vm_id', None) - - class GalleryImage(Resource): """A gallery image. @@ -2228,38 +1615,6 @@ def __init__(self, **kwargs): self.version = kwargs.get('version', None) -class GalleryImageReferenceFragment(Model): - """The reference information for an Azure Marketplace image. - - :param offer: The offer of the gallery image. - :type offer: str - :param publisher: The publisher of the gallery image. - :type publisher: str - :param sku: The SKU of the gallery image. - :type sku: str - :param os_type: The OS type of the gallery image. - :type os_type: str - :param version: The version of the gallery image. - :type version: str - """ - - _attribute_map = { - 'offer': {'key': 'offer', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GalleryImageReferenceFragment, self).__init__(**kwargs) - self.offer = kwargs.get('offer', None) - self.publisher = kwargs.get('publisher', None) - self.sku = kwargs.get('sku', None) - self.os_type = kwargs.get('os_type', None) - self.version = kwargs.get('version', None) - - class GenerateArmTemplateRequest(Model): """Parameters for generating an ARM template for deploying artifacts. @@ -2339,27 +1694,12 @@ def __init__(self, **kwargs): self.minute = kwargs.get('minute', None) -class HourDetailsFragment(Model): - """Properties of an hourly schedule. - - :param minute: Minutes of the hour the schedule will run. - :type minute: int - """ - - _attribute_map = { - 'minute': {'key': 'minute', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(HourDetailsFragment, self).__init__(**kwargs) - self.minute = kwargs.get('minute', None) - - class IdentityProperties(Model): """Properties of a managed identity. - :param type: Managed identity. - :type type: str + :param type: Managed identity. Possible values include: 'None', + 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + :type type: str or ~azure.mgmt.devtestlabs.models.ManagedIdentityType :param principal_id: The principal id of resource identity. :type principal_id: str :param tenant_id: The tenant identifier of resource. @@ -2436,36 +1776,6 @@ def __init__(self, **kwargs): self.backend_port = kwargs.get('backend_port', None) -class InboundNatRuleFragment(Model): - """A rule for NAT - exposing a VM's port (backendPort) on the public IP - address using a load balancer. - - :param transport_protocol: The transport protocol for the endpoint. - Possible values include: 'Tcp', 'Udp' - :type transport_protocol: str or - ~azure.mgmt.devtestlabs.models.TransportProtocol - :param frontend_port: The external endpoint port of the inbound - connection. Possible values range between 1 and 65535, inclusive. If - unspecified, a value will be allocated automatically. - :type frontend_port: int - :param backend_port: The port to which the external traffic will be - redirected. - :type backend_port: int - """ - - _attribute_map = { - 'transport_protocol': {'key': 'transportProtocol', 'type': 'str'}, - 'frontend_port': {'key': 'frontendPort', 'type': 'int'}, - 'backend_port': {'key': 'backendPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(InboundNatRuleFragment, self).__init__(**kwargs) - self.transport_protocol = kwargs.get('transport_protocol', None) - self.frontend_port = kwargs.get('frontend_port', None) - self.backend_port = kwargs.get('backend_port', None) - - class Lab(Resource): """A lab. @@ -2672,41 +1982,6 @@ def __init__(self, **kwargs): self.unique_identifier = None -class LabAnnouncementPropertiesFragment(Model): - """Properties of a lab's announcement banner. - - :param title: The plain text title for the lab announcement - :type title: str - :param markdown: The markdown text (if any) that this lab displays in the - UI. If left empty/null, nothing will be shown. - :type markdown: str - :param enabled: Is the lab announcement active/enabled at this time?. - Possible values include: 'Enabled', 'Disabled' - :type enabled: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param expiration_date: The time at which the announcement expires (null - for never) - :type expiration_date: datetime - :param expired: Has this announcement expired? - :type expired: bool - """ - - _attribute_map = { - 'title': {'key': 'title', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'expired': {'key': 'expired', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(LabAnnouncementPropertiesFragment, self).__init__(**kwargs) - self.title = kwargs.get('title', None) - self.markdown = kwargs.get('markdown', None) - self.enabled = kwargs.get('enabled', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.expired = kwargs.get('expired', None) - - class LabCost(Resource): """A cost item. @@ -2838,65 +2113,14 @@ class LabFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param lab_storage_type: Type of storage used by the lab. It can be either - Premium or Standard. Default is Premium. Possible values include: - 'Standard', 'Premium', 'StandardSSD' - :type lab_storage_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param mandatory_artifacts_resource_ids_linux: 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. - :type mandatory_artifacts_resource_ids_linux: list[str] - :param mandatory_artifacts_resource_ids_windows: 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. - :type mandatory_artifacts_resource_ids_windows: list[str] - :param premium_data_disks: 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. Possible values include: 'Disabled', 'Enabled' - :type premium_data_disks: str or - ~azure.mgmt.devtestlabs.models.PremiumDataDisk - :param environment_permission: The access rights to be granted to the user - when provisioning an environment. Possible values include: 'Reader', - 'Contributor' - :type environment_permission: str or - ~azure.mgmt.devtestlabs.models.EnvironmentPermission - :param announcement: The properties of any lab announcement associated - with this lab - :type announcement: - ~azure.mgmt.devtestlabs.models.LabAnnouncementPropertiesFragment - :param support: The properties of any lab support message associated with - this lab - :type support: ~azure.mgmt.devtestlabs.models.LabSupportPropertiesFragment - :param extended_properties: Extended properties of the lab used for - experimental features - :type extended_properties: dict[str, str] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_storage_type': {'key': 'properties.labStorageType', 'type': 'str'}, - 'mandatory_artifacts_resource_ids_linux': {'key': 'properties.mandatoryArtifactsResourceIdsLinux', 'type': '[str]'}, - 'mandatory_artifacts_resource_ids_windows': {'key': 'properties.mandatoryArtifactsResourceIdsWindows', 'type': '[str]'}, - 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, - 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, - 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementPropertiesFragment'}, - 'support': {'key': 'properties.support', 'type': 'LabSupportPropertiesFragment'}, - 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, } def __init__(self, **kwargs): super(LabFragment, self).__init__(**kwargs) - self.lab_storage_type = kwargs.get('lab_storage_type', None) - self.mandatory_artifacts_resource_ids_linux = kwargs.get('mandatory_artifacts_resource_ids_linux', None) - self.mandatory_artifacts_resource_ids_windows = kwargs.get('mandatory_artifacts_resource_ids_windows', None) - self.premium_data_disks = kwargs.get('premium_data_disks', None) - self.environment_permission = kwargs.get('environment_permission', None) - self.announcement = kwargs.get('announcement', None) - self.support = kwargs.get('support', None) - self.extended_properties = kwargs.get('extended_properties', None) class LabResourceCostProperties(Model): @@ -2972,28 +2196,6 @@ def __init__(self, **kwargs): self.markdown = kwargs.get('markdown', None) -class LabSupportPropertiesFragment(Model): - """Properties of a lab's support banner. - - :param enabled: Is the lab support banner active/enabled at this time?. - Possible values include: 'Enabled', 'Disabled' - :type enabled: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param markdown: The markdown text (if any) that this lab displays in the - UI. If left empty/null, nothing will be shown. - :type markdown: str - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabSupportPropertiesFragment, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.markdown = kwargs.get('markdown', None) - - class LabVhd(Model): """Properties of a VHD in the lab. @@ -3029,27 +2231,27 @@ class LabVirtualMachine(Resource): :param notes: The notes of the virtual machine. :type notes: str :param owner_object_id: The object identifier of the owner of the virtual - machine. + machine. Default value: "dynamicValue" . :type owner_object_id: str :param owner_user_principal_name: The user principal name of the virtual machine owner. :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the + :ivar created_by_user_id: The object identifier of the creator of the virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual + :vartype created_by_user_id: str + :ivar created_by_user: The email address of creator of the virtual machine. - :type created_by_user: str + :vartype created_by_user: str :param created_date: The creation date of the virtual machine. :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the + :ivar compute_id: The resource identifier (Microsoft.Compute) of the virtual machine. - :type compute_id: str + :vartype compute_id: str :param custom_image_id: The custom image identifier of the virtual machine. :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str + :ivar os_type: The OS type of the virtual machine. + :vartype os_type: str :param size: The size of the virtual machine. :type size: str :param user_name: The user name of the virtual machine. @@ -3061,22 +2263,22 @@ class LabVirtualMachine(Resource): :param is_authentication_with_ssh_key: Indicates whether this virtual machine uses an SSH key for authentication. :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str + :ivar fqdn: The fully-qualified domain name of the virtual machine. + :vartype fqdn: str :param lab_subnet_name: The lab subnet name of the virtual machine. :type lab_subnet_name: str :param lab_virtual_network_id: The lab virtual network identifier of the virtual machine. :type lab_virtual_network_id: str :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. + is to be created without a public IP address. Default value: False . :type disallow_public_ip_address: bool :param artifacts: The artifacts to be installed on the virtual machine. :type artifacts: list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - :param artifact_deployment_status: The artifact deployment status for the + :ivar artifact_deployment_status: The artifact deployment status for the virtual machine. - :type artifact_deployment_status: + :vartype artifact_deployment_status: ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties :param gallery_image_reference: The Microsoft Azure Marketplace image reference of the virtual machine. @@ -3097,15 +2299,15 @@ class LabVirtualMachine(Resource): :param expiration_date: The expiration date for VM. :type expiration_date: datetime :param allow_claim: Indicates whether another user can take ownership of - the virtual machine + the virtual machine. Default value: False . :type allow_claim: bool :param storage_type: Storage type to use for virtual machine (i.e. Standard, Premium). :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab + :ivar virtual_machine_creation_source: Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or + :vartype virtual_machine_creation_source: str or ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource :param environment_id: The resource ID of the environment that contains this virtual machine, if any. @@ -3117,9 +2319,9 @@ class LabVirtualMachine(Resource): :param schedule_parameters: Virtual Machine schedules to be created :type schedule_parameters: list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameter] - :param last_known_power_state: Last known compute power state captured in + :ivar last_known_power_state: Last known compute power state captured in DTL - :type last_known_power_state: str + :vartype last_known_power_state: str :ivar provisioning_state: The provisioning status of the resource. :vartype provisioning_state: str :ivar unique_identifier: The unique immutable identifier of a resource @@ -3131,8 +2333,16 @@ class LabVirtualMachine(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'created_by_user_id': {'readonly': True}, + 'created_by_user': {'readonly': True}, + 'compute_id': {'readonly': True}, + 'os_type': {'readonly': True}, + 'fqdn': {'readonly': True}, + 'artifact_deployment_status': {'readonly': True}, 'compute_vm': {'readonly': True}, 'applicable_schedule': {'readonly': True}, + 'virtual_machine_creation_source': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'unique_identifier': {'readonly': True}, } @@ -3183,38 +2393,38 @@ class LabVirtualMachine(Resource): def __init__(self, **kwargs): super(LabVirtualMachine, self).__init__(**kwargs) self.notes = kwargs.get('notes', None) - self.owner_object_id = kwargs.get('owner_object_id', None) + self.owner_object_id = kwargs.get('owner_object_id', "dynamicValue") self.owner_user_principal_name = kwargs.get('owner_user_principal_name', None) - self.created_by_user_id = kwargs.get('created_by_user_id', None) - self.created_by_user = kwargs.get('created_by_user', None) + self.created_by_user_id = None + self.created_by_user = None self.created_date = kwargs.get('created_date', None) - self.compute_id = kwargs.get('compute_id', None) + self.compute_id = None self.custom_image_id = kwargs.get('custom_image_id', None) - self.os_type = kwargs.get('os_type', None) + self.os_type = None self.size = kwargs.get('size', None) self.user_name = kwargs.get('user_name', None) self.password = kwargs.get('password', None) self.ssh_key = kwargs.get('ssh_key', None) self.is_authentication_with_ssh_key = kwargs.get('is_authentication_with_ssh_key', None) - self.fqdn = kwargs.get('fqdn', None) + self.fqdn = None self.lab_subnet_name = kwargs.get('lab_subnet_name', None) self.lab_virtual_network_id = kwargs.get('lab_virtual_network_id', None) - self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', None) + self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', False) self.artifacts = kwargs.get('artifacts', None) - self.artifact_deployment_status = kwargs.get('artifact_deployment_status', None) + self.artifact_deployment_status = None self.gallery_image_reference = kwargs.get('gallery_image_reference', None) self.plan_id = kwargs.get('plan_id', None) self.compute_vm = None self.network_interface = kwargs.get('network_interface', None) self.applicable_schedule = None self.expiration_date = kwargs.get('expiration_date', None) - self.allow_claim = kwargs.get('allow_claim', None) + self.allow_claim = kwargs.get('allow_claim', False) self.storage_type = kwargs.get('storage_type', None) - self.virtual_machine_creation_source = kwargs.get('virtual_machine_creation_source', None) + self.virtual_machine_creation_source = None self.environment_id = kwargs.get('environment_id', None) self.data_disk_parameters = kwargs.get('data_disk_parameters', None) self.schedule_parameters = kwargs.get('schedule_parameters', None) - self.last_known_power_state = kwargs.get('last_known_power_state', None) + self.last_known_power_state = None self.provisioning_state = None self.unique_identifier = None @@ -3229,27 +2439,16 @@ class LabVirtualMachineCreationParameter(Model): :param notes: The notes of the virtual machine. :type notes: str :param owner_object_id: The object identifier of the owner of the virtual - machine. + machine. Default value: "dynamicValue" . :type owner_object_id: str :param owner_user_principal_name: The user principal name of the virtual machine owner. :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str :param created_date: The creation date of the virtual machine. :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str :param custom_image_id: The custom image identifier of the virtual machine. :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str :param size: The size of the virtual machine. :type size: str :param user_name: The user name of the virtual machine. @@ -3261,23 +2460,17 @@ class LabVirtualMachineCreationParameter(Model): :param is_authentication_with_ssh_key: Indicates whether this virtual machine uses an SSH key for authentication. :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str :param lab_subnet_name: The lab subnet name of the virtual machine. :type lab_subnet_name: str :param lab_virtual_network_id: The lab virtual network identifier of the virtual machine. :type lab_virtual_network_id: str :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. + is to be created without a public IP address. Default value: False . :type disallow_public_ip_address: bool :param artifacts: The artifacts to be installed on the virtual machine. :type artifacts: list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties :param gallery_image_reference: The Microsoft Azure Marketplace image reference of the virtual machine. :type gallery_image_reference: @@ -3291,16 +2484,11 @@ class LabVirtualMachineCreationParameter(Model): :param expiration_date: The expiration date for VM. :type expiration_date: datetime :param allow_claim: Indicates whether another user can take ownership of - the virtual machine + the virtual machine. Default value: False . :type allow_claim: bool :param storage_type: Storage type to use for virtual machine (i.e. Standard, Premium). :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource :param environment_id: The resource ID of the environment that contains this virtual machine, if any. :type environment_id: str @@ -3311,9 +2499,6 @@ class LabVirtualMachineCreationParameter(Model): :param schedule_parameters: Virtual Machine schedules to be created :type schedule_parameters: list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameter] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str :param name: The name of the virtual machine or environment :type name: str :param location: The location of the new virtual machine or environment @@ -3327,442 +2512,78 @@ class LabVirtualMachineCreationParameter(Model): 'notes': {'key': 'properties.notes', 'type': 'str'}, 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, - 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'size': {'key': 'properties.size', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, - 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, - 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, - 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallProperties]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, - 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, - 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, - 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskProperties]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameter]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(LabVirtualMachineCreationParameter, self).__init__(**kwargs) - self.bulk_creation_parameters = kwargs.get('bulk_creation_parameters', None) - self.notes = kwargs.get('notes', None) - self.owner_object_id = kwargs.get('owner_object_id', None) - self.owner_user_principal_name = kwargs.get('owner_user_principal_name', None) - self.created_by_user_id = kwargs.get('created_by_user_id', None) - self.created_by_user = kwargs.get('created_by_user', None) - self.created_date = kwargs.get('created_date', None) - self.compute_id = kwargs.get('compute_id', None) - self.custom_image_id = kwargs.get('custom_image_id', None) - self.os_type = kwargs.get('os_type', None) - self.size = kwargs.get('size', None) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) - self.ssh_key = kwargs.get('ssh_key', None) - self.is_authentication_with_ssh_key = kwargs.get('is_authentication_with_ssh_key', None) - self.fqdn = kwargs.get('fqdn', None) - self.lab_subnet_name = kwargs.get('lab_subnet_name', None) - self.lab_virtual_network_id = kwargs.get('lab_virtual_network_id', None) - self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', None) - self.artifacts = kwargs.get('artifacts', None) - self.artifact_deployment_status = kwargs.get('artifact_deployment_status', None) - self.gallery_image_reference = kwargs.get('gallery_image_reference', None) - self.plan_id = kwargs.get('plan_id', None) - self.network_interface = kwargs.get('network_interface', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.allow_claim = kwargs.get('allow_claim', None) - self.storage_type = kwargs.get('storage_type', None) - self.virtual_machine_creation_source = kwargs.get('virtual_machine_creation_source', None) - self.environment_id = kwargs.get('environment_id', None) - self.data_disk_parameters = kwargs.get('data_disk_parameters', None) - self.schedule_parameters = kwargs.get('schedule_parameters', None) - self.last_known_power_state = kwargs.get('last_known_power_state', None) - self.name = kwargs.get('name', None) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - - -class LabVirtualMachineCreationParameterFragment(Model): - """Properties for creating a virtual machine. - - :param bulk_creation_parameters: The number of virtual machine instances - to create. - :type bulk_creation_parameters: - ~azure.mgmt.devtestlabs.models.BulkCreationParametersFragment - :param notes: The notes of the virtual machine. - :type notes: str - :param owner_object_id: The object identifier of the owner of the virtual - machine. - :type owner_object_id: str - :param owner_user_principal_name: The user principal name of the virtual - machine owner. - :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str - :param created_date: The creation date of the virtual machine. - :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str - :param custom_image_id: The custom image identifier of the virtual - machine. - :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str - :param size: The size of the virtual machine. - :type size: str - :param user_name: The user name of the virtual machine. - :type user_name: str - :param password: The password of the virtual machine administrator. - :type password: str - :param ssh_key: The SSH key of the virtual machine administrator. - :type ssh_key: str - :param is_authentication_with_ssh_key: Indicates whether this virtual - machine uses an SSH key for authentication. - :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str - :param lab_subnet_name: The lab subnet name of the virtual machine. - :type lab_subnet_name: str - :param lab_virtual_network_id: The lab virtual network identifier of the - virtual machine. - :type lab_virtual_network_id: str - :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. - :type disallow_public_ip_address: bool - :param artifacts: The artifacts to be installed on the virtual machine. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallPropertiesFragment] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusPropertiesFragment - :param gallery_image_reference: The Microsoft Azure Marketplace image - reference of the virtual machine. - :type gallery_image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReferenceFragment - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfacePropertiesFragment - :param expiration_date: The expiration date for VM. - :type expiration_date: datetime - :param allow_claim: Indicates whether another user can take ownership of - the virtual machine - :type allow_claim: bool - :param storage_type: Storage type to use for virtual machine (i.e. - Standard, Premium). - :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource - :param environment_id: The resource ID of the environment that contains - this virtual machine, if any. - :type environment_id: str - :param data_disk_parameters: New or existing data disks to attach to the - virtual machine after creation - :type data_disk_parameters: - list[~azure.mgmt.devtestlabs.models.DataDiskPropertiesFragment] - :param schedule_parameters: Virtual Machine schedules to be created - :type schedule_parameters: - list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameterFragment] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str - :param name: The name of the virtual machine or environment - :type name: str - :param location: The location of the new virtual machine or environment - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParametersFragment'}, - 'notes': {'key': 'properties.notes', 'type': 'str'}, - 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, - 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'size': {'key': 'properties.size', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, - 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, - 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, - 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallPropertiesFragment]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusPropertiesFragment'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReferenceFragment'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfacePropertiesFragment'}, - 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, - 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, - 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskPropertiesFragment]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameterFragment]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(LabVirtualMachineCreationParameterFragment, self).__init__(**kwargs) - self.bulk_creation_parameters = kwargs.get('bulk_creation_parameters', None) - self.notes = kwargs.get('notes', None) - self.owner_object_id = kwargs.get('owner_object_id', None) - self.owner_user_principal_name = kwargs.get('owner_user_principal_name', None) - self.created_by_user_id = kwargs.get('created_by_user_id', None) - self.created_by_user = kwargs.get('created_by_user', None) - self.created_date = kwargs.get('created_date', None) - self.compute_id = kwargs.get('compute_id', None) - self.custom_image_id = kwargs.get('custom_image_id', None) - self.os_type = kwargs.get('os_type', None) - self.size = kwargs.get('size', None) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) - self.ssh_key = kwargs.get('ssh_key', None) - self.is_authentication_with_ssh_key = kwargs.get('is_authentication_with_ssh_key', None) - self.fqdn = kwargs.get('fqdn', None) - self.lab_subnet_name = kwargs.get('lab_subnet_name', None) - self.lab_virtual_network_id = kwargs.get('lab_virtual_network_id', None) - self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', None) - self.artifacts = kwargs.get('artifacts', None) - self.artifact_deployment_status = kwargs.get('artifact_deployment_status', None) - self.gallery_image_reference = kwargs.get('gallery_image_reference', None) - self.plan_id = kwargs.get('plan_id', None) - self.network_interface = kwargs.get('network_interface', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.allow_claim = kwargs.get('allow_claim', None) - self.storage_type = kwargs.get('storage_type', None) - self.virtual_machine_creation_source = kwargs.get('virtual_machine_creation_source', None) - self.environment_id = kwargs.get('environment_id', None) - self.data_disk_parameters = kwargs.get('data_disk_parameters', None) - self.schedule_parameters = kwargs.get('schedule_parameters', None) - self.last_known_power_state = kwargs.get('last_known_power_state', None) - self.name = kwargs.get('name', None) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - - -class LabVirtualMachineFragment(UpdateResource): - """A virtual machine. - - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param notes: The notes of the virtual machine. - :type notes: str - :param owner_object_id: The object identifier of the owner of the virtual - machine. - :type owner_object_id: str - :param owner_user_principal_name: The user principal name of the virtual - machine owner. - :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str - :param created_date: The creation date of the virtual machine. - :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str - :param custom_image_id: The custom image identifier of the virtual - machine. - :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str - :param size: The size of the virtual machine. - :type size: str - :param user_name: The user name of the virtual machine. - :type user_name: str - :param password: The password of the virtual machine administrator. - :type password: str - :param ssh_key: The SSH key of the virtual machine administrator. - :type ssh_key: str - :param is_authentication_with_ssh_key: Indicates whether this virtual - machine uses an SSH key for authentication. - :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str - :param lab_subnet_name: The lab subnet name of the virtual machine. - :type lab_subnet_name: str - :param lab_virtual_network_id: The lab virtual network identifier of the - virtual machine. - :type lab_virtual_network_id: str - :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. - :type disallow_public_ip_address: bool - :param artifacts: The artifacts to be installed on the virtual machine. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallPropertiesFragment] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusPropertiesFragment - :param gallery_image_reference: The Microsoft Azure Marketplace image - reference of the virtual machine. - :type gallery_image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReferenceFragment - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfacePropertiesFragment - :param expiration_date: The expiration date for VM. - :type expiration_date: datetime - :param allow_claim: Indicates whether another user can take ownership of - the virtual machine - :type allow_claim: bool - :param storage_type: Storage type to use for virtual machine (i.e. - Standard, Premium). - :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource - :param environment_id: The resource ID of the environment that contains - this virtual machine, if any. - :type environment_id: str - :param data_disk_parameters: New or existing data disks to attach to the - virtual machine after creation - :type data_disk_parameters: - list[~azure.mgmt.devtestlabs.models.DataDiskPropertiesFragment] - :param schedule_parameters: Virtual Machine schedules to be created - :type schedule_parameters: - list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameterFragment] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'notes': {'key': 'properties.notes', 'type': 'str'}, - 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, - 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, - 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, 'size': {'key': 'properties.size', 'type': 'str'}, 'user_name': {'key': 'properties.userName', 'type': 'str'}, 'password': {'key': 'properties.password', 'type': 'str'}, 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallPropertiesFragment]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusPropertiesFragment'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReferenceFragment'}, + 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallProperties]'}, + 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfacePropertiesFragment'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskPropertiesFragment]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameterFragment]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, + 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskProperties]'}, + 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameter]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__(self, **kwargs): - super(LabVirtualMachineFragment, self).__init__(**kwargs) + super(LabVirtualMachineCreationParameter, self).__init__(**kwargs) + self.bulk_creation_parameters = kwargs.get('bulk_creation_parameters', None) self.notes = kwargs.get('notes', None) - self.owner_object_id = kwargs.get('owner_object_id', None) + self.owner_object_id = kwargs.get('owner_object_id', "dynamicValue") self.owner_user_principal_name = kwargs.get('owner_user_principal_name', None) - self.created_by_user_id = kwargs.get('created_by_user_id', None) - self.created_by_user = kwargs.get('created_by_user', None) self.created_date = kwargs.get('created_date', None) - self.compute_id = kwargs.get('compute_id', None) self.custom_image_id = kwargs.get('custom_image_id', None) - self.os_type = kwargs.get('os_type', None) self.size = kwargs.get('size', None) self.user_name = kwargs.get('user_name', None) self.password = kwargs.get('password', None) self.ssh_key = kwargs.get('ssh_key', None) self.is_authentication_with_ssh_key = kwargs.get('is_authentication_with_ssh_key', None) - self.fqdn = kwargs.get('fqdn', None) self.lab_subnet_name = kwargs.get('lab_subnet_name', None) self.lab_virtual_network_id = kwargs.get('lab_virtual_network_id', None) - self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', None) + self.disallow_public_ip_address = kwargs.get('disallow_public_ip_address', False) self.artifacts = kwargs.get('artifacts', None) - self.artifact_deployment_status = kwargs.get('artifact_deployment_status', None) self.gallery_image_reference = kwargs.get('gallery_image_reference', None) self.plan_id = kwargs.get('plan_id', None) self.network_interface = kwargs.get('network_interface', None) self.expiration_date = kwargs.get('expiration_date', None) - self.allow_claim = kwargs.get('allow_claim', None) + self.allow_claim = kwargs.get('allow_claim', False) self.storage_type = kwargs.get('storage_type', None) - self.virtual_machine_creation_source = kwargs.get('virtual_machine_creation_source', None) self.environment_id = kwargs.get('environment_id', None) self.data_disk_parameters = kwargs.get('data_disk_parameters', None) self.schedule_parameters = kwargs.get('schedule_parameters', None) - self.last_known_power_state = kwargs.get('last_known_power_state', None) + self.name = kwargs.get('name', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) -class LinuxOsInfo(Model): - """Information about a Linux OS. +class LabVirtualMachineFragment(UpdateResource): + """A virtual machine. - :param linux_os_state: The state of the Linux OS (i.e. NonDeprovisioned, - DeprovisionRequested, DeprovisionApplied). Possible values include: - 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' - :type linux_os_state: str or ~azure.mgmt.devtestlabs.models.LinuxOsState + :param tags: The tags of the resource. + :type tags: dict[str, str] """ _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__(self, **kwargs): - super(LinuxOsInfo, self).__init__(**kwargs) - self.linux_os_state = kwargs.get('linux_os_state', None) + super(LabVirtualMachineFragment, self).__init__(**kwargs) -class LinuxOsInfoFragment(Model): +class LinuxOsInfo(Model): """Information about a Linux OS. :param linux_os_state: The state of the Linux OS (i.e. NonDeprovisioned, @@ -3776,7 +2597,7 @@ class LinuxOsInfoFragment(Model): } def __init__(self, **kwargs): - super(LinuxOsInfoFragment, self).__init__(**kwargs) + super(LinuxOsInfo, self).__init__(**kwargs) self.linux_os_state = kwargs.get('linux_os_state', None) @@ -3833,59 +2654,6 @@ def __init__(self, **kwargs): self.shared_public_ip_address_configuration = kwargs.get('shared_public_ip_address_configuration', None) -class NetworkInterfacePropertiesFragment(Model): - """Properties of a network interface. - - :param virtual_network_id: The resource ID of the virtual network. - :type virtual_network_id: str - :param subnet_id: The resource ID of the sub net. - :type subnet_id: str - :param public_ip_address_id: The resource ID of the public IP address. - :type public_ip_address_id: str - :param public_ip_address: The public IP address. - :type public_ip_address: str - :param private_ip_address: The private IP address. - :type private_ip_address: str - :param dns_name: The DNS name. - :type dns_name: str - :param rdp_authority: The RdpAuthority property is a server DNS host name - or IP address followed by the service port number for RDP (Remote Desktop - Protocol). - :type rdp_authority: str - :param ssh_authority: The SshAuthority property is a server DNS host name - or IP address followed by the service port number for SSH. - :type ssh_authority: str - :param shared_public_ip_address_configuration: The configuration for - sharing a public IP address across multiple virtual machines. - :type shared_public_ip_address_configuration: - ~azure.mgmt.devtestlabs.models.SharedPublicIpAddressConfigurationFragment - """ - - _attribute_map = { - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, - 'public_ip_address': {'key': 'publicIpAddress', 'type': 'str'}, - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'dns_name': {'key': 'dnsName', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'shared_public_ip_address_configuration': {'key': 'sharedPublicIpAddressConfiguration', 'type': 'SharedPublicIpAddressConfigurationFragment'}, - } - - def __init__(self, **kwargs): - super(NetworkInterfacePropertiesFragment, self).__init__(**kwargs) - self.virtual_network_id = kwargs.get('virtual_network_id', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.public_ip_address_id = kwargs.get('public_ip_address_id', None) - self.public_ip_address = kwargs.get('public_ip_address', None) - self.private_ip_address = kwargs.get('private_ip_address', None) - self.dns_name = kwargs.get('dns_name', None) - self.rdp_authority = kwargs.get('rdp_authority', None) - self.ssh_authority = kwargs.get('ssh_authority', None) - self.shared_public_ip_address_configuration = kwargs.get('shared_public_ip_address_configuration', None) - - class NotificationChannel(Resource): """A notification. @@ -3965,36 +2733,14 @@ class NotificationChannelFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param web_hook_url: The webhook URL to send notifications to. - :type web_hook_url: str - :param email_recipient: The email recipient to send notifications to (can - be a list of semi-colon separated email addresses). - :type email_recipient: str - :param notification_locale: The locale to use when sending a notification - (fallback for unsupported languages is EN). - :type notification_locale: str - :param description: Description of notification. - :type description: str - :param events: The list of event for which this notification is enabled. - :type events: list[~azure.mgmt.devtestlabs.models.EventFragment] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'web_hook_url': {'key': 'properties.webHookUrl', 'type': 'str'}, - 'email_recipient': {'key': 'properties.emailRecipient', 'type': 'str'}, - 'notification_locale': {'key': 'properties.notificationLocale', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'events': {'key': 'properties.events', 'type': '[EventFragment]'}, } def __init__(self, **kwargs): super(NotificationChannelFragment, self).__init__(**kwargs) - self.web_hook_url = kwargs.get('web_hook_url', None) - self.email_recipient = kwargs.get('email_recipient', None) - self.notification_locale = kwargs.get('notification_locale', None) - self.description = kwargs.get('description', None) - self.events = kwargs.get('events', None) class NotificationSettings(Model): @@ -4034,43 +2780,6 @@ def __init__(self, **kwargs): self.notification_locale = kwargs.get('notification_locale', None) -class NotificationSettingsFragment(Model): - """Notification settings for a schedule. - - :param status: If notifications are enabled for this schedule (i.e. - Enabled, Disabled). Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param time_in_minutes: Time in minutes before event at which notification - will be sent. - :type time_in_minutes: int - :param webhook_url: The webhook URL to which the notification will be - sent. - :type webhook_url: str - :param email_recipient: The email recipient to send notifications to (can - be a list of semi-colon separated email addresses). - :type email_recipient: str - :param notification_locale: The locale to use when sending a notification - (fallback for unsupported languages is EN). - :type notification_locale: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'time_in_minutes': {'key': 'timeInMinutes', 'type': 'int'}, - 'webhook_url': {'key': 'webhookUrl', 'type': 'str'}, - 'email_recipient': {'key': 'emailRecipient', 'type': 'str'}, - 'notification_locale': {'key': 'notificationLocale', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NotificationSettingsFragment, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.time_in_minutes = kwargs.get('time_in_minutes', None) - self.webhook_url = kwargs.get('webhook_url', None) - self.email_recipient = kwargs.get('email_recipient', None) - self.notification_locale = kwargs.get('notification_locale', None) - - class NotifyParameters(Model): """Properties for generating a Notification. @@ -4170,8 +2879,9 @@ class OperationResult(Model): :param status_code: The status code for the operation. Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', - 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + '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', @@ -4344,47 +3054,14 @@ class PolicyFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param description: The description of the policy. - :type description: str - :param status: The status of the policy. Possible values include: - 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.PolicyStatus - :param fact_name: The fact name of the policy (e.g. LabVmCount, LabVmSize, - MaxVmsAllowedPerLab, etc. Possible values include: 'UserOwnedLabVmCount', - 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', - 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', - 'LabTargetCost', 'EnvironmentTemplate', 'ScheduleEditPermission' - :type fact_name: str or ~azure.mgmt.devtestlabs.models.PolicyFactName - :param fact_data: The fact data of the policy. - :type fact_data: str - :param threshold: The threshold of the policy (i.e. a number for - MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). - :type threshold: str - :param evaluator_type: The evaluator type of the policy (i.e. - AllowedValuesPolicy, MaxValuePolicy). Possible values include: - 'AllowedValuesPolicy', 'MaxValuePolicy' - :type evaluator_type: str or - ~azure.mgmt.devtestlabs.models.PolicyEvaluatorType """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'fact_name': {'key': 'properties.factName', 'type': 'str'}, - 'fact_data': {'key': 'properties.factData', 'type': 'str'}, - 'threshold': {'key': 'properties.threshold', 'type': 'str'}, - 'evaluator_type': {'key': 'properties.evaluatorType', 'type': 'str'}, } def __init__(self, **kwargs): super(PolicyFragment, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.status = kwargs.get('status', None) - self.fact_name = kwargs.get('fact_name', None) - self.fact_data = kwargs.get('fact_data', None) - self.threshold = kwargs.get('threshold', None) - self.evaluator_type = kwargs.get('evaluator_type', None) class PolicySetResult(Model): @@ -4451,28 +3128,6 @@ def __init__(self, **kwargs): self.backend_port = kwargs.get('backend_port', None) -class PortFragment(Model): - """Properties of a network port. - - :param transport_protocol: Protocol type of the port. Possible values - include: 'Tcp', 'Udp' - :type transport_protocol: str or - ~azure.mgmt.devtestlabs.models.TransportProtocol - :param backend_port: Backend port of the target virtual machine. - :type backend_port: int - """ - - _attribute_map = { - 'transport_protocol': {'key': 'transportProtocol', 'type': 'str'}, - 'backend_port': {'key': 'backendPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(PortFragment, self).__init__(**kwargs) - self.transport_protocol = kwargs.get('transport_protocol', None) - self.backend_port = kwargs.get('backend_port', None) - - class RdpConnection(Model): """Represents a .rdp file. @@ -4613,73 +3268,11 @@ def __init__(self, **kwargs): self.notification_settings = kwargs.get('notification_settings', None) self.created_date = None self.target_resource_id = kwargs.get('target_resource_id', None) - self.provisioning_state = None - self.unique_identifier = None - - -class ScheduleCreationParameter(Model): - """Properties for creating a schedule. - - :param status: The status of the schedule (i.e. Enabled, Disabled). - Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param task_type: The task type of the schedule (e.g. LabVmsShutdownTask, - LabVmAutoStart). - :type task_type: str - :param weekly_recurrence: If the schedule will occur only some days of the - week, specify the weekly recurrence. - :type weekly_recurrence: ~azure.mgmt.devtestlabs.models.WeekDetails - :param daily_recurrence: If the schedule will occur once each day of the - week, specify the daily recurrence. - :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetails - :param hourly_recurrence: If the schedule will occur multiple times a day, - specify the hourly recurrence. - :type hourly_recurrence: ~azure.mgmt.devtestlabs.models.HourDetails - :param time_zone_id: The time zone ID (e.g. Pacific Standard time). - :type time_zone_id: str - :param notification_settings: Notification settings. - :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettings - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str - :param name: The name of the virtual machine or environment - :type name: str - :param location: The location of the new virtual machine or environment - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'status': {'key': 'properties.status', 'type': 'str'}, - 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetails'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetails'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetails'}, - 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettings'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ScheduleCreationParameter, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.task_type = kwargs.get('task_type', None) - self.weekly_recurrence = kwargs.get('weekly_recurrence', None) - self.daily_recurrence = kwargs.get('daily_recurrence', None) - self.hourly_recurrence = kwargs.get('hourly_recurrence', None) - self.time_zone_id = kwargs.get('time_zone_id', None) - self.notification_settings = kwargs.get('notification_settings', None) - self.target_resource_id = kwargs.get('target_resource_id', None) - self.name = kwargs.get('name', None) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) + self.provisioning_state = None + self.unique_identifier = None -class ScheduleCreationParameterFragment(Model): +class ScheduleCreationParameter(Model): """Properties for creating a schedule. :param status: The status of the schedule (i.e. Enabled, Disabled). @@ -4690,20 +3283,18 @@ class ScheduleCreationParameterFragment(Model): :type task_type: str :param weekly_recurrence: If the schedule will occur only some days of the week, specify the weekly recurrence. - :type weekly_recurrence: - ~azure.mgmt.devtestlabs.models.WeekDetailsFragment + :type weekly_recurrence: ~azure.mgmt.devtestlabs.models.WeekDetails :param daily_recurrence: If the schedule will occur once each day of the week, specify the daily recurrence. - :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetailsFragment + :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetails :param hourly_recurrence: If the schedule will occur multiple times a day, specify the hourly recurrence. - :type hourly_recurrence: - ~azure.mgmt.devtestlabs.models.HourDetailsFragment + :type hourly_recurrence: ~azure.mgmt.devtestlabs.models.HourDetails :param time_zone_id: The time zone ID (e.g. Pacific Standard time). :type time_zone_id: str :param notification_settings: Notification settings. :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettingsFragment + ~azure.mgmt.devtestlabs.models.NotificationSettings :param target_resource_id: The resource ID to which the schedule belongs :type target_resource_id: str :param name: The name of the virtual machine or environment @@ -4717,11 +3308,11 @@ class ScheduleCreationParameterFragment(Model): _attribute_map = { 'status': {'key': 'properties.status', 'type': 'str'}, 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetailsFragment'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetailsFragment'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetailsFragment'}, + 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetails'}, + 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetails'}, + 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetails'}, 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettingsFragment'}, + 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettings'}, 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, @@ -4729,7 +3320,7 @@ class ScheduleCreationParameterFragment(Model): } def __init__(self, **kwargs): - super(ScheduleCreationParameterFragment, self).__init__(**kwargs) + super(ScheduleCreationParameter, self).__init__(**kwargs) self.status = kwargs.get('status', None) self.task_type = kwargs.get('task_type', None) self.weekly_recurrence = kwargs.get('weekly_recurrence', None) @@ -4748,54 +3339,14 @@ class ScheduleFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param status: The status of the schedule (i.e. Enabled, Disabled). - Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param task_type: The task type of the schedule (e.g. LabVmsShutdownTask, - LabVmAutoStart). - :type task_type: str - :param weekly_recurrence: If the schedule will occur only some days of the - week, specify the weekly recurrence. - :type weekly_recurrence: - ~azure.mgmt.devtestlabs.models.WeekDetailsFragment - :param daily_recurrence: If the schedule will occur once each day of the - week, specify the daily recurrence. - :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetailsFragment - :param hourly_recurrence: If the schedule will occur multiple times a day, - specify the hourly recurrence. - :type hourly_recurrence: - ~azure.mgmt.devtestlabs.models.HourDetailsFragment - :param time_zone_id: The time zone ID (e.g. Pacific Standard time). - :type time_zone_id: str - :param notification_settings: Notification settings. - :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettingsFragment - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetailsFragment'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetailsFragment'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetailsFragment'}, - 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettingsFragment'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, } def __init__(self, **kwargs): super(ScheduleFragment, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.task_type = kwargs.get('task_type', None) - self.weekly_recurrence = kwargs.get('weekly_recurrence', None) - self.daily_recurrence = kwargs.get('daily_recurrence', None) - self.hourly_recurrence = kwargs.get('hourly_recurrence', None) - self.time_zone_id = kwargs.get('time_zone_id', None) - self.notification_settings = kwargs.get('notification_settings', None) - self.target_resource_id = kwargs.get('target_resource_id', None) class Secret(Resource): @@ -4854,18 +3405,14 @@ class SecretFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param value: The value of the secret for secret creation. - :type value: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'value': {'key': 'properties.value', 'type': 'str'}, } def __init__(self, **kwargs): super(SecretFragment, self).__init__(**kwargs) - self.value = kwargs.get('value', None) class ServiceFabric(Resource): @@ -4937,24 +3484,14 @@ class ServiceFabricFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param external_service_fabric_id: The backing service fabric resource's - id - :type external_service_fabric_id: str - :param environment_id: The resource id of the environment under which the - service fabric resource is present - :type environment_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, } def __init__(self, **kwargs): super(ServiceFabricFragment, self).__init__(**kwargs) - self.external_service_fabric_id = kwargs.get('external_service_fabric_id', None) - self.environment_id = kwargs.get('environment_id', None) class ServiceRunner(Resource): @@ -4997,39 +3534,41 @@ def __init__(self, **kwargs): self.identity = kwargs.get('identity', None) -class SharedPublicIpAddressConfiguration(Model): - """Properties of a virtual machine that determine how it is connected to a - load balancer. +class ServiceRunnerList(Model): + """The response of a list operation. - :param inbound_nat_rules: The incoming NAT rules - :type inbound_nat_rules: - list[~azure.mgmt.devtestlabs.models.InboundNatRule] + :param value: Results of the list operation. + :type value: list[~azure.mgmt.devtestlabs.models.ServiceRunner] + :param next_link: Link for next set of results. + :type next_link: str """ _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, + 'value': {'key': 'value', 'type': '[ServiceRunner]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__(self, **kwargs): - super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) + super(ServiceRunnerList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) -class SharedPublicIpAddressConfigurationFragment(Model): +class SharedPublicIpAddressConfiguration(Model): """Properties of a virtual machine that determine how it is connected to a load balancer. :param inbound_nat_rules: The incoming NAT rules :type inbound_nat_rules: - list[~azure.mgmt.devtestlabs.models.InboundNatRuleFragment] + list[~azure.mgmt.devtestlabs.models.InboundNatRule] """ _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, } def __init__(self, **kwargs): - super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) + super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) @@ -5126,33 +3665,6 @@ def __init__(self, **kwargs): self.allow_public_ip = kwargs.get('allow_public_ip', None) -class SubnetFragment(Model): - """Subnet information. - - :param resource_id: The resource ID of the subnet. - :type resource_id: str - :param lab_subnet_name: The name of the subnet as seen in the lab. - :type lab_subnet_name: str - :param allow_public_ip: The permission policy of the subnet for allowing - public IP addresses (i.e. Allow, Deny)). Possible values include: - 'Default', 'Deny', 'Allow' - :type allow_public_ip: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'lab_subnet_name': {'key': 'labSubnetName', 'type': 'str'}, - 'allow_public_ip': {'key': 'allowPublicIp', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubnetFragment, self).__init__(**kwargs) - self.resource_id = kwargs.get('resource_id', None) - self.lab_subnet_name = kwargs.get('lab_subnet_name', None) - self.allow_public_ip = kwargs.get('allow_public_ip', None) - - class SubnetOverride(Model): """Property overrides on a subnet of a virtual network. @@ -5198,51 +3710,6 @@ def __init__(self, **kwargs): self.virtual_network_pool_name = kwargs.get('virtual_network_pool_name', None) -class SubnetOverrideFragment(Model): - """Property overrides on a subnet of a virtual network. - - :param resource_id: The resource ID of the subnet. - :type resource_id: str - :param lab_subnet_name: The name given to the subnet within the lab. - :type lab_subnet_name: str - :param use_in_vm_creation_permission: Indicates whether this subnet can be - used during virtual machine creation (i.e. Allow, Deny). Possible values - include: 'Default', 'Deny', 'Allow' - :type use_in_vm_creation_permission: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - :param use_public_ip_address_permission: Indicates whether public IP - addresses can be assigned to virtual machines on this subnet (i.e. Allow, - Deny). Possible values include: 'Default', 'Deny', 'Allow' - :type use_public_ip_address_permission: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - :param shared_public_ip_address_configuration: Properties that virtual - machines on this subnet will share. - :type shared_public_ip_address_configuration: - ~azure.mgmt.devtestlabs.models.SubnetSharedPublicIpAddressConfigurationFragment - :param virtual_network_pool_name: The virtual network pool associated with - this subnet. - :type virtual_network_pool_name: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'lab_subnet_name': {'key': 'labSubnetName', 'type': 'str'}, - 'use_in_vm_creation_permission': {'key': 'useInVmCreationPermission', 'type': 'str'}, - 'use_public_ip_address_permission': {'key': 'usePublicIpAddressPermission', 'type': 'str'}, - 'shared_public_ip_address_configuration': {'key': 'sharedPublicIpAddressConfiguration', 'type': 'SubnetSharedPublicIpAddressConfigurationFragment'}, - 'virtual_network_pool_name': {'key': 'virtualNetworkPoolName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubnetOverrideFragment, self).__init__(**kwargs) - self.resource_id = kwargs.get('resource_id', None) - self.lab_subnet_name = kwargs.get('lab_subnet_name', None) - self.use_in_vm_creation_permission = kwargs.get('use_in_vm_creation_permission', None) - self.use_public_ip_address_permission = kwargs.get('use_public_ip_address_permission', None) - self.shared_public_ip_address_configuration = kwargs.get('shared_public_ip_address_configuration', None) - self.virtual_network_pool_name = kwargs.get('virtual_network_pool_name', None) - - class SubnetSharedPublicIpAddressConfiguration(Model): """Configuration for public IP address sharing. @@ -5260,23 +3727,6 @@ def __init__(self, **kwargs): self.allowed_ports = kwargs.get('allowed_ports', None) -class SubnetSharedPublicIpAddressConfigurationFragment(Model): - """Configuration for public IP address sharing. - - :param allowed_ports: Backend ports that virtual machines on this subnet - are allowed to expose - :type allowed_ports: list[~azure.mgmt.devtestlabs.models.PortFragment] - """ - - _attribute_map = { - 'allowed_ports': {'key': 'allowedPorts', 'type': '[PortFragment]'}, - } - - def __init__(self, **kwargs): - super(SubnetSharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) - self.allowed_ports = kwargs.get('allowed_ports', None) - - class TargetCostProperties(Model): """Properties of a cost target. @@ -5381,22 +3831,14 @@ class UserFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param identity: The identity of the user. - :type identity: ~azure.mgmt.devtestlabs.models.UserIdentityFragment - :param secret_store: The secret store of the user. - :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStoreFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'properties.identity', 'type': 'UserIdentityFragment'}, - 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStoreFragment'}, } def __init__(self, **kwargs): super(UserFragment, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.secret_store = kwargs.get('secret_store', None) class UserIdentity(Model): @@ -5436,43 +3878,6 @@ def __init__(self, **kwargs): self.app_id = kwargs.get('app_id', None) -class UserIdentityFragment(Model): - """Identity attributes of a lab user. - - :param principal_name: Set to the principal name / UPN of the client JWT - making the request. - :type principal_name: str - :param principal_id: Set to the principal Id of the client JWT making the - request. Service principal will not have the principal Id. - :type principal_id: str - :param tenant_id: Set to the tenant ID of the client JWT making the - request. - :type tenant_id: str - :param object_id: 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. - :type object_id: str - :param app_id: Set to the app Id of the client JWT making the request. - :type app_id: str - """ - - _attribute_map = { - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'app_id': {'key': 'appId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UserIdentityFragment, self).__init__(**kwargs) - self.principal_name = kwargs.get('principal_name', None) - self.principal_id = kwargs.get('principal_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.object_id = kwargs.get('object_id', None) - self.app_id = kwargs.get('app_id', None) - - class UserSecretStore(Model): """Properties of a user's secret store. @@ -5493,26 +3898,6 @@ def __init__(self, **kwargs): self.key_vault_id = kwargs.get('key_vault_id', None) -class UserSecretStoreFragment(Model): - """Properties of a user's secret store. - - :param key_vault_uri: The URI of the user's Key vault. - :type key_vault_uri: str - :param key_vault_id: The ID of the user's Key vault. - :type key_vault_id: str - """ - - _attribute_map = { - 'key_vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UserSecretStoreFragment, self).__init__(**kwargs) - self.key_vault_uri = kwargs.get('key_vault_uri', None) - self.key_vault_id = kwargs.get('key_vault_id', None) - - class VirtualNetwork(Resource): """A virtual network. @@ -5594,32 +3979,14 @@ class VirtualNetworkFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param allowed_subnets: The allowed subnets of the virtual network. - :type allowed_subnets: list[~azure.mgmt.devtestlabs.models.SubnetFragment] - :param description: The description of the virtual network. - :type description: str - :param external_provider_resource_id: The Microsoft.Network resource - identifier of the virtual network. - :type external_provider_resource_id: str - :param subnet_overrides: The subnet overrides of the virtual network. - :type subnet_overrides: - list[~azure.mgmt.devtestlabs.models.SubnetOverrideFragment] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[SubnetFragment]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, - 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverrideFragment]'}, } def __init__(self, **kwargs): super(VirtualNetworkFragment, self).__init__(**kwargs) - self.allowed_subnets = kwargs.get('allowed_subnets', None) - self.description = kwargs.get('description', None) - self.external_provider_resource_id = kwargs.get('external_provider_resource_id', None) - self.subnet_overrides = kwargs.get('subnet_overrides', None) class WeekDetails(Model): @@ -5643,27 +4010,6 @@ def __init__(self, **kwargs): self.time = kwargs.get('time', None) -class WeekDetailsFragment(Model): - """Properties of a weekly schedule. - - :param weekdays: The days of the week for which the schedule is set (e.g. - Sunday, Monday, Tuesday, etc.). - :type weekdays: list[str] - :param time: The time of the day the schedule will occur. - :type time: str - """ - - _attribute_map = { - 'weekdays': {'key': 'weekdays', 'type': '[str]'}, - 'time': {'key': 'time', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(WeekDetailsFragment, self).__init__(**kwargs) - self.weekdays = kwargs.get('weekdays', None) - self.time = kwargs.get('time', None) - - class WindowsOsInfo(Model): """Information about a Windows OS. @@ -5681,22 +4027,3 @@ class WindowsOsInfo(Model): def __init__(self, **kwargs): super(WindowsOsInfo, self).__init__(**kwargs) self.windows_os_state = kwargs.get('windows_os_state', None) - - -class WindowsOsInfoFragment(Model): - """Information about a Windows OS. - - :param windows_os_state: The state of the Windows OS (i.e. NonSysprepped, - SysprepRequested, SysprepApplied). Possible values include: - 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' - :type windows_os_state: str or - ~azure.mgmt.devtestlabs.models.WindowsOsState - """ - - _attribute_map = { - 'windows_os_state': {'key': 'windowsOsState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(WindowsOsInfoFragment, self).__init__(**kwargs) - self.windows_os_state = kwargs.get('windows_os_state', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py index 17a0bd5726ce..b4ba0e2f58c7 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py @@ -123,24 +123,14 @@ class ApplicableScheduleFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param lab_vms_shutdown: The auto-shutdown schedule, if one has been set - at the lab or lab resource level. - :type lab_vms_shutdown: ~azure.mgmt.devtestlabs.models.ScheduleFragment - :param lab_vms_startup: The auto-startup schedule, if one has been set at - the lab or lab resource level. - :type lab_vms_startup: ~azure.mgmt.devtestlabs.models.ScheduleFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'ScheduleFragment'}, - 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'ScheduleFragment'}, } - def __init__(self, *, tags=None, lab_vms_shutdown=None, lab_vms_startup=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(ApplicableScheduleFragment, self).__init__(tags=tags, **kwargs) - self.lab_vms_shutdown = lab_vms_shutdown - self.lab_vms_startup = lab_vms_startup class ApplyArtifactsRequest(Model): @@ -278,26 +268,6 @@ def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: self.value = value -class ArmTemplateParameterPropertiesFragment(Model): - """Properties of an Azure Resource Manager template parameter. - - :param name: The name of the template parameter. - :type name: str - :param value: The value of the template parameter. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: - super(ArmTemplateParameterPropertiesFragment, self).__init__(**kwargs) - self.name = name - self.value = value - - class Artifact(Resource): """An artifact. @@ -400,32 +370,6 @@ def __init__(self, *, deployment_status: str=None, artifacts_applied: int=None, self.total_artifacts = total_artifacts -class ArtifactDeploymentStatusPropertiesFragment(Model): - """Properties of an artifact deployment. - - :param deployment_status: The deployment status of the artifact. - :type deployment_status: str - :param artifacts_applied: The total count of the artifacts that were - successfully applied. - :type artifacts_applied: int - :param total_artifacts: The total count of the artifacts that were - tentatively applied. - :type total_artifacts: int - """ - - _attribute_map = { - 'deployment_status': {'key': 'deploymentStatus', 'type': 'str'}, - 'artifacts_applied': {'key': 'artifactsApplied', 'type': 'int'}, - 'total_artifacts': {'key': 'totalArtifacts', 'type': 'int'}, - } - - def __init__(self, *, deployment_status: str=None, artifacts_applied: int=None, total_artifacts: int=None, **kwargs) -> None: - super(ArtifactDeploymentStatusPropertiesFragment, self).__init__(**kwargs) - self.deployment_status = deployment_status - self.artifacts_applied = artifacts_applied - self.total_artifacts = total_artifacts - - class ArtifactInstallProperties(Model): """Properties of an artifact. @@ -469,49 +413,6 @@ def __init__(self, *, artifact_id: str=None, artifact_title: str=None, parameter self.install_time = install_time -class ArtifactInstallPropertiesFragment(Model): - """Properties of an artifact. - - :param artifact_id: The artifact's identifier. - :type artifact_id: str - :param artifact_title: The artifact's title. - :type artifact_title: str - :param parameters: The parameters of the artifact. - :type parameters: - list[~azure.mgmt.devtestlabs.models.ArtifactParameterPropertiesFragment] - :param status: The status of the artifact. - :type status: str - :param deployment_status_message: The status message from the deployment. - :type deployment_status_message: str - :param vm_extension_status_message: The status message from the virtual - machine extension. - :type vm_extension_status_message: str - :param install_time: The time that the artifact starts to install on the - virtual machine. - :type install_time: datetime - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'artifact_title': {'key': 'artifactTitle', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArtifactParameterPropertiesFragment]'}, - 'status': {'key': 'status', 'type': 'str'}, - 'deployment_status_message': {'key': 'deploymentStatusMessage', 'type': 'str'}, - 'vm_extension_status_message': {'key': 'vmExtensionStatusMessage', 'type': 'str'}, - 'install_time': {'key': 'installTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, artifact_id: str=None, artifact_title: str=None, parameters=None, status: str=None, deployment_status_message: str=None, vm_extension_status_message: str=None, install_time=None, **kwargs) -> None: - super(ArtifactInstallPropertiesFragment, self).__init__(**kwargs) - self.artifact_id = artifact_id - self.artifact_title = artifact_title - self.parameters = parameters - self.status = status - self.deployment_status_message = deployment_status_message - self.vm_extension_status_message = vm_extension_status_message - self.install_time = install_time - - class ArtifactParameterProperties(Model): """Properties of an artifact parameter. @@ -532,26 +433,6 @@ def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: self.value = value -class ArtifactParameterPropertiesFragment(Model): - """Properties of an artifact parameter. - - :param name: The name of the artifact parameter. - :type name: str - :param value: The value of the artifact parameter. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: - super(ArtifactParameterPropertiesFragment, self).__init__(**kwargs) - self.name = name - self.value = value - - class ArtifactSource(Resource): """Properties of an artifact source. @@ -573,7 +454,7 @@ class ArtifactSource(Resource): :param uri: The artifact source's URI. :type uri: str :param source_type: The artifact source's type. Possible values include: - 'VsoGit', 'GitHub' + 'VsoGit', 'GitHub', 'StorageAccount' :type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType :param folder_path: The folder containing artifacts. :type folder_path: str @@ -645,50 +526,14 @@ class ArtifactSourceFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param display_name: The artifact source's display name. - :type display_name: str - :param uri: The artifact source's URI. - :type uri: str - :param source_type: The artifact source's type. Possible values include: - 'VsoGit', 'GitHub' - :type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType - :param folder_path: The folder containing artifacts. - :type folder_path: str - :param arm_template_folder_path: The folder containing Azure Resource - Manager templates. - :type arm_template_folder_path: str - :param branch_ref: The artifact source's branch reference. - :type branch_ref: str - :param security_token: The security token to authenticate to the artifact - source. - :type security_token: str - :param status: Indicates if the artifact source is enabled (values: - Enabled, Disabled). Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'uri': {'key': 'properties.uri', 'type': 'str'}, - 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, - 'arm_template_folder_path': {'key': 'properties.armTemplateFolderPath', 'type': 'str'}, - 'branch_ref': {'key': 'properties.branchRef', 'type': 'str'}, - 'security_token': {'key': 'properties.securityToken', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, } - def __init__(self, *, tags=None, display_name: str=None, uri: str=None, source_type=None, folder_path: str=None, arm_template_folder_path: str=None, branch_ref: str=None, security_token: str=None, status=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(ArtifactSourceFragment, self).__init__(tags=tags, **kwargs) - self.display_name = display_name - self.uri = uri - self.source_type = source_type - self.folder_path = folder_path - self.arm_template_folder_path = arm_template_folder_path - self.branch_ref = branch_ref - self.security_token = security_token - self.status = status class AttachDiskProperties(Model): @@ -711,7 +556,7 @@ def __init__(self, *, leased_by_lab_vm_id: str=None, **kwargs) -> None: class AttachNewDataDiskOptions(Model): """Properties to attach new disk to the Virtual Machine. - :param disk_size_gi_b: Size of the disk to be attached in GibiBytes. + :param disk_size_gi_b: Size of the disk to be attached in Gibibytes. :type disk_size_gi_b: int :param disk_name: The name of the disk to be attached. :type disk_name: str @@ -733,31 +578,6 @@ def __init__(self, *, disk_size_gi_b: int=None, disk_name: str=None, disk_type=N self.disk_type = disk_type -class AttachNewDataDiskOptionsFragment(Model): - """Properties to attach new disk to the Virtual Machine. - - :param disk_size_gi_b: Size of the disk to be attached in GibiBytes. - :type disk_size_gi_b: int - :param disk_name: The name of the disk to be attached. - :type disk_name: str - :param disk_type: The storage type for the disk (i.e. Standard, Premium). - Possible values include: 'Standard', 'Premium', 'StandardSSD' - :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - """ - - _attribute_map = { - 'disk_size_gi_b': {'key': 'diskSizeGiB', 'type': 'int'}, - 'disk_name': {'key': 'diskName', 'type': 'str'}, - 'disk_type': {'key': 'diskType', 'type': 'str'}, - } - - def __init__(self, *, disk_size_gi_b: int=None, disk_name: str=None, disk_type=None, **kwargs) -> None: - super(AttachNewDataDiskOptionsFragment, self).__init__(**kwargs) - self.disk_size_gi_b = disk_size_gi_b - self.disk_name = disk_name - self.disk_type = disk_type - - class BulkCreationParameters(Model): """Parameters for creating multiple virtual machines as a single action. @@ -774,22 +594,6 @@ def __init__(self, *, instance_count: int=None, **kwargs) -> None: self.instance_count = instance_count -class BulkCreationParametersFragment(Model): - """Parameters for creating multiple virtual machines as a single action. - - :param instance_count: The number of virtual machine instances to create. - :type instance_count: int - """ - - _attribute_map = { - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, *, instance_count: int=None, **kwargs) -> None: - super(BulkCreationParametersFragment, self).__init__(**kwargs) - self.instance_count = instance_count - - class CloudError(Model): """Error from a REST request. @@ -875,35 +679,6 @@ def __init__(self, *, name: str=None, disk_uri: str=None, managed_disk_id: str=N self.disk_size_gi_b = disk_size_gi_b -class ComputeDataDiskFragment(Model): - """A data disks attached to a virtual machine. - - :param name: Gets data disk name. - :type name: str - :param disk_uri: When backed by a blob, the URI of underlying blob. - :type disk_uri: str - :param managed_disk_id: When backed by managed disk, this is the ID of the - compute disk resource. - :type managed_disk_id: str - :param disk_size_gi_b: Gets data disk size in GiB. - :type disk_size_gi_b: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'disk_uri': {'key': 'diskUri', 'type': 'str'}, - 'managed_disk_id': {'key': 'managedDiskId', 'type': 'str'}, - 'disk_size_gi_b': {'key': 'diskSizeGiB', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, disk_uri: str=None, managed_disk_id: str=None, disk_size_gi_b: int=None, **kwargs) -> None: - super(ComputeDataDiskFragment, self).__init__(**kwargs) - self.name = name - self.disk_uri = disk_uri - self.managed_disk_id = managed_disk_id - self.disk_size_gi_b = disk_size_gi_b - - class ComputeVmInstanceViewStatus(Model): """Status information about a virtual machine. @@ -928,30 +703,6 @@ def __init__(self, *, code: str=None, display_status: str=None, message: str=Non self.message = message -class ComputeVmInstanceViewStatusFragment(Model): - """Status information about a virtual machine. - - :param code: Gets the status Code. - :type code: str - :param display_status: Gets the short localizable label for the status. - :type display_status: str - :param message: Gets the message associated with the status. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'display_status': {'key': 'displayStatus', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, display_status: str=None, message: str=None, **kwargs) -> None: - super(ComputeVmInstanceViewStatusFragment, self).__init__(**kwargs) - self.code = code - self.display_status = display_status - self.message = message - - class ComputeVmProperties(Model): """Properties of a virtual machine returned by the Microsoft.Compute API. @@ -994,51 +745,8 @@ def __init__(self, *, statuses=None, os_type: str=None, vm_size: str=None, netwo self.data_disks = data_disks -class ComputeVmPropertiesFragment(Model): - """Properties of a virtual machine returned by the Microsoft.Compute API. - - :param statuses: Gets the statuses of the virtual machine. - :type statuses: - list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment] - :param os_type: Gets the OS type of the virtual machine. - :type os_type: str - :param vm_size: Gets the size of the virtual machine. - :type vm_size: str - :param network_interface_id: Gets the network interface ID of the virtual - machine. - :type network_interface_id: str - :param os_disk_id: Gets OS disk blob uri for the virtual machine. - :type os_disk_id: str - :param data_disk_ids: Gets data disks blob uri for the virtual machine. - :type data_disk_ids: list[str] - :param data_disks: Gets all data disks attached to the virtual machine. - :type data_disks: - list[~azure.mgmt.devtestlabs.models.ComputeDataDiskFragment] - """ - - _attribute_map = { - 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatusFragment]'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'network_interface_id': {'key': 'networkInterfaceId', 'type': 'str'}, - 'os_disk_id': {'key': 'osDiskId', 'type': 'str'}, - 'data_disk_ids': {'key': 'dataDiskIds', 'type': '[str]'}, - 'data_disks': {'key': 'dataDisks', 'type': '[ComputeDataDiskFragment]'}, - } - - def __init__(self, *, statuses=None, os_type: str=None, vm_size: str=None, network_interface_id: str=None, os_disk_id: str=None, data_disk_ids=None, data_disks=None, **kwargs) -> None: - super(ComputeVmPropertiesFragment, self).__init__(**kwargs) - self.statuses = statuses - self.os_type = os_type - self.vm_size = vm_size - self.network_interface_id = network_interface_id - self.os_disk_id = os_disk_id - self.data_disk_ids = data_disk_ids - self.data_disks = data_disks - - -class CostThresholdProperties(Model): - """Properties of a cost threshold item. +class CostThresholdProperties(Model): + """Properties of a cost threshold item. :param threshold_id: The ID of the cost threshold item. :type threshold_id: str @@ -1175,58 +883,14 @@ class CustomImageFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param vm: The virtual machine from which the image is to be created. - :type vm: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromVmFragment - :param vhd: The VHD from which the image is to be created. - :type vhd: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustomFragment - :param description: The description of the custom image. - :type description: str - :param author: The author of the custom image. - :type author: str - :param managed_image_id: The Managed Image Id backing the custom image. - :type managed_image_id: str - :param managed_snapshot_id: The Managed Snapshot Id backing the custom - image. - :type managed_snapshot_id: str - :param data_disk_storage_info: Storage information about the data disks - present in the custom image - :type data_disk_storage_info: - list[~azure.mgmt.devtestlabs.models.DataDiskStorageTypeInfoFragment] - :param custom_image_plan: Storage information about the plan related to - this custom image - :type custom_image_plan: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlanFragment - :param is_plan_authorized: Whether or not the custom images underlying - offer/plan has been enabled for programmatic deployment - :type is_plan_authorized: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVmFragment'}, - 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustomFragment'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, - 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, - 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfoFragment]'}, - 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlanFragment'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, } - def __init__(self, *, tags=None, vm=None, vhd=None, description: str=None, author: str=None, managed_image_id: str=None, managed_snapshot_id: str=None, data_disk_storage_info=None, custom_image_plan=None, is_plan_authorized: bool=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(CustomImageFragment, self).__init__(tags=tags, **kwargs) - self.vm = vm - self.vhd = vhd - self.description = description - self.author = author - self.managed_image_id = managed_image_id - self.managed_snapshot_id = managed_snapshot_id - self.data_disk_storage_info = data_disk_storage_info - self.custom_image_plan = custom_image_plan - self.is_plan_authorized = is_plan_authorized class CustomImagePropertiesCustom(Model): @@ -1260,31 +924,6 @@ def __init__(self, *, os_type, image_name: str=None, sys_prep: bool=None, **kwar self.os_type = os_type -class CustomImagePropertiesCustomFragment(Model): - """Properties for creating a custom image from a VHD. - - :param image_name: The image name. - :type image_name: str - :param sys_prep: Indicates whether sysprep has been run on the VHD. - :type sys_prep: bool - :param os_type: The OS type of the custom image (i.e. Windows, Linux). - Possible values include: 'Windows', 'Linux', 'None' - :type os_type: str or ~azure.mgmt.devtestlabs.models.CustomImageOsType - """ - - _attribute_map = { - 'image_name': {'key': 'imageName', 'type': 'str'}, - 'sys_prep': {'key': 'sysPrep', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - } - - def __init__(self, *, image_name: str=None, sys_prep: bool=None, os_type=None, **kwargs) -> None: - super(CustomImagePropertiesCustomFragment, self).__init__(**kwargs) - self.image_name = image_name - self.sys_prep = sys_prep - self.os_type = os_type - - class CustomImagePropertiesFromPlan(Model): """Properties for plan on a custom image. @@ -1311,32 +950,6 @@ def __init__(self, *, id: str=None, publisher: str=None, offer: str=None, **kwar self.offer = offer -class CustomImagePropertiesFromPlanFragment(Model): - """Properties for plan on a custom image. - - :param id: The id of the plan, equivalent to name of the plan - :type id: str - :param publisher: The publisher for the plan from the marketplace image - the custom image is derived from - :type publisher: str - :param offer: The offer for the plan from the marketplace image the custom - image is derived from - :type offer: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'offer': {'key': 'offer', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, publisher: str=None, offer: str=None, **kwargs) -> None: - super(CustomImagePropertiesFromPlanFragment, self).__init__(**kwargs) - self.id = id - self.publisher = publisher - self.offer = offer - - class CustomImagePropertiesFromVm(Model): """Properties for creating a custom image from a virtual machine. @@ -1361,31 +974,6 @@ def __init__(self, *, source_vm_id: str=None, windows_os_info=None, linux_os_inf self.linux_os_info = linux_os_info -class CustomImagePropertiesFromVmFragment(Model): - """Properties for creating a custom image from a virtual machine. - - :param source_vm_id: The source vm identifier. - :type source_vm_id: str - :param windows_os_info: The Windows OS information of the VM. - :type windows_os_info: - ~azure.mgmt.devtestlabs.models.WindowsOsInfoFragment - :param linux_os_info: The Linux OS information of the VM. - :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfoFragment - """ - - _attribute_map = { - 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, - 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfoFragment'}, - 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfoFragment'}, - } - - def __init__(self, *, source_vm_id: str=None, windows_os_info=None, linux_os_info=None, **kwargs) -> None: - super(CustomImagePropertiesFromVmFragment, self).__init__(**kwargs) - self.source_vm_id = source_vm_id - self.windows_os_info = windows_os_info - self.linux_os_info = linux_os_info - - class DataDiskProperties(Model): """Request body for adding a new or existing data disk to a virtual machine. @@ -1415,35 +1003,6 @@ def __init__(self, *, attach_new_data_disk_options=None, existing_lab_disk_id: s self.host_caching = host_caching -class DataDiskPropertiesFragment(Model): - """Request body for adding a new or existing data disk to a virtual machine. - - :param attach_new_data_disk_options: Specifies options to attach a new - disk to the virtual machine. - :type attach_new_data_disk_options: - ~azure.mgmt.devtestlabs.models.AttachNewDataDiskOptionsFragment - :param existing_lab_disk_id: Specifies the existing lab disk id to attach - to virtual machine. - :type existing_lab_disk_id: str - :param host_caching: Caching option for a data disk (i.e. None, ReadOnly, - ReadWrite). Possible values include: 'None', 'ReadOnly', 'ReadWrite' - :type host_caching: str or - ~azure.mgmt.devtestlabs.models.HostCachingOptions - """ - - _attribute_map = { - 'attach_new_data_disk_options': {'key': 'attachNewDataDiskOptions', 'type': 'AttachNewDataDiskOptionsFragment'}, - 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, - 'host_caching': {'key': 'hostCaching', 'type': 'str'}, - } - - def __init__(self, *, attach_new_data_disk_options=None, existing_lab_disk_id: str=None, host_caching=None, **kwargs) -> None: - super(DataDiskPropertiesFragment, self).__init__(**kwargs) - self.attach_new_data_disk_options = attach_new_data_disk_options - self.existing_lab_disk_id = existing_lab_disk_id - self.host_caching = host_caching - - class DataDiskStorageTypeInfo(Model): """Storage information about the data disks present in the custom image. @@ -1465,27 +1024,6 @@ def __init__(self, *, lun: str=None, storage_type=None, **kwargs) -> None: self.storage_type = storage_type -class DataDiskStorageTypeInfoFragment(Model): - """Storage information about the data disks present in the custom image. - - :param lun: Disk Lun - :type lun: str - :param storage_type: Disk Storage Type. Possible values include: - 'Standard', 'Premium', 'StandardSSD' - :type storage_type: str or ~azure.mgmt.devtestlabs.models.StorageType - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - } - - def __init__(self, *, lun: str=None, storage_type=None, **kwargs) -> None: - super(DataDiskStorageTypeInfoFragment, self).__init__(**kwargs) - self.lun = lun - self.storage_type = storage_type - - class DayDetails(Model): """Properties of a daily schedule. @@ -1502,22 +1040,6 @@ def __init__(self, *, time: str=None, **kwargs) -> None: self.time = time -class DayDetailsFragment(Model): - """Properties of a daily schedule. - - :param time: The time of day the schedule will occur. - :type time: str - """ - - _attribute_map = { - 'time': {'key': 'time', 'type': 'str'}, - } - - def __init__(self, *, time: str=None, **kwargs) -> None: - super(DayDetailsFragment, self).__init__(**kwargs) - self.time = time - - class DetachDataDiskProperties(Model): """Request body for detaching data disk from a virtual machine. @@ -1571,7 +1093,7 @@ class Disk(Resource): :param disk_type: The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param disk_size_gi_b: The size of the disk in GibiBytes. + :param disk_size_gi_b: The size of the disk in Gibibytes. :type disk_size_gi_b: int :param leased_by_lab_vm_id: The resource ID of the VM to which this disk is leased. @@ -1581,6 +1103,9 @@ class Disk(Resource): :type disk_blob_name: str :param disk_uri: When backed by a blob, the URI of underlying blob. :type disk_uri: str + :param storage_account_id: When backed by a blob, the storage account + where the blob is. + :type storage_account_id: str :ivar created_date: The creation date of the disk. :vartype created_date: datetime :param host_caching: The host caching policy of the disk (i.e. None, @@ -1616,6 +1141,7 @@ class Disk(Resource): 'leased_by_lab_vm_id': {'key': 'properties.leasedByLabVmId', 'type': 'str'}, 'disk_blob_name': {'key': 'properties.diskBlobName', 'type': 'str'}, 'disk_uri': {'key': 'properties.diskUri', 'type': 'str'}, + 'storage_account_id': {'key': 'properties.storageAccountId', 'type': 'str'}, 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, @@ -1623,13 +1149,14 @@ class Disk(Resource): 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, disk_type=None, disk_size_gi_b: int=None, leased_by_lab_vm_id: str=None, disk_blob_name: str=None, disk_uri: str=None, host_caching: str=None, managed_disk_id: str=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, disk_type=None, disk_size_gi_b: int=None, leased_by_lab_vm_id: str=None, disk_blob_name: str=None, disk_uri: str=None, storage_account_id: str=None, host_caching: str=None, managed_disk_id: str=None, **kwargs) -> None: super(Disk, self).__init__(location=location, tags=tags, **kwargs) self.disk_type = disk_type self.disk_size_gi_b = disk_size_gi_b self.leased_by_lab_vm_id = leased_by_lab_vm_id self.disk_blob_name = disk_blob_name self.disk_uri = disk_uri + self.storage_account_id = storage_account_id self.created_date = None self.host_caching = host_caching self.managed_disk_id = managed_disk_id @@ -1642,47 +1169,14 @@ class DiskFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param disk_type: The storage type for the disk (i.e. Standard, Premium). - Possible values include: 'Standard', 'Premium', 'StandardSSD' - :type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param disk_size_gi_b: The size of the disk in GibiBytes. - :type disk_size_gi_b: int - :param leased_by_lab_vm_id: The resource ID of the VM to which this disk - is leased. - :type leased_by_lab_vm_id: str - :param disk_blob_name: When backed by a blob, the name of the VHD blob - without extension. - :type disk_blob_name: str - :param disk_uri: When backed by a blob, the URI of underlying blob. - :type disk_uri: str - :param host_caching: The host caching policy of the disk (i.e. None, - ReadOnly, ReadWrite). - :type host_caching: str - :param managed_disk_id: When backed by managed disk, this is the ID of the - compute disk resource. - :type managed_disk_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'disk_type': {'key': 'properties.diskType', 'type': 'str'}, - 'disk_size_gi_b': {'key': 'properties.diskSizeGiB', 'type': 'int'}, - 'leased_by_lab_vm_id': {'key': 'properties.leasedByLabVmId', 'type': 'str'}, - 'disk_blob_name': {'key': 'properties.diskBlobName', 'type': 'str'}, - 'disk_uri': {'key': 'properties.diskUri', 'type': 'str'}, - 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, - 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, } - def __init__(self, *, tags=None, disk_type=None, disk_size_gi_b: int=None, leased_by_lab_vm_id: str=None, disk_blob_name: str=None, disk_uri: str=None, host_caching: str=None, managed_disk_id: str=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(DiskFragment, self).__init__(tags=tags, **kwargs) - self.disk_type = disk_type - self.disk_size_gi_b = disk_size_gi_b - self.leased_by_lab_vm_id = leased_by_lab_vm_id - self.disk_blob_name = disk_blob_name - self.disk_uri = disk_uri - self.host_caching = host_caching - self.managed_disk_id = managed_disk_id class DtlEnvironment(Resource): @@ -1759,25 +1253,14 @@ class DtlEnvironmentFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param deployment_properties: The deployment properties of the - environment. - :type deployment_properties: - ~azure.mgmt.devtestlabs.models.EnvironmentDeploymentPropertiesFragment - :param arm_template_display_name: The display name of the Azure Resource - Manager template that produced the environment. - :type arm_template_display_name: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentPropertiesFragment'}, - 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, } - def __init__(self, *, tags=None, deployment_properties=None, arm_template_display_name: str=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(DtlEnvironmentFragment, self).__init__(tags=tags, **kwargs) - self.deployment_properties = deployment_properties - self.arm_template_display_name = arm_template_display_name class EnvironmentDeploymentProperties(Model): @@ -1801,27 +1284,6 @@ def __init__(self, *, arm_template_id: str=None, parameters=None, **kwargs) -> N self.parameters = parameters -class EnvironmentDeploymentPropertiesFragment(Model): - """Properties of an environment deployment. - - :param arm_template_id: The Azure Resource Manager template's identifier. - :type arm_template_id: str - :param parameters: The parameters of the Azure Resource Manager template. - :type parameters: - list[~azure.mgmt.devtestlabs.models.ArmTemplateParameterPropertiesFragment] - """ - - _attribute_map = { - 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterPropertiesFragment]'}, - } - - def __init__(self, *, arm_template_id: str=None, parameters=None, **kwargs) -> None: - super(EnvironmentDeploymentPropertiesFragment, self).__init__(**kwargs) - self.arm_template_id = arm_template_id - self.parameters = parameters - - class EvaluatePoliciesProperties(Model): """Properties for evaluating a policy set. @@ -1901,24 +1363,6 @@ def __init__(self, *, event_name=None, **kwargs) -> None: self.event_name = event_name -class EventFragment(Model): - """An event to be notified for. - - :param event_name: The event type for which this notification is enabled - (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' - :type event_name: str or - ~azure.mgmt.devtestlabs.models.NotificationChannelEventType - """ - - _attribute_map = { - 'event_name': {'key': 'eventName', 'type': 'str'}, - } - - def __init__(self, *, event_name=None, **kwargs) -> None: - super(EventFragment, self).__init__(**kwargs) - self.event_name = event_name - - class ExportResourceUsageParameters(Model): """The parameters of the export operation. @@ -1962,31 +1406,11 @@ def __init__(self, *, id: str=None, name: str=None, **kwargs) -> None: self.name = name -class ExternalSubnetFragment(Model): - """Subnet information as returned by the Microsoft.Network API. +class Formula(Resource): + """A formula for creating a VM, specifying an image base and other parameters. - :param id: Gets or sets the identifier. - :type id: str - :param name: Gets or sets the name. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, name: str=None, **kwargs) -> None: - super(ExternalSubnetFragment, self).__init__(**kwargs) - self.id = id - self.name = name - - -class Formula(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 are only populated by the server, and will be ignored when + sending a request. :ivar id: The identifier of the resource. :vartype id: str @@ -2000,8 +1424,8 @@ class Formula(Resource): :type tags: dict[str, str] :param description: The description of the formula. :type description: str - :param author: The author of the formula. - :type author: str + :ivar author: The author of the formula. + :vartype author: str :param os_type: The OS type of the formula. :type os_type: str :ivar creation_date: The creation date of the formula. @@ -2022,6 +1446,7 @@ class Formula(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'author': {'readonly': True}, 'creation_date': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'unique_identifier': {'readonly': True}, @@ -2043,10 +1468,10 @@ class Formula(Resource): 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, description: str=None, author: str=None, os_type: str=None, formula_content=None, vm=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, description: str=None, os_type: str=None, formula_content=None, vm=None, **kwargs) -> None: super(Formula, self).__init__(location=location, tags=tags, **kwargs) self.description = description - self.author = author + self.author = None self.os_type = os_type self.creation_date = None self.formula_content = formula_content @@ -2060,35 +1485,14 @@ class FormulaFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param description: The description of the formula. - :type description: str - :param author: The author of the formula. - :type author: str - :param os_type: The OS type of the formula. - :type os_type: str - :param formula_content: The content of the formula. - :type formula_content: - ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameterFragment - :param vm: Information about a VM from which a formula is to be created. - :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVmFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameterFragment'}, - 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVmFragment'}, } - def __init__(self, *, tags=None, description: str=None, author: str=None, os_type: str=None, formula_content=None, vm=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(FormulaFragment, self).__init__(tags=tags, **kwargs) - self.description = description - self.author = author - self.os_type = os_type - self.formula_content = formula_content - self.vm = vm class FormulaPropertiesFromVm(Model): @@ -2108,23 +1512,6 @@ def __init__(self, *, lab_vm_id: str=None, **kwargs) -> None: self.lab_vm_id = lab_vm_id -class FormulaPropertiesFromVmFragment(Model): - """Information about a VM from which a formula is to be created. - - :param lab_vm_id: The identifier of the VM from which a formula is to be - created. - :type lab_vm_id: str - """ - - _attribute_map = { - 'lab_vm_id': {'key': 'labVmId', 'type': 'str'}, - } - - def __init__(self, *, lab_vm_id: str=None, **kwargs) -> None: - super(FormulaPropertiesFromVmFragment, self).__init__(**kwargs) - self.lab_vm_id = lab_vm_id - - class GalleryImage(Resource): """A gallery image. @@ -2228,38 +1615,6 @@ def __init__(self, *, offer: str=None, publisher: str=None, sku: str=None, os_ty self.version = version -class GalleryImageReferenceFragment(Model): - """The reference information for an Azure Marketplace image. - - :param offer: The offer of the gallery image. - :type offer: str - :param publisher: The publisher of the gallery image. - :type publisher: str - :param sku: The SKU of the gallery image. - :type sku: str - :param os_type: The OS type of the gallery image. - :type os_type: str - :param version: The version of the gallery image. - :type version: str - """ - - _attribute_map = { - 'offer': {'key': 'offer', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, offer: str=None, publisher: str=None, sku: str=None, os_type: str=None, version: str=None, **kwargs) -> None: - super(GalleryImageReferenceFragment, self).__init__(**kwargs) - self.offer = offer - self.publisher = publisher - self.sku = sku - self.os_type = os_type - self.version = version - - class GenerateArmTemplateRequest(Model): """Parameters for generating an ARM template for deploying artifacts. @@ -2339,27 +1694,12 @@ def __init__(self, *, minute: int=None, **kwargs) -> None: self.minute = minute -class HourDetailsFragment(Model): - """Properties of an hourly schedule. - - :param minute: Minutes of the hour the schedule will run. - :type minute: int - """ - - _attribute_map = { - 'minute': {'key': 'minute', 'type': 'int'}, - } - - def __init__(self, *, minute: int=None, **kwargs) -> None: - super(HourDetailsFragment, self).__init__(**kwargs) - self.minute = minute - - class IdentityProperties(Model): """Properties of a managed identity. - :param type: Managed identity. - :type type: str + :param type: Managed identity. Possible values include: 'None', + 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + :type type: str or ~azure.mgmt.devtestlabs.models.ManagedIdentityType :param principal_id: The principal id of resource identity. :type principal_id: str :param tenant_id: The tenant identifier of resource. @@ -2375,7 +1715,7 @@ class IdentityProperties(Model): 'client_secret_url': {'key': 'clientSecretUrl', 'type': 'str'}, } - def __init__(self, *, type: str=None, principal_id: str=None, tenant_id: str=None, client_secret_url: str=None, **kwargs) -> None: + def __init__(self, *, type=None, principal_id: str=None, tenant_id: str=None, client_secret_url: str=None, **kwargs) -> None: super(IdentityProperties, self).__init__(**kwargs) self.type = type self.principal_id = principal_id @@ -2436,36 +1776,6 @@ def __init__(self, *, transport_protocol=None, frontend_port: int=None, backend_ self.backend_port = backend_port -class InboundNatRuleFragment(Model): - """A rule for NAT - exposing a VM's port (backendPort) on the public IP - address using a load balancer. - - :param transport_protocol: The transport protocol for the endpoint. - Possible values include: 'Tcp', 'Udp' - :type transport_protocol: str or - ~azure.mgmt.devtestlabs.models.TransportProtocol - :param frontend_port: The external endpoint port of the inbound - connection. Possible values range between 1 and 65535, inclusive. If - unspecified, a value will be allocated automatically. - :type frontend_port: int - :param backend_port: The port to which the external traffic will be - redirected. - :type backend_port: int - """ - - _attribute_map = { - 'transport_protocol': {'key': 'transportProtocol', 'type': 'str'}, - 'frontend_port': {'key': 'frontendPort', 'type': 'int'}, - 'backend_port': {'key': 'backendPort', 'type': 'int'}, - } - - def __init__(self, *, transport_protocol=None, frontend_port: int=None, backend_port: int=None, **kwargs) -> None: - super(InboundNatRuleFragment, self).__init__(**kwargs) - self.transport_protocol = transport_protocol - self.frontend_port = frontend_port - self.backend_port = backend_port - - class Lab(Resource): """A lab. @@ -2672,41 +1982,6 @@ def __init__(self, *, title: str=None, markdown: str=None, enabled=None, expirat self.unique_identifier = None -class LabAnnouncementPropertiesFragment(Model): - """Properties of a lab's announcement banner. - - :param title: The plain text title for the lab announcement - :type title: str - :param markdown: The markdown text (if any) that this lab displays in the - UI. If left empty/null, nothing will be shown. - :type markdown: str - :param enabled: Is the lab announcement active/enabled at this time?. - Possible values include: 'Enabled', 'Disabled' - :type enabled: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param expiration_date: The time at which the announcement expires (null - for never) - :type expiration_date: datetime - :param expired: Has this announcement expired? - :type expired: bool - """ - - _attribute_map = { - 'title': {'key': 'title', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'expired': {'key': 'expired', 'type': 'bool'}, - } - - def __init__(self, *, title: str=None, markdown: str=None, enabled=None, expiration_date=None, expired: bool=None, **kwargs) -> None: - super(LabAnnouncementPropertiesFragment, self).__init__(**kwargs) - self.title = title - self.markdown = markdown - self.enabled = enabled - self.expiration_date = expiration_date - self.expired = expired - - class LabCost(Resource): """A cost item. @@ -2838,65 +2113,14 @@ class LabFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param lab_storage_type: Type of storage used by the lab. It can be either - Premium or Standard. Default is Premium. Possible values include: - 'Standard', 'Premium', 'StandardSSD' - :type lab_storage_type: str or ~azure.mgmt.devtestlabs.models.StorageType - :param mandatory_artifacts_resource_ids_linux: 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. - :type mandatory_artifacts_resource_ids_linux: list[str] - :param mandatory_artifacts_resource_ids_windows: 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. - :type mandatory_artifacts_resource_ids_windows: list[str] - :param premium_data_disks: 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. Possible values include: 'Disabled', 'Enabled' - :type premium_data_disks: str or - ~azure.mgmt.devtestlabs.models.PremiumDataDisk - :param environment_permission: The access rights to be granted to the user - when provisioning an environment. Possible values include: 'Reader', - 'Contributor' - :type environment_permission: str or - ~azure.mgmt.devtestlabs.models.EnvironmentPermission - :param announcement: The properties of any lab announcement associated - with this lab - :type announcement: - ~azure.mgmt.devtestlabs.models.LabAnnouncementPropertiesFragment - :param support: The properties of any lab support message associated with - this lab - :type support: ~azure.mgmt.devtestlabs.models.LabSupportPropertiesFragment - :param extended_properties: Extended properties of the lab used for - experimental features - :type extended_properties: dict[str, str] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_storage_type': {'key': 'properties.labStorageType', 'type': 'str'}, - 'mandatory_artifacts_resource_ids_linux': {'key': 'properties.mandatoryArtifactsResourceIdsLinux', 'type': '[str]'}, - 'mandatory_artifacts_resource_ids_windows': {'key': 'properties.mandatoryArtifactsResourceIdsWindows', 'type': '[str]'}, - 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, - 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, - 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementPropertiesFragment'}, - 'support': {'key': 'properties.support', 'type': 'LabSupportPropertiesFragment'}, - 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, } - def __init__(self, *, tags=None, lab_storage_type=None, mandatory_artifacts_resource_ids_linux=None, mandatory_artifacts_resource_ids_windows=None, premium_data_disks=None, environment_permission=None, announcement=None, support=None, extended_properties=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(LabFragment, self).__init__(tags=tags, **kwargs) - self.lab_storage_type = lab_storage_type - self.mandatory_artifacts_resource_ids_linux = mandatory_artifacts_resource_ids_linux - self.mandatory_artifacts_resource_ids_windows = mandatory_artifacts_resource_ids_windows - self.premium_data_disks = premium_data_disks - self.environment_permission = environment_permission - self.announcement = announcement - self.support = support - self.extended_properties = extended_properties class LabResourceCostProperties(Model): @@ -2972,28 +2196,6 @@ def __init__(self, *, enabled=None, markdown: str=None, **kwargs) -> None: self.markdown = markdown -class LabSupportPropertiesFragment(Model): - """Properties of a lab's support banner. - - :param enabled: Is the lab support banner active/enabled at this time?. - Possible values include: 'Enabled', 'Disabled' - :type enabled: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param markdown: The markdown text (if any) that this lab displays in the - UI. If left empty/null, nothing will be shown. - :type markdown: str - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - } - - def __init__(self, *, enabled=None, markdown: str=None, **kwargs) -> None: - super(LabSupportPropertiesFragment, self).__init__(**kwargs) - self.enabled = enabled - self.markdown = markdown - - class LabVhd(Model): """Properties of a VHD in the lab. @@ -3029,27 +2231,27 @@ class LabVirtualMachine(Resource): :param notes: The notes of the virtual machine. :type notes: str :param owner_object_id: The object identifier of the owner of the virtual - machine. + machine. Default value: "dynamicValue" . :type owner_object_id: str :param owner_user_principal_name: The user principal name of the virtual machine owner. :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the + :ivar created_by_user_id: The object identifier of the creator of the virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual + :vartype created_by_user_id: str + :ivar created_by_user: The email address of creator of the virtual machine. - :type created_by_user: str + :vartype created_by_user: str :param created_date: The creation date of the virtual machine. :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the + :ivar compute_id: The resource identifier (Microsoft.Compute) of the virtual machine. - :type compute_id: str + :vartype compute_id: str :param custom_image_id: The custom image identifier of the virtual machine. :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str + :ivar os_type: The OS type of the virtual machine. + :vartype os_type: str :param size: The size of the virtual machine. :type size: str :param user_name: The user name of the virtual machine. @@ -3061,22 +2263,22 @@ class LabVirtualMachine(Resource): :param is_authentication_with_ssh_key: Indicates whether this virtual machine uses an SSH key for authentication. :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str + :ivar fqdn: The fully-qualified domain name of the virtual machine. + :vartype fqdn: str :param lab_subnet_name: The lab subnet name of the virtual machine. :type lab_subnet_name: str :param lab_virtual_network_id: The lab virtual network identifier of the virtual machine. :type lab_virtual_network_id: str :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. + is to be created without a public IP address. Default value: False . :type disallow_public_ip_address: bool :param artifacts: The artifacts to be installed on the virtual machine. :type artifacts: list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - :param artifact_deployment_status: The artifact deployment status for the + :ivar artifact_deployment_status: The artifact deployment status for the virtual machine. - :type artifact_deployment_status: + :vartype artifact_deployment_status: ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties :param gallery_image_reference: The Microsoft Azure Marketplace image reference of the virtual machine. @@ -3097,15 +2299,15 @@ class LabVirtualMachine(Resource): :param expiration_date: The expiration date for VM. :type expiration_date: datetime :param allow_claim: Indicates whether another user can take ownership of - the virtual machine + the virtual machine. Default value: False . :type allow_claim: bool :param storage_type: Storage type to use for virtual machine (i.e. Standard, Premium). :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab + :ivar virtual_machine_creation_source: Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or + :vartype virtual_machine_creation_source: str or ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource :param environment_id: The resource ID of the environment that contains this virtual machine, if any. @@ -3117,9 +2319,9 @@ class LabVirtualMachine(Resource): :param schedule_parameters: Virtual Machine schedules to be created :type schedule_parameters: list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameter] - :param last_known_power_state: Last known compute power state captured in + :ivar last_known_power_state: Last known compute power state captured in DTL - :type last_known_power_state: str + :vartype last_known_power_state: str :ivar provisioning_state: The provisioning status of the resource. :vartype provisioning_state: str :ivar unique_identifier: The unique immutable identifier of a resource @@ -3131,8 +2333,16 @@ class LabVirtualMachine(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'created_by_user_id': {'readonly': True}, + 'created_by_user': {'readonly': True}, + 'compute_id': {'readonly': True}, + 'os_type': {'readonly': True}, + 'fqdn': {'readonly': True}, + 'artifact_deployment_status': {'readonly': True}, 'compute_vm': {'readonly': True}, 'applicable_schedule': {'readonly': True}, + 'virtual_machine_creation_source': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'unique_identifier': {'readonly': True}, } @@ -3180,28 +2390,28 @@ class LabVirtualMachine(Resource): 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, notes: str=None, owner_object_id: str=None, owner_user_principal_name: str=None, created_by_user_id: str=None, created_by_user: str=None, created_date=None, compute_id: str=None, custom_image_id: str=None, os_type: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, fqdn: str=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=None, storage_type: str=None, virtual_machine_creation_source=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, last_known_power_state: str=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, notes: str=None, owner_object_id: str="dynamicValue", owner_user_principal_name: str=None, created_date=None, custom_image_id: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=False, artifacts=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=False, storage_type: str=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, **kwargs) -> None: super(LabVirtualMachine, self).__init__(location=location, tags=tags, **kwargs) self.notes = notes self.owner_object_id = owner_object_id self.owner_user_principal_name = owner_user_principal_name - self.created_by_user_id = created_by_user_id - self.created_by_user = created_by_user + self.created_by_user_id = None + self.created_by_user = None self.created_date = created_date - self.compute_id = compute_id + self.compute_id = None self.custom_image_id = custom_image_id - self.os_type = os_type + self.os_type = None self.size = size self.user_name = user_name self.password = password self.ssh_key = ssh_key self.is_authentication_with_ssh_key = is_authentication_with_ssh_key - self.fqdn = fqdn + self.fqdn = None self.lab_subnet_name = lab_subnet_name self.lab_virtual_network_id = lab_virtual_network_id self.disallow_public_ip_address = disallow_public_ip_address self.artifacts = artifacts - self.artifact_deployment_status = artifact_deployment_status + self.artifact_deployment_status = None self.gallery_image_reference = gallery_image_reference self.plan_id = plan_id self.compute_vm = None @@ -3210,11 +2420,11 @@ def __init__(self, *, location: str=None, tags=None, notes: str=None, owner_obje self.expiration_date = expiration_date self.allow_claim = allow_claim self.storage_type = storage_type - self.virtual_machine_creation_source = virtual_machine_creation_source + self.virtual_machine_creation_source = None self.environment_id = environment_id self.data_disk_parameters = data_disk_parameters self.schedule_parameters = schedule_parameters - self.last_known_power_state = last_known_power_state + self.last_known_power_state = None self.provisioning_state = None self.unique_identifier = None @@ -3229,27 +2439,16 @@ class LabVirtualMachineCreationParameter(Model): :param notes: The notes of the virtual machine. :type notes: str :param owner_object_id: The object identifier of the owner of the virtual - machine. + machine. Default value: "dynamicValue" . :type owner_object_id: str :param owner_user_principal_name: The user principal name of the virtual machine owner. :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str :param created_date: The creation date of the virtual machine. :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str :param custom_image_id: The custom image identifier of the virtual machine. :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str :param size: The size of the virtual machine. :type size: str :param user_name: The user name of the virtual machine. @@ -3261,23 +2460,17 @@ class LabVirtualMachineCreationParameter(Model): :param is_authentication_with_ssh_key: Indicates whether this virtual machine uses an SSH key for authentication. :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str :param lab_subnet_name: The lab subnet name of the virtual machine. :type lab_subnet_name: str :param lab_virtual_network_id: The lab virtual network identifier of the virtual machine. :type lab_virtual_network_id: str :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. + is to be created without a public IP address. Default value: False . :type disallow_public_ip_address: bool :param artifacts: The artifacts to be installed on the virtual machine. :type artifacts: list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties :param gallery_image_reference: The Microsoft Azure Marketplace image reference of the virtual machine. :type gallery_image_reference: @@ -3291,16 +2484,11 @@ class LabVirtualMachineCreationParameter(Model): :param expiration_date: The expiration date for VM. :type expiration_date: datetime :param allow_claim: Indicates whether another user can take ownership of - the virtual machine + the virtual machine. Default value: False . :type allow_claim: bool :param storage_type: Storage type to use for virtual machine (i.e. Standard, Premium). :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource :param environment_id: The resource ID of the environment that contains this virtual machine, if any. :type environment_id: str @@ -3311,9 +2499,6 @@ class LabVirtualMachineCreationParameter(Model): :param schedule_parameters: Virtual Machine schedules to be created :type schedule_parameters: list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameter] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str :param name: The name of the virtual machine or environment :type name: str :param location: The location of the new virtual machine or environment @@ -3327,442 +2512,78 @@ class LabVirtualMachineCreationParameter(Model): 'notes': {'key': 'properties.notes', 'type': 'str'}, 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, - 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'size': {'key': 'properties.size', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, - 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, - 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, - 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallProperties]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, - 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, - 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, - 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskProperties]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameter]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, bulk_creation_parameters=None, notes: str=None, owner_object_id: str=None, owner_user_principal_name: str=None, created_by_user_id: str=None, created_by_user: str=None, created_date=None, compute_id: str=None, custom_image_id: str=None, os_type: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, fqdn: str=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=None, storage_type: str=None, virtual_machine_creation_source=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, last_known_power_state: str=None, name: str=None, location: str=None, tags=None, **kwargs) -> None: - super(LabVirtualMachineCreationParameter, self).__init__(**kwargs) - self.bulk_creation_parameters = bulk_creation_parameters - self.notes = notes - self.owner_object_id = owner_object_id - self.owner_user_principal_name = owner_user_principal_name - self.created_by_user_id = created_by_user_id - self.created_by_user = created_by_user - self.created_date = created_date - self.compute_id = compute_id - self.custom_image_id = custom_image_id - self.os_type = os_type - self.size = size - self.user_name = user_name - self.password = password - self.ssh_key = ssh_key - self.is_authentication_with_ssh_key = is_authentication_with_ssh_key - self.fqdn = fqdn - self.lab_subnet_name = lab_subnet_name - self.lab_virtual_network_id = lab_virtual_network_id - self.disallow_public_ip_address = disallow_public_ip_address - self.artifacts = artifacts - self.artifact_deployment_status = artifact_deployment_status - self.gallery_image_reference = gallery_image_reference - self.plan_id = plan_id - self.network_interface = network_interface - self.expiration_date = expiration_date - self.allow_claim = allow_claim - self.storage_type = storage_type - self.virtual_machine_creation_source = virtual_machine_creation_source - self.environment_id = environment_id - self.data_disk_parameters = data_disk_parameters - self.schedule_parameters = schedule_parameters - self.last_known_power_state = last_known_power_state - self.name = name - self.location = location - self.tags = tags - - -class LabVirtualMachineCreationParameterFragment(Model): - """Properties for creating a virtual machine. - - :param bulk_creation_parameters: The number of virtual machine instances - to create. - :type bulk_creation_parameters: - ~azure.mgmt.devtestlabs.models.BulkCreationParametersFragment - :param notes: The notes of the virtual machine. - :type notes: str - :param owner_object_id: The object identifier of the owner of the virtual - machine. - :type owner_object_id: str - :param owner_user_principal_name: The user principal name of the virtual - machine owner. - :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str - :param created_date: The creation date of the virtual machine. - :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str - :param custom_image_id: The custom image identifier of the virtual - machine. - :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str - :param size: The size of the virtual machine. - :type size: str - :param user_name: The user name of the virtual machine. - :type user_name: str - :param password: The password of the virtual machine administrator. - :type password: str - :param ssh_key: The SSH key of the virtual machine administrator. - :type ssh_key: str - :param is_authentication_with_ssh_key: Indicates whether this virtual - machine uses an SSH key for authentication. - :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str - :param lab_subnet_name: The lab subnet name of the virtual machine. - :type lab_subnet_name: str - :param lab_virtual_network_id: The lab virtual network identifier of the - virtual machine. - :type lab_virtual_network_id: str - :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. - :type disallow_public_ip_address: bool - :param artifacts: The artifacts to be installed on the virtual machine. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallPropertiesFragment] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusPropertiesFragment - :param gallery_image_reference: The Microsoft Azure Marketplace image - reference of the virtual machine. - :type gallery_image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReferenceFragment - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfacePropertiesFragment - :param expiration_date: The expiration date for VM. - :type expiration_date: datetime - :param allow_claim: Indicates whether another user can take ownership of - the virtual machine - :type allow_claim: bool - :param storage_type: Storage type to use for virtual machine (i.e. - Standard, Premium). - :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource - :param environment_id: The resource ID of the environment that contains - this virtual machine, if any. - :type environment_id: str - :param data_disk_parameters: New or existing data disks to attach to the - virtual machine after creation - :type data_disk_parameters: - list[~azure.mgmt.devtestlabs.models.DataDiskPropertiesFragment] - :param schedule_parameters: Virtual Machine schedules to be created - :type schedule_parameters: - list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameterFragment] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str - :param name: The name of the virtual machine or environment - :type name: str - :param location: The location of the new virtual machine or environment - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParametersFragment'}, - 'notes': {'key': 'properties.notes', 'type': 'str'}, - 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, - 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, - 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'size': {'key': 'properties.size', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, - 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, - 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, - 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallPropertiesFragment]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusPropertiesFragment'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReferenceFragment'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfacePropertiesFragment'}, - 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, - 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, - 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskPropertiesFragment]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameterFragment]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, bulk_creation_parameters=None, notes: str=None, owner_object_id: str=None, owner_user_principal_name: str=None, created_by_user_id: str=None, created_by_user: str=None, created_date=None, compute_id: str=None, custom_image_id: str=None, os_type: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, fqdn: str=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=None, storage_type: str=None, virtual_machine_creation_source=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, last_known_power_state: str=None, name: str=None, location: str=None, tags=None, **kwargs) -> None: - super(LabVirtualMachineCreationParameterFragment, self).__init__(**kwargs) - self.bulk_creation_parameters = bulk_creation_parameters - self.notes = notes - self.owner_object_id = owner_object_id - self.owner_user_principal_name = owner_user_principal_name - self.created_by_user_id = created_by_user_id - self.created_by_user = created_by_user - self.created_date = created_date - self.compute_id = compute_id - self.custom_image_id = custom_image_id - self.os_type = os_type - self.size = size - self.user_name = user_name - self.password = password - self.ssh_key = ssh_key - self.is_authentication_with_ssh_key = is_authentication_with_ssh_key - self.fqdn = fqdn - self.lab_subnet_name = lab_subnet_name - self.lab_virtual_network_id = lab_virtual_network_id - self.disallow_public_ip_address = disallow_public_ip_address - self.artifacts = artifacts - self.artifact_deployment_status = artifact_deployment_status - self.gallery_image_reference = gallery_image_reference - self.plan_id = plan_id - self.network_interface = network_interface - self.expiration_date = expiration_date - self.allow_claim = allow_claim - self.storage_type = storage_type - self.virtual_machine_creation_source = virtual_machine_creation_source - self.environment_id = environment_id - self.data_disk_parameters = data_disk_parameters - self.schedule_parameters = schedule_parameters - self.last_known_power_state = last_known_power_state - self.name = name - self.location = location - self.tags = tags - - -class LabVirtualMachineFragment(UpdateResource): - """A virtual machine. - - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param notes: The notes of the virtual machine. - :type notes: str - :param owner_object_id: The object identifier of the owner of the virtual - machine. - :type owner_object_id: str - :param owner_user_principal_name: The user principal name of the virtual - machine owner. - :type owner_user_principal_name: str - :param created_by_user_id: The object identifier of the creator of the - virtual machine. - :type created_by_user_id: str - :param created_by_user: The email address of creator of the virtual - machine. - :type created_by_user: str - :param created_date: The creation date of the virtual machine. - :type created_date: datetime - :param compute_id: The resource identifier (Microsoft.Compute) of the - virtual machine. - :type compute_id: str - :param custom_image_id: The custom image identifier of the virtual - machine. - :type custom_image_id: str - :param os_type: The OS type of the virtual machine. - :type os_type: str - :param size: The size of the virtual machine. - :type size: str - :param user_name: The user name of the virtual machine. - :type user_name: str - :param password: The password of the virtual machine administrator. - :type password: str - :param ssh_key: The SSH key of the virtual machine administrator. - :type ssh_key: str - :param is_authentication_with_ssh_key: Indicates whether this virtual - machine uses an SSH key for authentication. - :type is_authentication_with_ssh_key: bool - :param fqdn: The fully-qualified domain name of the virtual machine. - :type fqdn: str - :param lab_subnet_name: The lab subnet name of the virtual machine. - :type lab_subnet_name: str - :param lab_virtual_network_id: The lab virtual network identifier of the - virtual machine. - :type lab_virtual_network_id: str - :param disallow_public_ip_address: Indicates whether the virtual machine - is to be created without a public IP address. - :type disallow_public_ip_address: bool - :param artifacts: The artifacts to be installed on the virtual machine. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallPropertiesFragment] - :param artifact_deployment_status: The artifact deployment status for the - virtual machine. - :type artifact_deployment_status: - ~azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusPropertiesFragment - :param gallery_image_reference: The Microsoft Azure Marketplace image - reference of the virtual machine. - :type gallery_image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReferenceFragment - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfacePropertiesFragment - :param expiration_date: The expiration date for VM. - :type expiration_date: datetime - :param allow_claim: Indicates whether another user can take ownership of - the virtual machine - :type allow_claim: bool - :param storage_type: Storage type to use for virtual machine (i.e. - Standard, Premium). - :type storage_type: str - :param virtual_machine_creation_source: Tells source of creation of lab - virtual machine. Output property only. Possible values include: - 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' - :type virtual_machine_creation_source: str or - ~azure.mgmt.devtestlabs.models.VirtualMachineCreationSource - :param environment_id: The resource ID of the environment that contains - this virtual machine, if any. - :type environment_id: str - :param data_disk_parameters: New or existing data disks to attach to the - virtual machine after creation - :type data_disk_parameters: - list[~azure.mgmt.devtestlabs.models.DataDiskPropertiesFragment] - :param schedule_parameters: Virtual Machine schedules to be created - :type schedule_parameters: - list[~azure.mgmt.devtestlabs.models.ScheduleCreationParameterFragment] - :param last_known_power_state: Last known compute power state captured in - DTL - :type last_known_power_state: str - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'notes': {'key': 'properties.notes', 'type': 'str'}, - 'owner_object_id': {'key': 'properties.ownerObjectId', 'type': 'str'}, - 'owner_user_principal_name': {'key': 'properties.ownerUserPrincipalName', 'type': 'str'}, - 'created_by_user_id': {'key': 'properties.createdByUserId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'compute_id': {'key': 'properties.computeId', 'type': 'str'}, 'custom_image_id': {'key': 'properties.customImageId', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, 'size': {'key': 'properties.size', 'type': 'str'}, 'user_name': {'key': 'properties.userName', 'type': 'str'}, 'password': {'key': 'properties.password', 'type': 'str'}, 'ssh_key': {'key': 'properties.sshKey', 'type': 'str'}, 'is_authentication_with_ssh_key': {'key': 'properties.isAuthenticationWithSshKey', 'type': 'bool'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, 'lab_subnet_name': {'key': 'properties.labSubnetName', 'type': 'str'}, 'lab_virtual_network_id': {'key': 'properties.labVirtualNetworkId', 'type': 'str'}, 'disallow_public_ip_address': {'key': 'properties.disallowPublicIpAddress', 'type': 'bool'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallPropertiesFragment]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusPropertiesFragment'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReferenceFragment'}, + 'artifacts': {'key': 'properties.artifacts', 'type': '[ArtifactInstallProperties]'}, + 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfacePropertiesFragment'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, 'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'}, 'allow_claim': {'key': 'properties.allowClaim', 'type': 'bool'}, 'storage_type': {'key': 'properties.storageType', 'type': 'str'}, - 'virtual_machine_creation_source': {'key': 'properties.virtualMachineCreationSource', 'type': 'str'}, 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskPropertiesFragment]'}, - 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameterFragment]'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, + 'data_disk_parameters': {'key': 'properties.dataDiskParameters', 'type': '[DataDiskProperties]'}, + 'schedule_parameters': {'key': 'properties.scheduleParameters', 'type': '[ScheduleCreationParameter]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, tags=None, notes: str=None, owner_object_id: str=None, owner_user_principal_name: str=None, created_by_user_id: str=None, created_by_user: str=None, created_date=None, compute_id: str=None, custom_image_id: str=None, os_type: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, fqdn: str=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=None, storage_type: str=None, virtual_machine_creation_source=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, last_known_power_state: str=None, **kwargs) -> None: - super(LabVirtualMachineFragment, self).__init__(tags=tags, **kwargs) + def __init__(self, *, bulk_creation_parameters=None, notes: str=None, owner_object_id: str="dynamicValue", owner_user_principal_name: str=None, created_date=None, custom_image_id: str=None, size: str=None, user_name: str=None, password: str=None, ssh_key: str=None, is_authentication_with_ssh_key: bool=None, lab_subnet_name: str=None, lab_virtual_network_id: str=None, disallow_public_ip_address: bool=False, artifacts=None, gallery_image_reference=None, plan_id: str=None, network_interface=None, expiration_date=None, allow_claim: bool=False, storage_type: str=None, environment_id: str=None, data_disk_parameters=None, schedule_parameters=None, name: str=None, location: str=None, tags=None, **kwargs) -> None: + super(LabVirtualMachineCreationParameter, self).__init__(**kwargs) + self.bulk_creation_parameters = bulk_creation_parameters self.notes = notes self.owner_object_id = owner_object_id self.owner_user_principal_name = owner_user_principal_name - self.created_by_user_id = created_by_user_id - self.created_by_user = created_by_user self.created_date = created_date - self.compute_id = compute_id self.custom_image_id = custom_image_id - self.os_type = os_type self.size = size self.user_name = user_name self.password = password self.ssh_key = ssh_key self.is_authentication_with_ssh_key = is_authentication_with_ssh_key - self.fqdn = fqdn self.lab_subnet_name = lab_subnet_name self.lab_virtual_network_id = lab_virtual_network_id self.disallow_public_ip_address = disallow_public_ip_address self.artifacts = artifacts - self.artifact_deployment_status = artifact_deployment_status self.gallery_image_reference = gallery_image_reference self.plan_id = plan_id self.network_interface = network_interface self.expiration_date = expiration_date self.allow_claim = allow_claim self.storage_type = storage_type - self.virtual_machine_creation_source = virtual_machine_creation_source self.environment_id = environment_id self.data_disk_parameters = data_disk_parameters self.schedule_parameters = schedule_parameters - self.last_known_power_state = last_known_power_state + self.name = name + self.location = location + self.tags = tags -class LinuxOsInfo(Model): - """Information about a Linux OS. +class LabVirtualMachineFragment(UpdateResource): + """A virtual machine. - :param linux_os_state: The state of the Linux OS (i.e. NonDeprovisioned, - DeprovisionRequested, DeprovisionApplied). Possible values include: - 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' - :type linux_os_state: str or ~azure.mgmt.devtestlabs.models.LinuxOsState + :param tags: The tags of the resource. + :type tags: dict[str, str] """ _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, linux_os_state=None, **kwargs) -> None: - super(LinuxOsInfo, self).__init__(**kwargs) - self.linux_os_state = linux_os_state + def __init__(self, *, tags=None, **kwargs) -> None: + super(LabVirtualMachineFragment, self).__init__(tags=tags, **kwargs) -class LinuxOsInfoFragment(Model): +class LinuxOsInfo(Model): """Information about a Linux OS. :param linux_os_state: The state of the Linux OS (i.e. NonDeprovisioned, @@ -3776,7 +2597,7 @@ class LinuxOsInfoFragment(Model): } def __init__(self, *, linux_os_state=None, **kwargs) -> None: - super(LinuxOsInfoFragment, self).__init__(**kwargs) + super(LinuxOsInfo, self).__init__(**kwargs) self.linux_os_state = linux_os_state @@ -3833,59 +2654,6 @@ def __init__(self, *, virtual_network_id: str=None, subnet_id: str=None, public_ self.shared_public_ip_address_configuration = shared_public_ip_address_configuration -class NetworkInterfacePropertiesFragment(Model): - """Properties of a network interface. - - :param virtual_network_id: The resource ID of the virtual network. - :type virtual_network_id: str - :param subnet_id: The resource ID of the sub net. - :type subnet_id: str - :param public_ip_address_id: The resource ID of the public IP address. - :type public_ip_address_id: str - :param public_ip_address: The public IP address. - :type public_ip_address: str - :param private_ip_address: The private IP address. - :type private_ip_address: str - :param dns_name: The DNS name. - :type dns_name: str - :param rdp_authority: The RdpAuthority property is a server DNS host name - or IP address followed by the service port number for RDP (Remote Desktop - Protocol). - :type rdp_authority: str - :param ssh_authority: The SshAuthority property is a server DNS host name - or IP address followed by the service port number for SSH. - :type ssh_authority: str - :param shared_public_ip_address_configuration: The configuration for - sharing a public IP address across multiple virtual machines. - :type shared_public_ip_address_configuration: - ~azure.mgmt.devtestlabs.models.SharedPublicIpAddressConfigurationFragment - """ - - _attribute_map = { - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, - 'public_ip_address': {'key': 'publicIpAddress', 'type': 'str'}, - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'dns_name': {'key': 'dnsName', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'shared_public_ip_address_configuration': {'key': 'sharedPublicIpAddressConfiguration', 'type': 'SharedPublicIpAddressConfigurationFragment'}, - } - - def __init__(self, *, virtual_network_id: str=None, subnet_id: str=None, public_ip_address_id: str=None, public_ip_address: str=None, private_ip_address: str=None, dns_name: str=None, rdp_authority: str=None, ssh_authority: str=None, shared_public_ip_address_configuration=None, **kwargs) -> None: - super(NetworkInterfacePropertiesFragment, self).__init__(**kwargs) - self.virtual_network_id = virtual_network_id - self.subnet_id = subnet_id - self.public_ip_address_id = public_ip_address_id - self.public_ip_address = public_ip_address - self.private_ip_address = private_ip_address - self.dns_name = dns_name - self.rdp_authority = rdp_authority - self.ssh_authority = ssh_authority - self.shared_public_ip_address_configuration = shared_public_ip_address_configuration - - class NotificationChannel(Resource): """A notification. @@ -3965,36 +2733,14 @@ class NotificationChannelFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param web_hook_url: The webhook URL to send notifications to. - :type web_hook_url: str - :param email_recipient: The email recipient to send notifications to (can - be a list of semi-colon separated email addresses). - :type email_recipient: str - :param notification_locale: The locale to use when sending a notification - (fallback for unsupported languages is EN). - :type notification_locale: str - :param description: Description of notification. - :type description: str - :param events: The list of event for which this notification is enabled. - :type events: list[~azure.mgmt.devtestlabs.models.EventFragment] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'web_hook_url': {'key': 'properties.webHookUrl', 'type': 'str'}, - 'email_recipient': {'key': 'properties.emailRecipient', 'type': 'str'}, - 'notification_locale': {'key': 'properties.notificationLocale', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'events': {'key': 'properties.events', 'type': '[EventFragment]'}, } - def __init__(self, *, tags=None, web_hook_url: str=None, email_recipient: str=None, notification_locale: str=None, description: str=None, events=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(NotificationChannelFragment, self).__init__(tags=tags, **kwargs) - self.web_hook_url = web_hook_url - self.email_recipient = email_recipient - self.notification_locale = notification_locale - self.description = description - self.events = events class NotificationSettings(Model): @@ -4034,43 +2780,6 @@ def __init__(self, *, status=None, time_in_minutes: int=None, webhook_url: str=N self.notification_locale = notification_locale -class NotificationSettingsFragment(Model): - """Notification settings for a schedule. - - :param status: If notifications are enabled for this schedule (i.e. - Enabled, Disabled). Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param time_in_minutes: Time in minutes before event at which notification - will be sent. - :type time_in_minutes: int - :param webhook_url: The webhook URL to which the notification will be - sent. - :type webhook_url: str - :param email_recipient: The email recipient to send notifications to (can - be a list of semi-colon separated email addresses). - :type email_recipient: str - :param notification_locale: The locale to use when sending a notification - (fallback for unsupported languages is EN). - :type notification_locale: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'time_in_minutes': {'key': 'timeInMinutes', 'type': 'int'}, - 'webhook_url': {'key': 'webhookUrl', 'type': 'str'}, - 'email_recipient': {'key': 'emailRecipient', 'type': 'str'}, - 'notification_locale': {'key': 'notificationLocale', 'type': 'str'}, - } - - def __init__(self, *, status=None, time_in_minutes: int=None, webhook_url: str=None, email_recipient: str=None, notification_locale: str=None, **kwargs) -> None: - super(NotificationSettingsFragment, self).__init__(**kwargs) - self.status = status - self.time_in_minutes = time_in_minutes - self.webhook_url = webhook_url - self.email_recipient = email_recipient - self.notification_locale = notification_locale - - class NotifyParameters(Model): """Properties for generating a Notification. @@ -4170,8 +2879,9 @@ class OperationResult(Model): :param status_code: The status code for the operation. Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', - 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + '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', @@ -4344,47 +3054,14 @@ class PolicyFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param description: The description of the policy. - :type description: str - :param status: The status of the policy. Possible values include: - 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.PolicyStatus - :param fact_name: The fact name of the policy (e.g. LabVmCount, LabVmSize, - MaxVmsAllowedPerLab, etc. Possible values include: 'UserOwnedLabVmCount', - 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', - 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', - 'LabTargetCost', 'EnvironmentTemplate', 'ScheduleEditPermission' - :type fact_name: str or ~azure.mgmt.devtestlabs.models.PolicyFactName - :param fact_data: The fact data of the policy. - :type fact_data: str - :param threshold: The threshold of the policy (i.e. a number for - MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). - :type threshold: str - :param evaluator_type: The evaluator type of the policy (i.e. - AllowedValuesPolicy, MaxValuePolicy). Possible values include: - 'AllowedValuesPolicy', 'MaxValuePolicy' - :type evaluator_type: str or - ~azure.mgmt.devtestlabs.models.PolicyEvaluatorType """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'fact_name': {'key': 'properties.factName', 'type': 'str'}, - 'fact_data': {'key': 'properties.factData', 'type': 'str'}, - 'threshold': {'key': 'properties.threshold', 'type': 'str'}, - 'evaluator_type': {'key': 'properties.evaluatorType', 'type': 'str'}, } - def __init__(self, *, tags=None, description: str=None, status=None, fact_name=None, fact_data: str=None, threshold: str=None, evaluator_type=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(PolicyFragment, self).__init__(tags=tags, **kwargs) - self.description = description - self.status = status - self.fact_name = fact_name - self.fact_data = fact_data - self.threshold = threshold - self.evaluator_type = evaluator_type class PolicySetResult(Model): @@ -4451,28 +3128,6 @@ def __init__(self, *, transport_protocol=None, backend_port: int=None, **kwargs) self.backend_port = backend_port -class PortFragment(Model): - """Properties of a network port. - - :param transport_protocol: Protocol type of the port. Possible values - include: 'Tcp', 'Udp' - :type transport_protocol: str or - ~azure.mgmt.devtestlabs.models.TransportProtocol - :param backend_port: Backend port of the target virtual machine. - :type backend_port: int - """ - - _attribute_map = { - 'transport_protocol': {'key': 'transportProtocol', 'type': 'str'}, - 'backend_port': {'key': 'backendPort', 'type': 'int'}, - } - - def __init__(self, *, transport_protocol=None, backend_port: int=None, **kwargs) -> None: - super(PortFragment, self).__init__(**kwargs) - self.transport_protocol = transport_protocol - self.backend_port = backend_port - - class RdpConnection(Model): """Represents a .rdp file. @@ -4639,71 +3294,7 @@ class ScheduleCreationParameter(Model): :type time_zone_id: str :param notification_settings: Notification settings. :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettings - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str - :param name: The name of the virtual machine or environment - :type name: str - :param location: The location of the new virtual machine or environment - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'status': {'key': 'properties.status', 'type': 'str'}, - 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetails'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetails'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetails'}, - 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettings'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, status=None, task_type: str=None, weekly_recurrence=None, daily_recurrence=None, hourly_recurrence=None, time_zone_id: str=None, notification_settings=None, target_resource_id: str=None, name: str=None, location: str=None, tags=None, **kwargs) -> None: - super(ScheduleCreationParameter, self).__init__(**kwargs) - self.status = status - self.task_type = task_type - self.weekly_recurrence = weekly_recurrence - self.daily_recurrence = daily_recurrence - self.hourly_recurrence = hourly_recurrence - self.time_zone_id = time_zone_id - self.notification_settings = notification_settings - self.target_resource_id = target_resource_id - self.name = name - self.location = location - self.tags = tags - - -class ScheduleCreationParameterFragment(Model): - """Properties for creating a schedule. - - :param status: The status of the schedule (i.e. Enabled, Disabled). - Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param task_type: The task type of the schedule (e.g. LabVmsShutdownTask, - LabVmAutoStart). - :type task_type: str - :param weekly_recurrence: If the schedule will occur only some days of the - week, specify the weekly recurrence. - :type weekly_recurrence: - ~azure.mgmt.devtestlabs.models.WeekDetailsFragment - :param daily_recurrence: If the schedule will occur once each day of the - week, specify the daily recurrence. - :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetailsFragment - :param hourly_recurrence: If the schedule will occur multiple times a day, - specify the hourly recurrence. - :type hourly_recurrence: - ~azure.mgmt.devtestlabs.models.HourDetailsFragment - :param time_zone_id: The time zone ID (e.g. Pacific Standard time). - :type time_zone_id: str - :param notification_settings: Notification settings. - :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettingsFragment + ~azure.mgmt.devtestlabs.models.NotificationSettings :param target_resource_id: The resource ID to which the schedule belongs :type target_resource_id: str :param name: The name of the virtual machine or environment @@ -4717,11 +3308,11 @@ class ScheduleCreationParameterFragment(Model): _attribute_map = { 'status': {'key': 'properties.status', 'type': 'str'}, 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetailsFragment'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetailsFragment'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetailsFragment'}, + 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetails'}, + 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetails'}, + 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetails'}, 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettingsFragment'}, + 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettings'}, 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, @@ -4729,7 +3320,7 @@ class ScheduleCreationParameterFragment(Model): } def __init__(self, *, status=None, task_type: str=None, weekly_recurrence=None, daily_recurrence=None, hourly_recurrence=None, time_zone_id: str=None, notification_settings=None, target_resource_id: str=None, name: str=None, location: str=None, tags=None, **kwargs) -> None: - super(ScheduleCreationParameterFragment, self).__init__(**kwargs) + super(ScheduleCreationParameter, self).__init__(**kwargs) self.status = status self.task_type = task_type self.weekly_recurrence = weekly_recurrence @@ -4748,54 +3339,14 @@ class ScheduleFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param status: The status of the schedule (i.e. Enabled, Disabled). - Possible values include: 'Enabled', 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus - :param task_type: The task type of the schedule (e.g. LabVmsShutdownTask, - LabVmAutoStart). - :type task_type: str - :param weekly_recurrence: If the schedule will occur only some days of the - week, specify the weekly recurrence. - :type weekly_recurrence: - ~azure.mgmt.devtestlabs.models.WeekDetailsFragment - :param daily_recurrence: If the schedule will occur once each day of the - week, specify the daily recurrence. - :type daily_recurrence: ~azure.mgmt.devtestlabs.models.DayDetailsFragment - :param hourly_recurrence: If the schedule will occur multiple times a day, - specify the hourly recurrence. - :type hourly_recurrence: - ~azure.mgmt.devtestlabs.models.HourDetailsFragment - :param time_zone_id: The time zone ID (e.g. Pacific Standard time). - :type time_zone_id: str - :param notification_settings: Notification settings. - :type notification_settings: - ~azure.mgmt.devtestlabs.models.NotificationSettingsFragment - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'task_type': {'key': 'properties.taskType', 'type': 'str'}, - 'weekly_recurrence': {'key': 'properties.weeklyRecurrence', 'type': 'WeekDetailsFragment'}, - 'daily_recurrence': {'key': 'properties.dailyRecurrence', 'type': 'DayDetailsFragment'}, - 'hourly_recurrence': {'key': 'properties.hourlyRecurrence', 'type': 'HourDetailsFragment'}, - 'time_zone_id': {'key': 'properties.timeZoneId', 'type': 'str'}, - 'notification_settings': {'key': 'properties.notificationSettings', 'type': 'NotificationSettingsFragment'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, } - def __init__(self, *, tags=None, status=None, task_type: str=None, weekly_recurrence=None, daily_recurrence=None, hourly_recurrence=None, time_zone_id: str=None, notification_settings=None, target_resource_id: str=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(ScheduleFragment, self).__init__(tags=tags, **kwargs) - self.status = status - self.task_type = task_type - self.weekly_recurrence = weekly_recurrence - self.daily_recurrence = daily_recurrence - self.hourly_recurrence = hourly_recurrence - self.time_zone_id = time_zone_id - self.notification_settings = notification_settings - self.target_resource_id = target_resource_id class Secret(Resource): @@ -4854,18 +3405,14 @@ class SecretFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param value: The value of the secret for secret creation. - :type value: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'value': {'key': 'properties.value', 'type': 'str'}, } - def __init__(self, *, tags=None, value: str=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(SecretFragment, self).__init__(tags=tags, **kwargs) - self.value = value class ServiceFabric(Resource): @@ -4937,24 +3484,14 @@ class ServiceFabricFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param external_service_fabric_id: The backing service fabric resource's - id - :type external_service_fabric_id: str - :param environment_id: The resource id of the environment under which the - service fabric resource is present - :type environment_id: str """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, } - def __init__(self, *, tags=None, external_service_fabric_id: str=None, environment_id: str=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(ServiceFabricFragment, self).__init__(tags=tags, **kwargs) - self.external_service_fabric_id = external_service_fabric_id - self.environment_id = environment_id class ServiceRunner(Resource): @@ -4997,39 +3534,41 @@ def __init__(self, *, location: str=None, tags=None, identity=None, **kwargs) -> self.identity = identity -class SharedPublicIpAddressConfiguration(Model): - """Properties of a virtual machine that determine how it is connected to a - load balancer. +class ServiceRunnerList(Model): + """The response of a list operation. - :param inbound_nat_rules: The incoming NAT rules - :type inbound_nat_rules: - list[~azure.mgmt.devtestlabs.models.InboundNatRule] + :param value: Results of the list operation. + :type value: list[~azure.mgmt.devtestlabs.models.ServiceRunner] + :param next_link: Link for next set of results. + :type next_link: str """ _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, + 'value': {'key': 'value', 'type': '[ServiceRunner]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: - super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.inbound_nat_rules = inbound_nat_rules + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ServiceRunnerList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link -class SharedPublicIpAddressConfigurationFragment(Model): +class SharedPublicIpAddressConfiguration(Model): """Properties of a virtual machine that determine how it is connected to a load balancer. :param inbound_nat_rules: The incoming NAT rules :type inbound_nat_rules: - list[~azure.mgmt.devtestlabs.models.InboundNatRuleFragment] + list[~azure.mgmt.devtestlabs.models.InboundNatRule] """ _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, } def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: - super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) + super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) self.inbound_nat_rules = inbound_nat_rules @@ -5126,33 +3665,6 @@ def __init__(self, *, resource_id: str=None, lab_subnet_name: str=None, allow_pu self.allow_public_ip = allow_public_ip -class SubnetFragment(Model): - """Subnet information. - - :param resource_id: The resource ID of the subnet. - :type resource_id: str - :param lab_subnet_name: The name of the subnet as seen in the lab. - :type lab_subnet_name: str - :param allow_public_ip: The permission policy of the subnet for allowing - public IP addresses (i.e. Allow, Deny)). Possible values include: - 'Default', 'Deny', 'Allow' - :type allow_public_ip: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'lab_subnet_name': {'key': 'labSubnetName', 'type': 'str'}, - 'allow_public_ip': {'key': 'allowPublicIp', 'type': 'str'}, - } - - def __init__(self, *, resource_id: str=None, lab_subnet_name: str=None, allow_public_ip=None, **kwargs) -> None: - super(SubnetFragment, self).__init__(**kwargs) - self.resource_id = resource_id - self.lab_subnet_name = lab_subnet_name - self.allow_public_ip = allow_public_ip - - class SubnetOverride(Model): """Property overrides on a subnet of a virtual network. @@ -5198,51 +3710,6 @@ def __init__(self, *, resource_id: str=None, lab_subnet_name: str=None, use_in_v self.virtual_network_pool_name = virtual_network_pool_name -class SubnetOverrideFragment(Model): - """Property overrides on a subnet of a virtual network. - - :param resource_id: The resource ID of the subnet. - :type resource_id: str - :param lab_subnet_name: The name given to the subnet within the lab. - :type lab_subnet_name: str - :param use_in_vm_creation_permission: Indicates whether this subnet can be - used during virtual machine creation (i.e. Allow, Deny). Possible values - include: 'Default', 'Deny', 'Allow' - :type use_in_vm_creation_permission: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - :param use_public_ip_address_permission: Indicates whether public IP - addresses can be assigned to virtual machines on this subnet (i.e. Allow, - Deny). Possible values include: 'Default', 'Deny', 'Allow' - :type use_public_ip_address_permission: str or - ~azure.mgmt.devtestlabs.models.UsagePermissionType - :param shared_public_ip_address_configuration: Properties that virtual - machines on this subnet will share. - :type shared_public_ip_address_configuration: - ~azure.mgmt.devtestlabs.models.SubnetSharedPublicIpAddressConfigurationFragment - :param virtual_network_pool_name: The virtual network pool associated with - this subnet. - :type virtual_network_pool_name: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'lab_subnet_name': {'key': 'labSubnetName', 'type': 'str'}, - 'use_in_vm_creation_permission': {'key': 'useInVmCreationPermission', 'type': 'str'}, - 'use_public_ip_address_permission': {'key': 'usePublicIpAddressPermission', 'type': 'str'}, - 'shared_public_ip_address_configuration': {'key': 'sharedPublicIpAddressConfiguration', 'type': 'SubnetSharedPublicIpAddressConfigurationFragment'}, - 'virtual_network_pool_name': {'key': 'virtualNetworkPoolName', 'type': 'str'}, - } - - def __init__(self, *, resource_id: str=None, lab_subnet_name: str=None, use_in_vm_creation_permission=None, use_public_ip_address_permission=None, shared_public_ip_address_configuration=None, virtual_network_pool_name: str=None, **kwargs) -> None: - super(SubnetOverrideFragment, self).__init__(**kwargs) - self.resource_id = resource_id - self.lab_subnet_name = lab_subnet_name - self.use_in_vm_creation_permission = use_in_vm_creation_permission - self.use_public_ip_address_permission = use_public_ip_address_permission - self.shared_public_ip_address_configuration = shared_public_ip_address_configuration - self.virtual_network_pool_name = virtual_network_pool_name - - class SubnetSharedPublicIpAddressConfiguration(Model): """Configuration for public IP address sharing. @@ -5260,23 +3727,6 @@ def __init__(self, *, allowed_ports=None, **kwargs) -> None: self.allowed_ports = allowed_ports -class SubnetSharedPublicIpAddressConfigurationFragment(Model): - """Configuration for public IP address sharing. - - :param allowed_ports: Backend ports that virtual machines on this subnet - are allowed to expose - :type allowed_ports: list[~azure.mgmt.devtestlabs.models.PortFragment] - """ - - _attribute_map = { - 'allowed_ports': {'key': 'allowedPorts', 'type': '[PortFragment]'}, - } - - def __init__(self, *, allowed_ports=None, **kwargs) -> None: - super(SubnetSharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) - self.allowed_ports = allowed_ports - - class TargetCostProperties(Model): """Properties of a cost target. @@ -5381,22 +3831,14 @@ class UserFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param identity: The identity of the user. - :type identity: ~azure.mgmt.devtestlabs.models.UserIdentityFragment - :param secret_store: The secret store of the user. - :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStoreFragment """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'properties.identity', 'type': 'UserIdentityFragment'}, - 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStoreFragment'}, } - def __init__(self, *, tags=None, identity=None, secret_store=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(UserFragment, self).__init__(tags=tags, **kwargs) - self.identity = identity - self.secret_store = secret_store class UserIdentity(Model): @@ -5436,43 +3878,6 @@ def __init__(self, *, principal_name: str=None, principal_id: str=None, tenant_i self.app_id = app_id -class UserIdentityFragment(Model): - """Identity attributes of a lab user. - - :param principal_name: Set to the principal name / UPN of the client JWT - making the request. - :type principal_name: str - :param principal_id: Set to the principal Id of the client JWT making the - request. Service principal will not have the principal Id. - :type principal_id: str - :param tenant_id: Set to the tenant ID of the client JWT making the - request. - :type tenant_id: str - :param object_id: 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. - :type object_id: str - :param app_id: Set to the app Id of the client JWT making the request. - :type app_id: str - """ - - _attribute_map = { - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'app_id': {'key': 'appId', 'type': 'str'}, - } - - def __init__(self, *, principal_name: str=None, principal_id: str=None, tenant_id: str=None, object_id: str=None, app_id: str=None, **kwargs) -> None: - super(UserIdentityFragment, self).__init__(**kwargs) - self.principal_name = principal_name - self.principal_id = principal_id - self.tenant_id = tenant_id - self.object_id = object_id - self.app_id = app_id - - class UserSecretStore(Model): """Properties of a user's secret store. @@ -5493,26 +3898,6 @@ def __init__(self, *, key_vault_uri: str=None, key_vault_id: str=None, **kwargs) self.key_vault_id = key_vault_id -class UserSecretStoreFragment(Model): - """Properties of a user's secret store. - - :param key_vault_uri: The URI of the user's Key vault. - :type key_vault_uri: str - :param key_vault_id: The ID of the user's Key vault. - :type key_vault_id: str - """ - - _attribute_map = { - 'key_vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - } - - def __init__(self, *, key_vault_uri: str=None, key_vault_id: str=None, **kwargs) -> None: - super(UserSecretStoreFragment, self).__init__(**kwargs) - self.key_vault_uri = key_vault_uri - self.key_vault_id = key_vault_id - - class VirtualNetwork(Resource): """A virtual network. @@ -5594,32 +3979,14 @@ class VirtualNetworkFragment(UpdateResource): :param tags: The tags of the resource. :type tags: dict[str, str] - :param allowed_subnets: The allowed subnets of the virtual network. - :type allowed_subnets: list[~azure.mgmt.devtestlabs.models.SubnetFragment] - :param description: The description of the virtual network. - :type description: str - :param external_provider_resource_id: The Microsoft.Network resource - identifier of the virtual network. - :type external_provider_resource_id: str - :param subnet_overrides: The subnet overrides of the virtual network. - :type subnet_overrides: - list[~azure.mgmt.devtestlabs.models.SubnetOverrideFragment] """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[SubnetFragment]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, - 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverrideFragment]'}, } - def __init__(self, *, tags=None, allowed_subnets=None, description: str=None, external_provider_resource_id: str=None, subnet_overrides=None, **kwargs) -> None: + def __init__(self, *, tags=None, **kwargs) -> None: super(VirtualNetworkFragment, self).__init__(tags=tags, **kwargs) - self.allowed_subnets = allowed_subnets - self.description = description - self.external_provider_resource_id = external_provider_resource_id - self.subnet_overrides = subnet_overrides class WeekDetails(Model): @@ -5643,27 +4010,6 @@ def __init__(self, *, weekdays=None, time: str=None, **kwargs) -> None: self.time = time -class WeekDetailsFragment(Model): - """Properties of a weekly schedule. - - :param weekdays: The days of the week for which the schedule is set (e.g. - Sunday, Monday, Tuesday, etc.). - :type weekdays: list[str] - :param time: The time of the day the schedule will occur. - :type time: str - """ - - _attribute_map = { - 'weekdays': {'key': 'weekdays', 'type': '[str]'}, - 'time': {'key': 'time', 'type': 'str'}, - } - - def __init__(self, *, weekdays=None, time: str=None, **kwargs) -> None: - super(WeekDetailsFragment, self).__init__(**kwargs) - self.weekdays = weekdays - self.time = time - - class WindowsOsInfo(Model): """Information about a Windows OS. @@ -5681,22 +4027,3 @@ class WindowsOsInfo(Model): def __init__(self, *, windows_os_state=None, **kwargs) -> None: super(WindowsOsInfo, self).__init__(**kwargs) self.windows_os_state = windows_os_state - - -class WindowsOsInfoFragment(Model): - """Information about a Windows OS. - - :param windows_os_state: The state of the Windows OS (i.e. NonSysprepped, - SysprepRequested, SysprepApplied). Possible values include: - 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' - :type windows_os_state: str or - ~azure.mgmt.devtestlabs.models.WindowsOsState - """ - - _attribute_map = { - 'windows_os_state': {'key': 'windowsOsState', 'type': 'str'}, - } - - def __init__(self, *, windows_os_state=None, **kwargs) -> None: - super(WindowsOsInfoFragment, self).__init__(**kwargs) - self.windows_os_state = windows_os_state diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifact_sources_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifact_sources_operations.py index 6ec87de82fc0..fccc567abce2 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifact_sources_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifact_sources_operations.py @@ -329,7 +329,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'} def update( - self, resource_group_name, lab_name, name, artifact_source, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of artifact sources. All other properties will be ignored. @@ -339,9 +339,8 @@ def update( :type lab_name: str :param name: The name of the artifact source. :type name: str - :param artifact_source: Properties of an artifact source. - :type artifact_source: - ~azure.mgmt.devtestlabs.models.ArtifactSourceFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -352,6 +351,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + artifact_source = models.ArtifactSourceFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_custom_images_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_custom_images_operations.py index 06d30d912df6..f5591e22769b 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_custom_images_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_custom_images_operations.py @@ -393,7 +393,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}'} def update( - self, resource_group_name, lab_name, name, custom_image, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of custom images. All other properties will be ignored. @@ -403,8 +403,8 @@ def update( :type lab_name: str :param name: The name of the custom image. :type name: str - :param custom_image: A custom image. - :type custom_image: ~azure.mgmt.devtestlabs.models.CustomImageFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -415,6 +415,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + custom_image = models.CustomImageFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_disks_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_disks_operations.py index 5e5fea17acdd..323c3dc73830 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_disks_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_disks_operations.py @@ -407,7 +407,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}'} def update( - self, resource_group_name, lab_name, user_name, name, disk, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, user_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of disks. All other properties will be ignored. :param resource_group_name: The name of the resource group. @@ -418,8 +418,8 @@ def update( :type user_name: str :param name: The name of the disk. :type name: str - :param disk: A Disk. - :type disk: ~azure.mgmt.devtestlabs.models.DiskFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -430,6 +430,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + disk = models.DiskFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_environments_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_environments_operations.py index 5805df9f86c1..2e9473a82dd4 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_environments_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_environments_operations.py @@ -408,7 +408,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}'} def update( - self, resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, user_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of environments. All other properties will be ignored. @@ -420,10 +420,8 @@ def update( :type user_name: str :param name: The name of the environment. :type name: str - :param dtl_environment: An environment, which is essentially an ARM - template deployment. - :type dtl_environment: - ~azure.mgmt.devtestlabs.models.DtlEnvironmentFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -434,6 +432,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + dtl_environment = models.DtlEnvironmentFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_formulas_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_formulas_operations.py index 1c0665356f52..23d7d9914785 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_formulas_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_formulas_operations.py @@ -367,7 +367,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'} def update( - self, resource_group_name, lab_name, name, formula, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of formulas. All other properties will be ignored. @@ -377,9 +377,8 @@ def update( :type lab_name: str :param name: The name of the formula. :type name: str - :param formula: A formula for creating a VM, specifying an image base - and other parameters - :type formula: ~azure.mgmt.devtestlabs.models.FormulaFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -390,6 +389,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + formula = models.FormulaFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_global_schedules_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_global_schedules_operations.py index c05fe0f1308e..e1674e2b2c26 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_global_schedules_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_global_schedules_operations.py @@ -405,7 +405,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}'} def update( - self, resource_group_name, name, schedule, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of schedules. All other properties will be ignored. @@ -413,8 +413,8 @@ def update( :type resource_group_name: str :param name: The name of the schedule. :type name: str - :param schedule: A schedule. - :type schedule: ~azure.mgmt.devtestlabs.models.ScheduleFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -425,6 +425,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + schedule = models.ScheduleFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_labs_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_labs_operations.py index a0b03f5a0c53..7afe2a0b1653 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_labs_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_labs_operations.py @@ -465,15 +465,15 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}'} def update( - self, resource_group_name, name, lab, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of labs. All other properties will be ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param name: The name of the lab. :type name: str - :param lab: A lab. - :type lab: ~azure.mgmt.devtestlabs.models.LabFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -484,6 +484,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + lab = models.LabFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_notification_channels_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_notification_channels_operations.py index d0f4de2d054b..224bf185cfd6 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_notification_channels_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_notification_channels_operations.py @@ -330,7 +330,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}'} def update( - self, resource_group_name, lab_name, name, notification_channel, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of notification channels. All other properties will be ignored. @@ -340,9 +340,8 @@ def update( :type lab_name: str :param name: The name of the notification channel. :type name: str - :param notification_channel: A notification. - :type notification_channel: - ~azure.mgmt.devtestlabs.models.NotificationChannelFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -353,6 +352,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + notification_channel = models.NotificationChannelFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_operations.py index 5576b0e6fc0f..8281e0b02a19 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_operations.py @@ -84,7 +84,7 @@ def get( request = self._client.get(url, query_parameters, header_parameters) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200]: + if response.status_code not in [200, 202]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -92,6 +92,8 @@ def get( deserialized = None if response.status_code == 200: deserialized = self._deserialize('OperationResult', response) + if response.status_code == 202: + deserialized = self._deserialize('OperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policies_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policies_operations.py index 90b956a0d88c..8b10ae4e785f 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policies_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policies_operations.py @@ -341,7 +341,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}'} def update( - self, resource_group_name, lab_name, policy_set_name, name, policy, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, policy_set_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of policies. All other properties will be ignored. @@ -353,8 +353,8 @@ def update( :type policy_set_name: str :param name: The name of the policy. :type name: str - :param policy: A Policy. - :type policy: ~azure.mgmt.devtestlabs.models.PolicyFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -365,6 +365,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + policy = models.PolicyFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_schedules_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_schedules_operations.py index 996b11b9e6d4..922195f6d7a7 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_schedules_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_schedules_operations.py @@ -331,7 +331,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}'} def update( - self, resource_group_name, lab_name, name, schedule, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of schedules. All other properties will be ignored. @@ -341,8 +341,8 @@ def update( :type lab_name: str :param name: The name of the schedule. :type name: str - :param schedule: A schedule. - :type schedule: ~azure.mgmt.devtestlabs.models.ScheduleFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -353,6 +353,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + schedule = models.ScheduleFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_secrets_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_secrets_operations.py index aa04f243c68c..5bec00b951ad 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_secrets_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_secrets_operations.py @@ -379,7 +379,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}'} def update( - self, resource_group_name, lab_name, user_name, name, tags=None, value=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, user_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of secrets. All other properties will be ignored. :param resource_group_name: The name of the resource group. @@ -392,8 +392,6 @@ def update( :type name: str :param tags: The tags of the resource. :type tags: dict[str, str] - :param value: The value of the secret for secret creation. - :type value: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -404,7 +402,7 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - secret = models.SecretFragment(tags=tags, value=value) + secret = models.SecretFragment(tags=tags) # Construct URL url = self.update.metadata['url'] diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabric_schedules_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabric_schedules_operations.py index 62ac4ca15eb1..61240435d08a 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabric_schedules_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabric_schedules_operations.py @@ -355,7 +355,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}'} def update( - self, resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, user_name, service_fabric_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of schedules. All other properties will be ignored. @@ -369,8 +369,8 @@ def update( :type service_fabric_name: str :param name: The name of the schedule. :type name: str - :param schedule: A schedule. - :type schedule: ~azure.mgmt.devtestlabs.models.ScheduleFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -381,6 +381,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + schedule = models.ScheduleFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabrics_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabrics_operations.py index f3ef18b8584e..97211f1130ee 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabrics_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabrics_operations.py @@ -407,7 +407,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}'} def update( - self, resource_group_name, lab_name, user_name, name, service_fabric, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, user_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of service fabrics. All other properties will be ignored. @@ -419,9 +419,8 @@ def update( :type user_name: str :param name: The name of the service fabric. :type name: str - :param service_fabric: A Service Fabric. - :type service_fabric: - ~azure.mgmt.devtestlabs.models.ServiceFabricFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -432,6 +431,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + service_fabric = models.ServiceFabricFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_users_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_users_operations.py index 7e4d74c46fab..17c0129100d1 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_users_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_users_operations.py @@ -393,7 +393,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}'} def update( - self, resource_group_name, lab_name, name, user, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of user profiles. All other properties will be ignored. @@ -403,8 +403,8 @@ def update( :type lab_name: str :param name: The name of the user profile. :type name: str - :param user: Profile of a lab user. - :type user: ~azure.mgmt.devtestlabs.models.UserFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -415,6 +415,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + user = models.UserFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machine_schedules_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machine_schedules_operations.py index 080a6514a343..9bdb53e2f1ce 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machine_schedules_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machine_schedules_operations.py @@ -343,7 +343,7 @@ def delete( delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}'} def update( - self, resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, virtual_machine_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of schedules. All other properties will be ignored. @@ -355,8 +355,8 @@ def update( :type virtual_machine_name: str :param name: The name of the schedule. :type name: str - :param schedule: A schedule. - :type schedule: ~azure.mgmt.devtestlabs.models.ScheduleFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -367,6 +367,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + schedule = models.ScheduleFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machines_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machines_operations.py index 32c51685fb71..a63bc823ca25 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machines_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machines_operations.py @@ -394,7 +394,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}'} def update( - self, resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of virtual machines. All other properties will be ignored. @@ -404,9 +404,8 @@ def update( :type lab_name: str :param name: The name of the virtual machine. :type name: str - :param lab_virtual_machine: A virtual machine. - :type lab_virtual_machine: - ~azure.mgmt.devtestlabs.models.LabVirtualMachineFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -417,6 +416,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + lab_virtual_machine = models.LabVirtualMachineFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = { diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_networks_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_networks_operations.py index 659a7cc31b2f..fa2429e61177 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_networks_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_networks_operations.py @@ -393,7 +393,7 @@ def get_long_running_output(response): delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}'} def update( - self, resource_group_name, lab_name, name, virtual_network, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, lab_name, name, tags=None, custom_headers=None, raw=False, **operation_config): """Allows modifying tags of virtual networks. All other properties will be ignored. @@ -403,9 +403,8 @@ def update( :type lab_name: str :param name: The name of the virtual network. :type name: str - :param virtual_network: A virtual network. - :type virtual_network: - ~azure.mgmt.devtestlabs.models.VirtualNetworkFragment + :param tags: The tags of the resource. + :type tags: dict[str, str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -416,6 +415,8 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + virtual_network = models.VirtualNetworkFragment(tags=tags) + # Construct URL url = self.update.metadata['url'] path_format_arguments = {