From 09b6164d15ee1999584cc1b1dc9ce19c9d8d69cb Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 19 Jul 2019 08:56:43 -0700 Subject: [PATCH] [AutoPR devtestlabs/resource-manager] [Hub Generated] Review request for Microsoft.DevTestLab to add version stable/2018-09-15 (#6359) * Generated from c64177b58d5905986be6a16e270986ccfad08d25 Modification of PATCH description, plus minor fixes * Packaging update of azure-mgmt-devtestlabs * Generated from c2786532a6bf80ceb9cddda5e2c8b8abc09d6b30 Update specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json Co-Authored-By: Nick Schonning --- .../azure-mgmt-devtestlabs/MANIFEST.in | 1 + .../azure-mgmt-devtestlabs/README.rst | 2 +- .../azure/mgmt/devtestlabs/__init__.py | 7 +- .../azure/mgmt/devtestlabs/_configuration.py | 48 + ...abs_client.py => _dev_test_labs_client.py} | 86 +- .../azure/mgmt/devtestlabs/models/__init__.py | 744 ++- ...nums.py => _dev_test_labs_client_enums.py} | 2 + .../azure/mgmt/devtestlabs/models/_models.py | 5702 +++++++++++++++++ .../mgmt/devtestlabs/models/_models_py3.py | 5702 +++++++++++++++++ .../mgmt/devtestlabs/models/_paged_models.py | 261 + .../devtestlabs/models/applicable_schedule.py | 59 - .../models/applicable_schedule_fragment.py | 38 - .../applicable_schedule_fragment_py3.py | 38 - .../models/applicable_schedule_py3.py | 59 - .../models/apply_artifacts_request.py | 29 - .../models/apply_artifacts_request_py3.py | 29 - .../mgmt/devtestlabs/models/arm_template.py | 90 - .../devtestlabs/models/arm_template_info.py | 32 - .../models/arm_template_info_py3.py | 32 - .../devtestlabs/models/arm_template_paged.py | 27 - .../arm_template_parameter_properties.py | 32 - ..._template_parameter_properties_fragment.py | 32 - ...plate_parameter_properties_fragment_py3.py | 32 - .../arm_template_parameter_properties_py3.py | 32 - .../devtestlabs/models/arm_template_py3.py | 90 - .../azure/mgmt/devtestlabs/models/artifact.py | 88 - .../artifact_deployment_status_properties.py | 38 - ...t_deployment_status_properties_fragment.py | 38 - ...ployment_status_properties_fragment_py3.py | 38 - ...tifact_deployment_status_properties_py3.py | 38 - .../models/artifact_install_properties.py | 55 - .../artifact_install_properties_fragment.py | 55 - ...rtifact_install_properties_fragment_py3.py | 55 - .../models/artifact_install_properties_py3.py | 55 - .../mgmt/devtestlabs/models/artifact_paged.py | 27 - .../models/artifact_parameter_properties.py | 32 - .../artifact_parameter_properties_fragment.py | 32 - ...ifact_parameter_properties_fragment_py3.py | 32 - .../artifact_parameter_properties_py3.py | 32 - .../mgmt/devtestlabs/models/artifact_py3.py | 88 - .../devtestlabs/models/artifact_source.py | 100 - .../models/artifact_source_fragment.py | 63 - .../models/artifact_source_fragment_py3.py | 63 - .../models/artifact_source_paged.py | 27 - .../devtestlabs/models/artifact_source_py3.py | 100 - .../models/attach_disk_properties.py | 29 - .../models/attach_disk_properties_py3.py | 29 - .../models/attach_new_data_disk_options.py | 37 - .../attach_new_data_disk_options_fragment.py | 37 - ...tach_new_data_disk_options_fragment_py3.py | 37 - .../attach_new_data_disk_options_py3.py | 37 - .../models/bulk_creation_parameters.py | 28 - .../bulk_creation_parameters_fragment.py | 28 - .../bulk_creation_parameters_fragment_py3.py | 28 - .../models/bulk_creation_parameters_py3.py | 28 - .../devtestlabs/models/compute_data_disk.py | 41 - .../models/compute_data_disk_fragment.py | 41 - .../models/compute_data_disk_fragment_py3.py | 41 - .../models/compute_data_disk_py3.py | 41 - .../models/compute_vm_instance_view_status.py | 36 - ...ompute_vm_instance_view_status_fragment.py | 36 - ...te_vm_instance_view_status_fragment_py3.py | 36 - .../compute_vm_instance_view_status_py3.py | 36 - .../models/compute_vm_properties.py | 54 - .../models/compute_vm_properties_fragment.py | 55 - .../compute_vm_properties_fragment_py3.py | 55 - .../models/compute_vm_properties_py3.py | 54 - .../models/cost_threshold_properties.py | 51 - .../models/cost_threshold_properties_py3.py | 51 - .../mgmt/devtestlabs/models/custom_image.py | 106 - .../models/custom_image_fragment.py | 71 - .../models/custom_image_fragment_py3.py | 71 - .../devtestlabs/models/custom_image_paged.py | 27 - .../models/custom_image_properties_custom.py | 43 - ...custom_image_properties_custom_fragment.py | 37 - ...om_image_properties_custom_fragment_py3.py | 37 - .../custom_image_properties_custom_py3.py | 43 - .../custom_image_properties_from_plan.py | 38 - ...tom_image_properties_from_plan_fragment.py | 38 - ...image_properties_from_plan_fragment_py3.py | 38 - .../custom_image_properties_from_plan_py3.py | 38 - .../models/custom_image_properties_from_vm.py | 36 - ...ustom_image_properties_from_vm_fragment.py | 37 - ...m_image_properties_from_vm_fragment_py3.py | 37 - .../custom_image_properties_from_vm_py3.py | 36 - .../devtestlabs/models/custom_image_py3.py | 106 - .../models/data_disk_properties.py | 41 - .../models/data_disk_properties_fragment.py | 41 - .../data_disk_properties_fragment_py3.py | 41 - .../models/data_disk_properties_py3.py | 41 - .../models/data_disk_storage_type_info.py | 33 - .../data_disk_storage_type_info_fragment.py | 33 - ...ata_disk_storage_type_info_fragment_py3.py | 33 - .../models/data_disk_storage_type_info_py3.py | 33 - .../mgmt/devtestlabs/models/day_details.py | 28 - .../models/day_details_fragment.py | 28 - .../models/day_details_fragment_py3.py | 28 - .../devtestlabs/models/day_details_py3.py | 28 - .../models/detach_data_disk_properties.py | 29 - .../models/detach_data_disk_properties_py3.py | 29 - .../models/detach_disk_properties.py | 29 - .../models/detach_disk_properties_py3.py | 29 - .../azure/mgmt/devtestlabs/models/disk.py | 97 - .../mgmt/devtestlabs/models/disk_fragment.py | 60 - .../devtestlabs/models/disk_fragment_py3.py | 60 - .../mgmt/devtestlabs/models/disk_paged.py | 27 - .../azure/mgmt/devtestlabs/models/disk_py3.py | 97 - .../devtestlabs/models/dtl_environment.py | 81 - .../models/dtl_environment_fragment.py | 38 - .../models/dtl_environment_fragment_py3.py | 38 - .../models/dtl_environment_paged.py | 27 - .../devtestlabs/models/dtl_environment_py3.py | 81 - .../environment_deployment_properties.py | 33 - ...ironment_deployment_properties_fragment.py | 33 - ...ment_deployment_properties_fragment_py3.py | 33 - .../environment_deployment_properties_py3.py | 33 - .../models/evaluate_policies_properties.py | 40 - .../evaluate_policies_properties_py3.py | 40 - .../models/evaluate_policies_request.py | 29 - .../models/evaluate_policies_request_py3.py | 29 - .../models/evaluate_policies_response.py | 28 - .../models/evaluate_policies_response_py3.py | 28 - .../azure/mgmt/devtestlabs/models/event.py | 30 - .../mgmt/devtestlabs/models/event_fragment.py | 30 - .../devtestlabs/models/event_fragment_py3.py | 30 - .../mgmt/devtestlabs/models/event_py3.py | 30 - .../export_resource_usage_parameters.py | 35 - .../export_resource_usage_parameters_py3.py | 35 - .../devtestlabs/models/external_subnet.py | 32 - .../models/external_subnet_fragment.py | 32 - .../models/external_subnet_fragment_py3.py | 32 - .../devtestlabs/models/external_subnet_py3.py | 32 - .../azure/mgmt/devtestlabs/models/formula.py | 85 - .../devtestlabs/models/formula_fragment.py | 48 - .../models/formula_fragment_py3.py | 48 - .../mgmt/devtestlabs/models/formula_paged.py | 27 - .../models/formula_properties_from_vm.py | 29 - .../formula_properties_from_vm_fragment.py | 29 - ...formula_properties_from_vm_fragment_py3.py | 29 - .../models/formula_properties_from_vm_py3.py | 29 - .../mgmt/devtestlabs/models/formula_py3.py | 85 - .../mgmt/devtestlabs/models/gallery_image.py | 83 - .../devtestlabs/models/gallery_image_paged.py | 27 - .../devtestlabs/models/gallery_image_py3.py | 83 - .../models/gallery_image_reference.py | 44 - .../gallery_image_reference_fragment.py | 44 - .../gallery_image_reference_fragment_py3.py | 44 - .../models/gallery_image_reference_py3.py | 44 - .../models/generate_arm_template_request.py | 43 - .../generate_arm_template_request_py3.py | 43 - .../models/generate_upload_uri_parameter.py | 28 - .../generate_upload_uri_parameter_py3.py | 28 - .../models/generate_upload_uri_response.py | 28 - .../generate_upload_uri_response_py3.py | 28 - .../mgmt/devtestlabs/models/hour_details.py | 28 - .../models/hour_details_fragment.py | 28 - .../models/hour_details_fragment_py3.py | 28 - .../devtestlabs/models/hour_details_py3.py | 28 - .../devtestlabs/models/identity_properties.py | 40 - .../models/identity_properties_py3.py | 40 - .../import_lab_virtual_machine_request.py | 35 - .../import_lab_virtual_machine_request_py3.py | 35 - .../devtestlabs/models/inbound_nat_rule.py | 42 - .../models/inbound_nat_rule_fragment.py | 42 - .../models/inbound_nat_rule_fragment_py3.py | 42 - .../models/inbound_nat_rule_py3.py | 42 - .../azure/mgmt/devtestlabs/models/lab.py | 165 - .../models/lab_announcement_properties.py | 64 - .../lab_announcement_properties_fragment.py | 47 - ...ab_announcement_properties_fragment_py3.py | 47 - .../models/lab_announcement_properties_py3.py | 64 - .../azure/mgmt/devtestlabs/models/lab_cost.py | 97 - .../models/lab_cost_details_properties.py | 37 - .../models/lab_cost_details_properties_py3.py | 37 - .../mgmt/devtestlabs/models/lab_cost_py3.py | 97 - .../models/lab_cost_summary_properties.py | 28 - .../models/lab_cost_summary_properties_py3.py | 28 - .../mgmt/devtestlabs/models/lab_fragment.py | 78 - .../devtestlabs/models/lab_fragment_py3.py | 78 - .../mgmt/devtestlabs/models/lab_paged.py | 27 - .../azure/mgmt/devtestlabs/models/lab_py3.py | 165 - .../models/lab_resource_cost_properties.py | 63 - .../lab_resource_cost_properties_py3.py | 63 - .../models/lab_support_properties.py | 34 - .../models/lab_support_properties_fragment.py | 34 - .../lab_support_properties_fragment_py3.py | 34 - .../models/lab_support_properties_py3.py | 34 - .../azure/mgmt/devtestlabs/models/lab_vhd.py | 28 - .../mgmt/devtestlabs/models/lab_vhd_paged.py | 27 - .../mgmt/devtestlabs/models/lab_vhd_py3.py | 28 - .../devtestlabs/models/lab_virtual_machine.py | 221 - .../lab_virtual_machine_creation_parameter.py | 192 - ...ual_machine_creation_parameter_fragment.py | 192 - ...machine_creation_parameter_fragment_py3.py | 192 - ..._virtual_machine_creation_parameter_py3.py | 192 - .../models/lab_virtual_machine_fragment.py | 177 - .../lab_virtual_machine_fragment_py3.py | 177 - .../models/lab_virtual_machine_paged.py | 27 - .../models/lab_virtual_machine_py3.py | 221 - .../mgmt/devtestlabs/models/linux_os_info.py | 30 - .../models/linux_os_info_fragment.py | 30 - .../models/linux_os_info_fragment_py3.py | 30 - .../devtestlabs/models/linux_os_info_py3.py | 30 - .../models/network_interface_properties.py | 65 - .../network_interface_properties_fragment.py | 65 - ...twork_interface_properties_fragment_py3.py | 65 - .../network_interface_properties_py3.py | 65 - .../models/notification_channel.py | 86 - .../models/notification_channel_fragment.py | 49 - .../notification_channel_fragment_py3.py | 49 - .../models/notification_channel_paged.py | 27 - .../models/notification_channel_py3.py | 86 - .../models/notification_settings.py | 49 - .../models/notification_settings_fragment.py | 49 - .../notification_settings_fragment_py3.py | 49 - .../models/notification_settings_py3.py | 49 - .../devtestlabs/models/notify_parameters.py | 34 - .../models/notify_parameters_py3.py | 34 - .../devtestlabs/models/operation_error.py | 32 - .../devtestlabs/models/operation_error_py3.py | 32 - .../devtestlabs/models/operation_metadata.py | 32 - .../models/operation_metadata_display.py | 41 - .../models/operation_metadata_display_py3.py | 41 - .../models/operation_metadata_paged.py | 27 - .../models/operation_metadata_py3.py | 32 - .../devtestlabs/models/operation_result.py | 48 - .../models/operation_result_py3.py | 48 - .../mgmt/devtestlabs/models/parameter_info.py | 32 - .../devtestlabs/models/parameter_info_py3.py | 32 - .../models/parameters_value_file_info.py | 32 - .../models/parameters_value_file_info_py3.py | 32 - .../percentage_cost_threshold_properties.py | 28 - ...ercentage_cost_threshold_properties_py3.py | 28 - .../azure/mgmt/devtestlabs/models/policy.py | 97 - .../devtestlabs/models/policy_fragment.py | 60 - .../devtestlabs/models/policy_fragment_py3.py | 60 - .../mgmt/devtestlabs/models/policy_paged.py | 27 - .../mgmt/devtestlabs/models/policy_py3.py | 97 - .../devtestlabs/models/policy_set_result.py | 34 - .../models/policy_set_result_py3.py | 34 - .../devtestlabs/models/policy_violation.py | 32 - .../models/policy_violation_py3.py | 32 - .../azure/mgmt/devtestlabs/models/port.py | 34 - .../mgmt/devtestlabs/models/port_fragment.py | 34 - .../devtestlabs/models/port_fragment_py3.py | 34 - .../azure/mgmt/devtestlabs/models/port_py3.py | 34 - .../mgmt/devtestlabs/models/rdp_connection.py | 28 - .../devtestlabs/models/rdp_connection_py3.py | 28 - .../resize_lab_virtual_machine_properties.py | 28 - ...size_lab_virtual_machine_properties_py3.py | 28 - .../azure/mgmt/devtestlabs/models/resource.py | 53 - .../mgmt/devtestlabs/models/resource_py3.py | 53 - .../models/retarget_schedule_properties.py | 34 - .../retarget_schedule_properties_py3.py | 34 - .../azure/mgmt/devtestlabs/models/schedule.py | 102 - .../models/schedule_creation_parameter.py | 74 - .../schedule_creation_parameter_fragment.py | 76 - ...chedule_creation_parameter_fragment_py3.py | 76 - .../models/schedule_creation_parameter_py3.py | 74 - .../devtestlabs/models/schedule_fragment.py | 67 - .../models/schedule_fragment_py3.py | 67 - .../mgmt/devtestlabs/models/schedule_paged.py | 27 - .../mgmt/devtestlabs/models/schedule_py3.py | 102 - .../azure/mgmt/devtestlabs/models/secret.py | 63 - .../devtestlabs/models/secret_fragment.py | 31 - .../devtestlabs/models/secret_fragment_py3.py | 31 - .../mgmt/devtestlabs/models/secret_paged.py | 27 - .../mgmt/devtestlabs/models/secret_py3.py | 63 - .../mgmt/devtestlabs/models/service_fabric.py | 76 - .../models/service_fabric_fragment.py | 37 - .../models/service_fabric_fragment_py3.py | 37 - .../models/service_fabric_paged.py | 27 - .../devtestlabs/models/service_fabric_py3.py | 76 - .../mgmt/devtestlabs/models/service_runner.py | 52 - .../models/service_runner_paged.py | 27 - .../devtestlabs/models/service_runner_py3.py | 52 - .../shared_public_ip_address_configuration.py | 30 - ...ublic_ip_address_configuration_fragment.py | 30 - ...c_ip_address_configuration_fragment_py3.py | 30 - ...red_public_ip_address_configuration_py3.py | 30 - .../models/shutdown_notification_content.py | 78 - .../shutdown_notification_content_py3.py | 78 - .../azure/mgmt/devtestlabs/models/subnet.py | 39 - .../devtestlabs/models/subnet_fragment.py | 39 - .../devtestlabs/models/subnet_fragment_py3.py | 39 - .../devtestlabs/models/subnet_override.py | 57 - .../models/subnet_override_fragment.py | 57 - .../models/subnet_override_fragment_py3.py | 57 - .../devtestlabs/models/subnet_override_py3.py | 57 - .../mgmt/devtestlabs/models/subnet_py3.py | 39 - ..._shared_public_ip_address_configuration.py | 29 - ...ublic_ip_address_configuration_fragment.py | 29 - ...c_ip_address_configuration_fragment_py3.py | 29 - ...red_public_ip_address_configuration_py3.py | 29 - .../models/target_cost_properties.py | 51 - .../models/target_cost_properties_py3.py | 51 - .../devtestlabs/models/update_resource.py | 28 - .../devtestlabs/models/update_resource_py3.py | 28 - .../azure/mgmt/devtestlabs/models/user.py | 72 - .../mgmt/devtestlabs/models/user_fragment.py | 35 - .../devtestlabs/models/user_fragment_py3.py | 35 - .../mgmt/devtestlabs/models/user_identity.py | 49 - .../models/user_identity_fragment.py | 49 - .../models/user_identity_fragment_py3.py | 49 - .../devtestlabs/models/user_identity_py3.py | 49 - .../mgmt/devtestlabs/models/user_paged.py | 27 - .../azure/mgmt/devtestlabs/models/user_py3.py | 72 - .../devtestlabs/models/user_secret_store.py | 32 - .../models/user_secret_store_fragment.py | 32 - .../models/user_secret_store_fragment_py3.py | 32 - .../models/user_secret_store_py3.py | 32 - .../devtestlabs/models/virtual_network.py | 88 - .../models/virtual_network_fragment.py | 45 - .../models/virtual_network_fragment_py3.py | 45 - .../models/virtual_network_paged.py | 27 - .../devtestlabs/models/virtual_network_py3.py | 88 - .../mgmt/devtestlabs/models/week_details.py | 33 - .../models/week_details_fragment.py | 33 - .../models/week_details_fragment_py3.py | 33 - .../devtestlabs/models/week_details_py3.py | 33 - .../devtestlabs/models/windows_os_info.py | 31 - .../models/windows_os_info_fragment.py | 31 - .../models/windows_os_info_fragment_py3.py | 31 - .../devtestlabs/models/windows_os_info_py3.py | 31 - .../mgmt/devtestlabs/operations/__init__.py | 50 +- ...ations.py => _arm_templates_operations.py} | 19 +- ...ons.py => _artifact_sources_operations.py} | 22 +- ...operations.py => _artifacts_operations.py} | 18 +- ...sts_operations.py => _costs_operations.py} | 4 +- ...ations.py => _custom_images_operations.py} | 21 +- ...sks_operations.py => _disks_operations.py} | 20 +- ...rations.py => _environments_operations.py} | 21 +- ..._operations.py => _formulas_operations.py} | 23 +- ...tions.py => _gallery_images_operations.py} | 16 +- ...ons.py => _global_schedules_operations.py} | 36 +- ...labs_operations.py => _labs_operations.py} | 49 +- ...y => _notification_channels_operations.py} | 34 +- .../{operations.py => _operations.py} | 3 +- ..._operations.py => _policies_operations.py} | 22 +- ...erations.py => _policy_sets_operations.py} | 3 +- ..._operations.py => _provider_operations.py} | 16 +- ...operations.py => _schedules_operations.py} | 36 +- ...s_operations.py => _secrets_operations.py} | 20 +- ...> _service_fabric_schedules_operations.py} | 34 +- ...ions.py => _service_fabrics_operations.py} | 38 +- ...ions.py => _service_runners_operations.py} | 91 +- ...ers_operations.py => _users_operations.py} | 21 +- ... _virtual_machine_schedules_operations.py} | 22 +- ...ons.py => _virtual_machines_operations.py} | 25 +- ...ons.py => _virtual_networks_operations.py} | 21 +- .../azure-mgmt-devtestlabs/setup.py | 2 +- 351 files changed, 12450 insertions(+), 16124 deletions(-) create mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_configuration.py rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/{dev_test_labs_client.py => _dev_test_labs_client.py} (72%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/{dev_test_labs_client_enums.py => _dev_test_labs_client_enums.py} (98%) create mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py create mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py create mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_paged_models.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_paged.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment_py3.py delete mode 100644 sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_py3.py rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{arm_templates_operations.py => _arm_templates_operations.py} (95%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{artifact_sources_operations.py => _artifact_sources_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{artifacts_operations.py => _artifacts_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{costs_operations.py => _costs_operations.py} (98%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{custom_images_operations.py => _custom_images_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{disks_operations.py => _disks_operations.py} (98%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{environments_operations.py => _environments_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{formulas_operations.py => _formulas_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{gallery_images_operations.py => _gallery_images_operations.py} (93%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{global_schedules_operations.py => _global_schedules_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{labs_operations.py => _labs_operations.py} (98%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{notification_channels_operations.py => _notification_channels_operations.py} (96%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{operations.py => _operations.py} (96%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{policies_operations.py => _policies_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{policy_sets_operations.py => _policy_sets_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{provider_operations.py => _provider_operations.py} (90%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{schedules_operations.py => _schedules_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{secrets_operations.py => _secrets_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{service_fabric_schedules_operations.py => _service_fabric_schedules_operations.py} (96%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{service_fabrics_operations.py => _service_fabrics_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{service_runners_operations.py => _service_runners_operations.py} (71%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{users_operations.py => _users_operations.py} (97%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{virtual_machine_schedules_operations.py => _virtual_machine_schedules_operations.py} (98%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{virtual_machines_operations.py => _virtual_machines_operations.py} (99%) rename sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/{virtual_networks_operations.py => _virtual_networks_operations.py} (97%) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in b/sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in index 6ceb27f7a96e..e4884efef41b 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in @@ -1,3 +1,4 @@ +recursive-include tests *.py *.yaml include *.rst include azure/__init__.py include azure/mgmt/__init__.py diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst b/sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst index 3b266c6e0f32..7863788f2412 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure DevTestLabs Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py index 18ce91ae3337..a60396771701 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .dev_test_labs_client import DevTestLabsClient -from .version import VERSION +from ._configuration import DevTestLabsClientConfiguration +from ._dev_test_labs_client import DevTestLabsClient +__all__ = ['DevTestLabsClient', 'DevTestLabsClientConfiguration'] -__all__ = ['DevTestLabsClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_configuration.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_configuration.py new file mode 100644 index 000000000000..ad4e6c48fb8d --- /dev/null +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class DevTestLabsClientConfiguration(AzureConfiguration): + """Configuration for DevTestLabsClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription ID. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(DevTestLabsClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/dev_test_labs_client.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_dev_test_labs_client.py similarity index 72% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/dev_test_labs_client.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_dev_test_labs_client.py index 74bdf0ef0fdc..aa051d2d128d 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/dev_test_labs_client.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_dev_test_labs_client.py @@ -11,66 +11,34 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.provider_operations import ProviderOperations -from .operations.labs_operations import LabsOperations -from .operations.operations import Operations -from .operations.global_schedules_operations import GlobalSchedulesOperations -from .operations.artifact_sources_operations import ArtifactSourcesOperations -from .operations.arm_templates_operations import ArmTemplatesOperations -from .operations.artifacts_operations import ArtifactsOperations -from .operations.costs_operations import CostsOperations -from .operations.custom_images_operations import CustomImagesOperations -from .operations.formulas_operations import FormulasOperations -from .operations.gallery_images_operations import GalleryImagesOperations -from .operations.notification_channels_operations import NotificationChannelsOperations -from .operations.policy_sets_operations import PolicySetsOperations -from .operations.policies_operations import PoliciesOperations -from .operations.schedules_operations import SchedulesOperations -from .operations.service_runners_operations import ServiceRunnersOperations -from .operations.users_operations import UsersOperations -from .operations.disks_operations import DisksOperations -from .operations.environments_operations import EnvironmentsOperations -from .operations.secrets_operations import SecretsOperations -from .operations.service_fabrics_operations import ServiceFabricsOperations -from .operations.service_fabric_schedules_operations import ServiceFabricSchedulesOperations -from .operations.virtual_machines_operations import VirtualMachinesOperations -from .operations.virtual_machine_schedules_operations import VirtualMachineSchedulesOperations -from .operations.virtual_networks_operations import VirtualNetworksOperations -from . import models - - -class DevTestLabsClientConfiguration(AzureConfiguration): - """Configuration for DevTestLabsClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(DevTestLabsClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import DevTestLabsClientConfiguration +from .operations import ProviderOperations +from .operations import LabsOperations +from .operations import Operations +from .operations import GlobalSchedulesOperations +from .operations import ArtifactSourcesOperations +from .operations import ArmTemplatesOperations +from .operations import ArtifactsOperations +from .operations import CostsOperations +from .operations import CustomImagesOperations +from .operations import FormulasOperations +from .operations import GalleryImagesOperations +from .operations import NotificationChannelsOperations +from .operations import PolicySetsOperations +from .operations import PoliciesOperations +from .operations import SchedulesOperations +from .operations import ServiceRunnersOperations +from .operations import UsersOperations +from .operations import DisksOperations +from .operations import EnvironmentsOperations +from .operations import SecretsOperations +from .operations import ServiceFabricsOperations +from .operations import ServiceFabricSchedulesOperations +from .operations import VirtualMachinesOperations +from .operations import VirtualMachineSchedulesOperations +from .operations import VirtualNetworksOperations +from . import models class DevTestLabsClient(SDKClient): 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 56d0fd0fe73f..1bb40772c367 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 @@ -10,322 +10,321 @@ # -------------------------------------------------------------------------- try: - from .week_details_py3 import WeekDetails - from .day_details_py3 import DayDetails - from .hour_details_py3 import HourDetails - from .notification_settings_py3 import NotificationSettings - from .schedule_py3 import Schedule - from .applicable_schedule_py3 import ApplicableSchedule - from .week_details_fragment_py3 import WeekDetailsFragment - from .day_details_fragment_py3 import DayDetailsFragment - from .hour_details_fragment_py3 import HourDetailsFragment - from .notification_settings_fragment_py3 import NotificationSettingsFragment - from .schedule_fragment_py3 import ScheduleFragment - from .applicable_schedule_fragment_py3 import ApplicableScheduleFragment - from .artifact_parameter_properties_py3 import ArtifactParameterProperties - from .artifact_install_properties_py3 import ArtifactInstallProperties - from .apply_artifacts_request_py3 import ApplyArtifactsRequest - from .parameters_value_file_info_py3 import ParametersValueFileInfo - from .arm_template_py3 import ArmTemplate - from .arm_template_info_py3 import ArmTemplateInfo - from .arm_template_parameter_properties_py3 import ArmTemplateParameterProperties - from .arm_template_parameter_properties_fragment_py3 import ArmTemplateParameterPropertiesFragment - from .artifact_py3 import Artifact - from .artifact_deployment_status_properties_py3 import ArtifactDeploymentStatusProperties - from .artifact_deployment_status_properties_fragment_py3 import ArtifactDeploymentStatusPropertiesFragment - from .artifact_parameter_properties_fragment_py3 import ArtifactParameterPropertiesFragment - from .artifact_install_properties_fragment_py3 import ArtifactInstallPropertiesFragment - from .artifact_source_py3 import ArtifactSource - from .artifact_source_fragment_py3 import ArtifactSourceFragment - from .attach_disk_properties_py3 import AttachDiskProperties - from .attach_new_data_disk_options_py3 import AttachNewDataDiskOptions - from .attach_new_data_disk_options_fragment_py3 import AttachNewDataDiskOptionsFragment - from .bulk_creation_parameters_py3 import BulkCreationParameters - from .bulk_creation_parameters_fragment_py3 import BulkCreationParametersFragment - from .compute_data_disk_py3 import ComputeDataDisk - from .compute_data_disk_fragment_py3 import ComputeDataDiskFragment - from .compute_vm_instance_view_status_py3 import ComputeVmInstanceViewStatus - from .compute_vm_instance_view_status_fragment_py3 import ComputeVmInstanceViewStatusFragment - from .compute_vm_properties_py3 import ComputeVmProperties - from .compute_vm_properties_fragment_py3 import ComputeVmPropertiesFragment - from .percentage_cost_threshold_properties_py3 import PercentageCostThresholdProperties - from .cost_threshold_properties_py3 import CostThresholdProperties - from .windows_os_info_py3 import WindowsOsInfo - from .linux_os_info_py3 import LinuxOsInfo - from .custom_image_properties_from_vm_py3 import CustomImagePropertiesFromVm - from .custom_image_properties_custom_py3 import CustomImagePropertiesCustom - from .data_disk_storage_type_info_py3 import DataDiskStorageTypeInfo - from .custom_image_properties_from_plan_py3 import CustomImagePropertiesFromPlan - from .custom_image_py3 import CustomImage - from .windows_os_info_fragment_py3 import WindowsOsInfoFragment - from .linux_os_info_fragment_py3 import LinuxOsInfoFragment - from .custom_image_properties_from_vm_fragment_py3 import CustomImagePropertiesFromVmFragment - from .custom_image_properties_custom_fragment_py3 import CustomImagePropertiesCustomFragment - from .data_disk_storage_type_info_fragment_py3 import DataDiskStorageTypeInfoFragment - from .custom_image_properties_from_plan_fragment_py3 import CustomImagePropertiesFromPlanFragment - from .custom_image_fragment_py3 import CustomImageFragment - from .data_disk_properties_py3 import DataDiskProperties - from .data_disk_properties_fragment_py3 import DataDiskPropertiesFragment - from .detach_data_disk_properties_py3 import DetachDataDiskProperties - from .detach_disk_properties_py3 import DetachDiskProperties - from .disk_py3 import Disk - from .disk_fragment_py3 import DiskFragment - from .environment_deployment_properties_py3 import EnvironmentDeploymentProperties - from .dtl_environment_py3 import DtlEnvironment - from .environment_deployment_properties_fragment_py3 import EnvironmentDeploymentPropertiesFragment - from .dtl_environment_fragment_py3 import DtlEnvironmentFragment - from .evaluate_policies_properties_py3 import EvaluatePoliciesProperties - from .evaluate_policies_request_py3 import EvaluatePoliciesRequest - from .policy_violation_py3 import PolicyViolation - from .policy_set_result_py3 import PolicySetResult - from .evaluate_policies_response_py3 import EvaluatePoliciesResponse - from .event_py3 import Event - from .event_fragment_py3 import EventFragment - from .export_resource_usage_parameters_py3 import ExportResourceUsageParameters - from .external_subnet_py3 import ExternalSubnet - from .external_subnet_fragment_py3 import ExternalSubnetFragment - from .gallery_image_reference_py3 import GalleryImageReference - from .inbound_nat_rule_py3 import InboundNatRule - from .shared_public_ip_address_configuration_py3 import SharedPublicIpAddressConfiguration - from .network_interface_properties_py3 import NetworkInterfaceProperties - from .schedule_creation_parameter_py3 import ScheduleCreationParameter - from .lab_virtual_machine_creation_parameter_py3 import LabVirtualMachineCreationParameter - from .formula_properties_from_vm_py3 import FormulaPropertiesFromVm - from .formula_py3 import Formula - from .gallery_image_reference_fragment_py3 import GalleryImageReferenceFragment - from .inbound_nat_rule_fragment_py3 import InboundNatRuleFragment - from .shared_public_ip_address_configuration_fragment_py3 import SharedPublicIpAddressConfigurationFragment - from .network_interface_properties_fragment_py3 import NetworkInterfacePropertiesFragment - from .schedule_creation_parameter_fragment_py3 import ScheduleCreationParameterFragment - from .lab_virtual_machine_creation_parameter_fragment_py3 import LabVirtualMachineCreationParameterFragment - from .formula_properties_from_vm_fragment_py3 import FormulaPropertiesFromVmFragment - from .formula_fragment_py3 import FormulaFragment - from .gallery_image_py3 import GalleryImage - from .parameter_info_py3 import ParameterInfo - from .generate_arm_template_request_py3 import GenerateArmTemplateRequest - from .generate_upload_uri_parameter_py3 import GenerateUploadUriParameter - from .generate_upload_uri_response_py3 import GenerateUploadUriResponse - from .identity_properties_py3 import IdentityProperties - from .import_lab_virtual_machine_request_py3 import ImportLabVirtualMachineRequest - from .lab_announcement_properties_py3 import LabAnnouncementProperties - from .lab_support_properties_py3 import LabSupportProperties - from .lab_py3 import Lab - from .lab_announcement_properties_fragment_py3 import LabAnnouncementPropertiesFragment - from .target_cost_properties_py3 import TargetCostProperties - from .lab_cost_summary_properties_py3 import LabCostSummaryProperties - from .lab_cost_details_properties_py3 import LabCostDetailsProperties - from .lab_resource_cost_properties_py3 import LabResourceCostProperties - from .lab_cost_py3 import LabCost - from .lab_support_properties_fragment_py3 import LabSupportPropertiesFragment - from .lab_fragment_py3 import LabFragment - from .lab_vhd_py3 import LabVhd - from .lab_virtual_machine_py3 import LabVirtualMachine - from .lab_virtual_machine_fragment_py3 import LabVirtualMachineFragment - from .notification_channel_py3 import NotificationChannel - from .notification_channel_fragment_py3 import NotificationChannelFragment - from .notify_parameters_py3 import NotifyParameters - from .operation_error_py3 import OperationError - from .operation_metadata_display_py3 import OperationMetadataDisplay - from .operation_metadata_py3 import OperationMetadata - from .operation_result_py3 import OperationResult - from .policy_py3 import Policy - from .policy_fragment_py3 import PolicyFragment - from .port_py3 import Port - from .port_fragment_py3 import PortFragment - from .rdp_connection_py3 import RdpConnection - from .resize_lab_virtual_machine_properties_py3 import ResizeLabVirtualMachineProperties - from .resource_py3 import Resource - from .retarget_schedule_properties_py3 import RetargetScheduleProperties - from .secret_py3 import Secret - from .secret_fragment_py3 import SecretFragment - from .service_fabric_py3 import ServiceFabric - from .service_fabric_fragment_py3 import ServiceFabricFragment - from .service_runner_py3 import ServiceRunner - from .shutdown_notification_content_py3 import ShutdownNotificationContent - from .subnet_py3 import Subnet - from .subnet_fragment_py3 import SubnetFragment - from .subnet_shared_public_ip_address_configuration_py3 import SubnetSharedPublicIpAddressConfiguration - from .subnet_override_py3 import SubnetOverride - from .subnet_shared_public_ip_address_configuration_fragment_py3 import SubnetSharedPublicIpAddressConfigurationFragment - from .subnet_override_fragment_py3 import SubnetOverrideFragment - from .update_resource_py3 import UpdateResource - from .user_identity_py3 import UserIdentity - from .user_secret_store_py3 import UserSecretStore - from .user_py3 import User - from .user_identity_fragment_py3 import UserIdentityFragment - from .user_secret_store_fragment_py3 import UserSecretStoreFragment - from .user_fragment_py3 import UserFragment - from .virtual_network_py3 import VirtualNetwork - from .virtual_network_fragment_py3 import VirtualNetworkFragment + from ._models_py3 import ApplicableSchedule + from ._models_py3 import ApplicableScheduleFragment + from ._models_py3 import ApplyArtifactsRequest + 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 + from ._models_py3 import DiskFragment + 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 + from ._models_py3 import OperationMetadataDisplay + from ._models_py3 import OperationResult + from ._models_py3 import ParameterInfo + from ._models_py3 import ParametersValueFileInfo + from ._models_py3 import PercentageCostThresholdProperties + from ._models_py3 import Policy + from ._models_py3 import PolicyFragment + 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 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 .week_details import WeekDetails - from .day_details import DayDetails - from .hour_details import HourDetails - from .notification_settings import NotificationSettings - from .schedule import Schedule - from .applicable_schedule import ApplicableSchedule - from .week_details_fragment import WeekDetailsFragment - from .day_details_fragment import DayDetailsFragment - from .hour_details_fragment import HourDetailsFragment - from .notification_settings_fragment import NotificationSettingsFragment - from .schedule_fragment import ScheduleFragment - from .applicable_schedule_fragment import ApplicableScheduleFragment - from .artifact_parameter_properties import ArtifactParameterProperties - from .artifact_install_properties import ArtifactInstallProperties - from .apply_artifacts_request import ApplyArtifactsRequest - from .parameters_value_file_info import ParametersValueFileInfo - from .arm_template import ArmTemplate - from .arm_template_info import ArmTemplateInfo - from .arm_template_parameter_properties import ArmTemplateParameterProperties - from .arm_template_parameter_properties_fragment import ArmTemplateParameterPropertiesFragment - from .artifact import Artifact - from .artifact_deployment_status_properties import ArtifactDeploymentStatusProperties - from .artifact_deployment_status_properties_fragment import ArtifactDeploymentStatusPropertiesFragment - from .artifact_parameter_properties_fragment import ArtifactParameterPropertiesFragment - from .artifact_install_properties_fragment import ArtifactInstallPropertiesFragment - from .artifact_source import ArtifactSource - from .artifact_source_fragment import ArtifactSourceFragment - from .attach_disk_properties import AttachDiskProperties - from .attach_new_data_disk_options import AttachNewDataDiskOptions - from .attach_new_data_disk_options_fragment import AttachNewDataDiskOptionsFragment - from .bulk_creation_parameters import BulkCreationParameters - from .bulk_creation_parameters_fragment import BulkCreationParametersFragment - from .compute_data_disk import ComputeDataDisk - from .compute_data_disk_fragment import ComputeDataDiskFragment - from .compute_vm_instance_view_status import ComputeVmInstanceViewStatus - from .compute_vm_instance_view_status_fragment import ComputeVmInstanceViewStatusFragment - from .compute_vm_properties import ComputeVmProperties - from .compute_vm_properties_fragment import ComputeVmPropertiesFragment - from .percentage_cost_threshold_properties import PercentageCostThresholdProperties - from .cost_threshold_properties import CostThresholdProperties - from .windows_os_info import WindowsOsInfo - from .linux_os_info import LinuxOsInfo - from .custom_image_properties_from_vm import CustomImagePropertiesFromVm - from .custom_image_properties_custom import CustomImagePropertiesCustom - from .data_disk_storage_type_info import DataDiskStorageTypeInfo - from .custom_image_properties_from_plan import CustomImagePropertiesFromPlan - from .custom_image import CustomImage - from .windows_os_info_fragment import WindowsOsInfoFragment - from .linux_os_info_fragment import LinuxOsInfoFragment - from .custom_image_properties_from_vm_fragment import CustomImagePropertiesFromVmFragment - from .custom_image_properties_custom_fragment import CustomImagePropertiesCustomFragment - from .data_disk_storage_type_info_fragment import DataDiskStorageTypeInfoFragment - from .custom_image_properties_from_plan_fragment import CustomImagePropertiesFromPlanFragment - from .custom_image_fragment import CustomImageFragment - from .data_disk_properties import DataDiskProperties - from .data_disk_properties_fragment import DataDiskPropertiesFragment - from .detach_data_disk_properties import DetachDataDiskProperties - from .detach_disk_properties import DetachDiskProperties - from .disk import Disk - from .disk_fragment import DiskFragment - from .environment_deployment_properties import EnvironmentDeploymentProperties - from .dtl_environment import DtlEnvironment - from .environment_deployment_properties_fragment import EnvironmentDeploymentPropertiesFragment - from .dtl_environment_fragment import DtlEnvironmentFragment - from .evaluate_policies_properties import EvaluatePoliciesProperties - from .evaluate_policies_request import EvaluatePoliciesRequest - from .policy_violation import PolicyViolation - from .policy_set_result import PolicySetResult - from .evaluate_policies_response import EvaluatePoliciesResponse - from .event import Event - from .event_fragment import EventFragment - from .export_resource_usage_parameters import ExportResourceUsageParameters - from .external_subnet import ExternalSubnet - from .external_subnet_fragment import ExternalSubnetFragment - from .gallery_image_reference import GalleryImageReference - from .inbound_nat_rule import InboundNatRule - from .shared_public_ip_address_configuration import SharedPublicIpAddressConfiguration - from .network_interface_properties import NetworkInterfaceProperties - from .schedule_creation_parameter import ScheduleCreationParameter - from .lab_virtual_machine_creation_parameter import LabVirtualMachineCreationParameter - from .formula_properties_from_vm import FormulaPropertiesFromVm - from .formula import Formula - from .gallery_image_reference_fragment import GalleryImageReferenceFragment - from .inbound_nat_rule_fragment import InboundNatRuleFragment - from .shared_public_ip_address_configuration_fragment import SharedPublicIpAddressConfigurationFragment - from .network_interface_properties_fragment import NetworkInterfacePropertiesFragment - from .schedule_creation_parameter_fragment import ScheduleCreationParameterFragment - from .lab_virtual_machine_creation_parameter_fragment import LabVirtualMachineCreationParameterFragment - from .formula_properties_from_vm_fragment import FormulaPropertiesFromVmFragment - from .formula_fragment import FormulaFragment - from .gallery_image import GalleryImage - from .parameter_info import ParameterInfo - from .generate_arm_template_request import GenerateArmTemplateRequest - from .generate_upload_uri_parameter import GenerateUploadUriParameter - from .generate_upload_uri_response import GenerateUploadUriResponse - from .identity_properties import IdentityProperties - from .import_lab_virtual_machine_request import ImportLabVirtualMachineRequest - from .lab_announcement_properties import LabAnnouncementProperties - from .lab_support_properties import LabSupportProperties - from .lab import Lab - from .lab_announcement_properties_fragment import LabAnnouncementPropertiesFragment - from .target_cost_properties import TargetCostProperties - from .lab_cost_summary_properties import LabCostSummaryProperties - from .lab_cost_details_properties import LabCostDetailsProperties - from .lab_resource_cost_properties import LabResourceCostProperties - from .lab_cost import LabCost - from .lab_support_properties_fragment import LabSupportPropertiesFragment - from .lab_fragment import LabFragment - from .lab_vhd import LabVhd - from .lab_virtual_machine import LabVirtualMachine - from .lab_virtual_machine_fragment import LabVirtualMachineFragment - from .notification_channel import NotificationChannel - from .notification_channel_fragment import NotificationChannelFragment - from .notify_parameters import NotifyParameters - from .operation_error import OperationError - from .operation_metadata_display import OperationMetadataDisplay - from .operation_metadata import OperationMetadata - from .operation_result import OperationResult - from .policy import Policy - from .policy_fragment import PolicyFragment - from .port import Port - from .port_fragment import PortFragment - from .rdp_connection import RdpConnection - from .resize_lab_virtual_machine_properties import ResizeLabVirtualMachineProperties - from .resource import Resource - from .retarget_schedule_properties import RetargetScheduleProperties - from .secret import Secret - from .secret_fragment import SecretFragment - from .service_fabric import ServiceFabric - from .service_fabric_fragment import ServiceFabricFragment - from .service_runner import ServiceRunner - from .shutdown_notification_content import ShutdownNotificationContent - from .subnet import Subnet - from .subnet_fragment import SubnetFragment - from .subnet_shared_public_ip_address_configuration import SubnetSharedPublicIpAddressConfiguration - from .subnet_override import SubnetOverride - from .subnet_shared_public_ip_address_configuration_fragment import SubnetSharedPublicIpAddressConfigurationFragment - from .subnet_override_fragment import SubnetOverrideFragment - from .update_resource import UpdateResource - from .user_identity import UserIdentity - from .user_secret_store import UserSecretStore - from .user import User - from .user_identity_fragment import UserIdentityFragment - from .user_secret_store_fragment import UserSecretStoreFragment - from .user_fragment import UserFragment - from .virtual_network import VirtualNetwork - from .virtual_network_fragment import VirtualNetworkFragment -from .operation_metadata_paged import OperationMetadataPaged -from .lab_paged import LabPaged -from .lab_vhd_paged import LabVhdPaged -from .schedule_paged import SchedulePaged -from .artifact_source_paged import ArtifactSourcePaged -from .arm_template_paged import ArmTemplatePaged -from .artifact_paged import ArtifactPaged -from .custom_image_paged import CustomImagePaged -from .formula_paged import FormulaPaged -from .gallery_image_paged import GalleryImagePaged -from .notification_channel_paged import NotificationChannelPaged -from .policy_paged import PolicyPaged -from .service_runner_paged import ServiceRunnerPaged -from .user_paged import UserPaged -from .disk_paged import DiskPaged -from .dtl_environment_paged import DtlEnvironmentPaged -from .secret_paged import SecretPaged -from .service_fabric_paged import ServiceFabricPaged -from .lab_virtual_machine_paged import LabVirtualMachinePaged -from .virtual_network_paged import VirtualNetworkPaged -from .dev_test_labs_client_enums import ( + from ._models import ApplicableSchedule + from ._models import ApplicableScheduleFragment + from ._models import ApplyArtifactsRequest + 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 + from ._models import DiskFragment + 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 + from ._models import OperationMetadataDisplay + from ._models import OperationResult + from ._models import ParameterInfo + from ._models import ParametersValueFileInfo + from ._models import PercentageCostThresholdProperties + from ._models import Policy + from ._models import PolicyFragment + 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 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 +from ._paged_models import CustomImagePaged +from ._paged_models import DiskPaged +from ._paged_models import DtlEnvironmentPaged +from ._paged_models import FormulaPaged +from ._paged_models import GalleryImagePaged +from ._paged_models import LabPaged +from ._paged_models import LabVhdPaged +from ._paged_models import LabVirtualMachinePaged +from ._paged_models import NotificationChannelPaged +from ._paged_models import OperationMetadataPaged +from ._paged_models import PolicyPaged +from ._paged_models import SchedulePaged +from ._paged_models import SecretPaged +from ._paged_models import ServiceFabricPaged +from ._paged_models import UserPaged +from ._paged_models import VirtualNetworkPaged +from ._dev_test_labs_client_enums import ( EnableStatus, SourceControlType, StorageType, @@ -351,22 +350,9 @@ ) __all__ = [ - 'WeekDetails', - 'DayDetails', - 'HourDetails', - 'NotificationSettings', - 'Schedule', 'ApplicableSchedule', - 'WeekDetailsFragment', - 'DayDetailsFragment', - 'HourDetailsFragment', - 'NotificationSettingsFragment', - 'ScheduleFragment', 'ApplicableScheduleFragment', - 'ArtifactParameterProperties', - 'ArtifactInstallProperties', 'ApplyArtifactsRequest', - 'ParametersValueFileInfo', 'ArmTemplate', 'ArmTemplateInfo', 'ArmTemplateParameterProperties', @@ -374,8 +360,10 @@ 'Artifact', 'ArtifactDeploymentStatusProperties', 'ArtifactDeploymentStatusPropertiesFragment', - 'ArtifactParameterPropertiesFragment', + 'ArtifactInstallProperties', 'ArtifactInstallPropertiesFragment', + 'ArtifactParameterProperties', + 'ArtifactParameterPropertiesFragment', 'ArtifactSource', 'ArtifactSourceFragment', 'AttachDiskProperties', @@ -389,115 +377,126 @@ 'ComputeVmInstanceViewStatusFragment', 'ComputeVmProperties', 'ComputeVmPropertiesFragment', - 'PercentageCostThresholdProperties', 'CostThresholdProperties', - 'WindowsOsInfo', - 'LinuxOsInfo', - 'CustomImagePropertiesFromVm', - 'CustomImagePropertiesCustom', - 'DataDiskStorageTypeInfo', - 'CustomImagePropertiesFromPlan', 'CustomImage', - 'WindowsOsInfoFragment', - 'LinuxOsInfoFragment', - 'CustomImagePropertiesFromVmFragment', + 'CustomImageFragment', + 'CustomImagePropertiesCustom', 'CustomImagePropertiesCustomFragment', - 'DataDiskStorageTypeInfoFragment', + 'CustomImagePropertiesFromPlan', 'CustomImagePropertiesFromPlanFragment', - 'CustomImageFragment', + 'CustomImagePropertiesFromVm', + 'CustomImagePropertiesFromVmFragment', 'DataDiskProperties', 'DataDiskPropertiesFragment', + 'DataDiskStorageTypeInfo', + 'DataDiskStorageTypeInfoFragment', + 'DayDetails', + 'DayDetailsFragment', 'DetachDataDiskProperties', 'DetachDiskProperties', 'Disk', 'DiskFragment', - 'EnvironmentDeploymentProperties', 'DtlEnvironment', - 'EnvironmentDeploymentPropertiesFragment', 'DtlEnvironmentFragment', + 'EnvironmentDeploymentProperties', + 'EnvironmentDeploymentPropertiesFragment', 'EvaluatePoliciesProperties', 'EvaluatePoliciesRequest', - 'PolicyViolation', - 'PolicySetResult', 'EvaluatePoliciesResponse', 'Event', 'EventFragment', 'ExportResourceUsageParameters', 'ExternalSubnet', 'ExternalSubnetFragment', - 'GalleryImageReference', - 'InboundNatRule', - 'SharedPublicIpAddressConfiguration', - 'NetworkInterfaceProperties', - 'ScheduleCreationParameter', - 'LabVirtualMachineCreationParameter', - 'FormulaPropertiesFromVm', 'Formula', - 'GalleryImageReferenceFragment', - 'InboundNatRuleFragment', - 'SharedPublicIpAddressConfigurationFragment', - 'NetworkInterfacePropertiesFragment', - 'ScheduleCreationParameterFragment', - 'LabVirtualMachineCreationParameterFragment', - 'FormulaPropertiesFromVmFragment', 'FormulaFragment', + 'FormulaPropertiesFromVm', + 'FormulaPropertiesFromVmFragment', 'GalleryImage', - 'ParameterInfo', + 'GalleryImageReference', + 'GalleryImageReferenceFragment', 'GenerateArmTemplateRequest', 'GenerateUploadUriParameter', 'GenerateUploadUriResponse', + 'HourDetails', + 'HourDetailsFragment', 'IdentityProperties', 'ImportLabVirtualMachineRequest', - 'LabAnnouncementProperties', - 'LabSupportProperties', + 'InboundNatRule', + 'InboundNatRuleFragment', 'Lab', + 'LabAnnouncementProperties', 'LabAnnouncementPropertiesFragment', - 'TargetCostProperties', - 'LabCostSummaryProperties', + 'LabCost', 'LabCostDetailsProperties', + 'LabCostSummaryProperties', + 'LabFragment', 'LabResourceCostProperties', - 'LabCost', + 'LabSupportProperties', 'LabSupportPropertiesFragment', - 'LabFragment', 'LabVhd', 'LabVirtualMachine', + 'LabVirtualMachineCreationParameter', + 'LabVirtualMachineCreationParameterFragment', 'LabVirtualMachineFragment', + 'LinuxOsInfo', + 'LinuxOsInfoFragment', + 'NetworkInterfaceProperties', + 'NetworkInterfacePropertiesFragment', 'NotificationChannel', 'NotificationChannelFragment', + 'NotificationSettings', + 'NotificationSettingsFragment', 'NotifyParameters', 'OperationError', - 'OperationMetadataDisplay', 'OperationMetadata', + 'OperationMetadataDisplay', 'OperationResult', + 'ParameterInfo', + 'ParametersValueFileInfo', + 'PercentageCostThresholdProperties', 'Policy', 'PolicyFragment', + 'PolicySetResult', + 'PolicyViolation', 'Port', 'PortFragment', 'RdpConnection', 'ResizeLabVirtualMachineProperties', 'Resource', 'RetargetScheduleProperties', + 'Schedule', + 'ScheduleCreationParameter', + 'ScheduleCreationParameterFragment', + 'ScheduleFragment', 'Secret', 'SecretFragment', 'ServiceFabric', 'ServiceFabricFragment', 'ServiceRunner', + 'SharedPublicIpAddressConfiguration', + 'SharedPublicIpAddressConfigurationFragment', 'ShutdownNotificationContent', 'Subnet', 'SubnetFragment', - 'SubnetSharedPublicIpAddressConfiguration', 'SubnetOverride', - 'SubnetSharedPublicIpAddressConfigurationFragment', 'SubnetOverrideFragment', + 'SubnetSharedPublicIpAddressConfiguration', + 'SubnetSharedPublicIpAddressConfigurationFragment', + 'TargetCostProperties', 'UpdateResource', - 'UserIdentity', - 'UserSecretStore', 'User', + 'UserFragment', + 'UserIdentity', 'UserIdentityFragment', + 'UserSecretStore', 'UserSecretStoreFragment', - 'UserFragment', 'VirtualNetwork', 'VirtualNetworkFragment', + 'WeekDetails', + 'WeekDetailsFragment', + 'WindowsOsInfo', + 'WindowsOsInfoFragment', 'OperationMetadataPaged', 'LabPaged', 'LabVhdPaged', @@ -510,7 +509,6 @@ 'GalleryImagePaged', 'NotificationChannelPaged', 'PolicyPaged', - 'ServiceRunnerPaged', 'UserPaged', 'DiskPaged', 'DtlEnvironmentPaged', 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 similarity index 98% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dev_test_labs_client_enums.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_dev_test_labs_client_enums.py index 035e4b81b91c..6a60d733ee01 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 @@ -28,6 +28,7 @@ class StorageType(str, Enum): standard = "Standard" premium = "Premium" + standard_ssd = "StandardSSD" class CostThresholdStatus(str, Enum): @@ -80,6 +81,7 @@ class VirtualMachineCreationSource(str, Enum): from_custom_image = "FromCustomImage" from_gallery_image = "FromGalleryImage" + from_shared_gallery_image = "FromSharedGalleryImage" class FileUploadOptions(str, Enum): 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 new file mode 100644 index 000000000000..cd489495c90c --- /dev/null +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models.py @@ -0,0 +1,5702 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """An Azure resource. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class ApplicableSchedule(Resource): + """Schedules applicable to a virtual machine. The schedules may have been + defined on a VM or on lab level. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The identifier of the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Schedule + :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.Schedule + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'Schedule'}, + 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'Schedule'}, + } + + def __init__(self, **kwargs): + super(ApplicableSchedule, self).__init__(**kwargs) + self.lab_vms_shutdown = kwargs.get('lab_vms_shutdown', None) + self.lab_vms_startup = kwargs.get('lab_vms_startup', None) + + +class UpdateResource(Model): + """Represents an update resource. + + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(UpdateResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class ApplicableScheduleFragment(UpdateResource): + """Schedules applicable to a virtual machine. The schedules may have been + defined on a VM or on lab level. + + :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): + """Request body for applying artifacts to a virtual machine. + + :param artifacts: The list of artifacts to apply. + :type artifacts: + list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactInstallProperties]'}, + } + + def __init__(self, **kwargs): + super(ApplyArtifactsRequest, self).__init__(**kwargs) + self.artifacts = kwargs.get('artifacts', None) + + +class ArmTemplate(Resource): + """An Azure Resource Manager template. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar display_name: The display name of the ARM template. + :vartype display_name: str + :ivar description: The description of the ARM template. + :vartype description: str + :ivar publisher: The publisher of the ARM template. + :vartype publisher: str + :ivar icon: The URI to the icon of the ARM template. + :vartype icon: str + :ivar contents: The contents of the ARM template. + :vartype contents: object + :ivar created_date: The creation date of the armTemplate. + :vartype created_date: datetime + :ivar parameters_value_files_info: File name and parameter values + information from all azuredeploy.*.parameters.json for the ARM template. + :vartype parameters_value_files_info: + list[~azure.mgmt.devtestlabs.models.ParametersValueFileInfo] + :ivar enabled: Whether or not ARM template is enabled for use by lab user. + :vartype enabled: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'description': {'readonly': True}, + 'publisher': {'readonly': True}, + 'icon': {'readonly': True}, + 'contents': {'readonly': True}, + 'created_date': {'readonly': True}, + 'parameters_value_files_info': {'readonly': True}, + 'enabled': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'contents': {'key': 'properties.contents', 'type': 'object'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'parameters_value_files_info': {'key': 'properties.parametersValueFilesInfo', 'type': '[ParametersValueFileInfo]'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ArmTemplate, self).__init__(**kwargs) + self.display_name = None + self.description = None + self.publisher = None + self.icon = None + self.contents = None + self.created_date = None + self.parameters_value_files_info = None + self.enabled = None + + +class ArmTemplateInfo(Model): + """Information about a generated ARM template. + + :param template: The template's contents. + :type template: object + :param parameters: The parameters of the ARM template. + :type parameters: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ArmTemplateInfo, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.parameters = kwargs.get('parameters', None) + + +class ArmTemplateParameterProperties(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(ArmTemplateParameterProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar title: The artifact's title. + :vartype title: str + :ivar description: The artifact's description. + :vartype description: str + :ivar publisher: The artifact's publisher. + :vartype publisher: str + :ivar file_path: The file path to the artifact. + :vartype file_path: str + :ivar icon: The URI to the artifact icon. + :vartype icon: str + :ivar target_os_type: The artifact's target OS. + :vartype target_os_type: str + :ivar parameters: The artifact's parameters. + :vartype parameters: object + :ivar created_date: The artifact's creation date. + :vartype created_date: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'title': {'readonly': True}, + 'description': {'readonly': True}, + 'publisher': {'readonly': True}, + 'file_path': {'readonly': True}, + 'icon': {'readonly': True}, + 'target_os_type': {'readonly': True}, + 'parameters': {'readonly': True}, + 'created_date': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'target_os_type': {'key': 'properties.targetOsType', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(Artifact, self).__init__(**kwargs) + self.title = None + self.description = None + self.publisher = None + self.file_path = None + self.icon = None + self.target_os_type = None + self.parameters = None + self.created_date = None + + +class ArtifactDeploymentStatusProperties(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(ArtifactDeploymentStatusProperties, 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 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. + + :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.ArtifactParameterProperties] + :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': '[ArtifactParameterProperties]'}, + '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(ArtifactInstallProperties, 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 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. + + :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(ArtifactParameterProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar created_date: The artifact source's creation date. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ArtifactSource, 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) + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class ArtifactSourceFragment(UpdateResource): + """Properties of an artifact source. + + :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): + """Properties of the disk to attach. + + :param leased_by_lab_vm_id: The resource ID of the Lab virtual machine to + which the disk is attached. + :type leased_by_lab_vm_id: str + """ + + _attribute_map = { + 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AttachDiskProperties, self).__init__(**kwargs) + self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', 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. + :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(AttachNewDataDiskOptions, 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 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. + + :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(BulkCreationParameters, self).__init__(**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. + + :param error: The cloud error that occurred + :type error: ~azure.mgmt.devtestlabs.models.CloudErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, **kwargs): + super(CloudError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class CloudErrorException(HttpOperationError): + """Server responsed with exception of type: 'CloudError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) + + +class CloudErrorBody(Model): + """Body of an error from a REST request. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + :param target: The error target. + :type target: str + :param details: Inner errors. + :type details: list[~azure.mgmt.devtestlabs.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__(self, **kwargs): + super(CloudErrorBody, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class ComputeDataDisk(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(ComputeDataDisk, 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 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. + + :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(ComputeVmInstanceViewStatus, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.display_status = kwargs.get('display_status', None) + 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. + + :param statuses: Gets the statuses of the virtual machine. + :type statuses: + list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus] + :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.ComputeDataDisk] + """ + + _attribute_map = { + 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatus]'}, + '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': '[ComputeDataDisk]'}, + } + + def __init__(self, **kwargs): + super(ComputeVmProperties, 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 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. + + :param threshold_id: The ID of the cost threshold item. + :type threshold_id: str + :param percentage_threshold: The value of the percentage cost threshold. + :type percentage_threshold: + ~azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties + :param display_on_chart: Indicates whether this threshold will be + displayed on cost charts. Possible values include: 'Enabled', 'Disabled' + :type display_on_chart: str or + ~azure.mgmt.devtestlabs.models.CostThresholdStatus + :param send_notification_when_exceeded: Indicates whether notifications + will be sent when this threshold is exceeded. Possible values include: + 'Enabled', 'Disabled' + :type send_notification_when_exceeded: str or + ~azure.mgmt.devtestlabs.models.CostThresholdStatus + :param notification_sent: Indicates the datetime when notifications were + last sent for this threshold. + :type notification_sent: str + """ + + _attribute_map = { + 'threshold_id': {'key': 'thresholdId', 'type': 'str'}, + 'percentage_threshold': {'key': 'percentageThreshold', 'type': 'PercentageCostThresholdProperties'}, + 'display_on_chart': {'key': 'displayOnChart', 'type': 'str'}, + 'send_notification_when_exceeded': {'key': 'sendNotificationWhenExceeded', 'type': 'str'}, + 'notification_sent': {'key': 'notificationSent', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CostThresholdProperties, self).__init__(**kwargs) + self.threshold_id = kwargs.get('threshold_id', None) + self.percentage_threshold = kwargs.get('percentage_threshold', None) + self.display_on_chart = kwargs.get('display_on_chart', None) + self.send_notification_when_exceeded = kwargs.get('send_notification_when_exceeded', None) + self.notification_sent = kwargs.get('notification_sent', None) + + +class CustomImage(Resource): + """A custom image. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.CustomImagePropertiesFromVm + :param vhd: The VHD from which the image is to be created. + :type vhd: ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom + :param description: The description of the custom image. + :type description: str + :param author: The author of the custom image. + :type author: str + :ivar creation_date: The creation date of the custom image. + :vartype creation_date: datetime + :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.DataDiskStorageTypeInfo] + :param custom_image_plan: Storage information about the plan related to + this custom image + :type custom_image_plan: + ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlan + :param is_plan_authorized: Whether or not the custom images underlying + offer/plan has been enabled for programmatic deployment + :type is_plan_authorized: bool + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVm'}, + 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustom'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, + 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, + 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfo]'}, + 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlan'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CustomImage, 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.creation_date = 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) + self.provisioning_state = None + self.unique_identifier = None + + +class CustomImageFragment(UpdateResource): + """A custom image. + + :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): + """Properties for creating a custom image from a VHD. + + All required parameters must be populated in order to send to Azure. + + :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: Required. 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 + """ + + _validation = { + 'os_type': {'required': True}, + } + + _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(CustomImagePropertiesCustom, 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 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. + + :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(CustomImagePropertiesFromPlan, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.publisher = kwargs.get('publisher', None) + 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. + + :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.WindowsOsInfo + :param linux_os_info: The Linux OS information of the VM. + :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfo + """ + + _attribute_map = { + 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, + 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfo'}, + 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfo'}, + } + + def __init__(self, **kwargs): + super(CustomImagePropertiesFromVm, 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 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. + + :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.AttachNewDataDiskOptions + :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': 'AttachNewDataDiskOptions'}, + 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, + 'host_caching': {'key': 'hostCaching', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataDiskProperties, 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 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. + + :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(DataDiskStorageTypeInfo, self).__init__(**kwargs) + self.lun = kwargs.get('lun', None) + 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. + + :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(DayDetails, self).__init__(**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. + + :param existing_lab_disk_id: Specifies the disk resource ID to detach from + virtual machine. + :type existing_lab_disk_id: str + """ + + _attribute_map = { + 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DetachDataDiskProperties, self).__init__(**kwargs) + self.existing_lab_disk_id = kwargs.get('existing_lab_disk_id', None) + + +class DetachDiskProperties(Model): + """Properties of the disk to detach. + + :param leased_by_lab_vm_id: The resource ID of the Lab VM to which the + disk is attached. + :type leased_by_lab_vm_id: str + """ + + _attribute_map = { + 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DetachDiskProperties, self).__init__(**kwargs) + self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', None) + + +class Disk(Resource): + """A Disk. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :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, + 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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, + 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Disk, 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.created_date = None + self.host_caching = kwargs.get('host_caching', None) + self.managed_disk_id = kwargs.get('managed_disk_id', None) + self.provisioning_state = None + self.unique_identifier = None + + +class DiskFragment(UpdateResource): + """A Disk. + + :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): + """An environment, which is essentially an ARM template deployment. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.EnvironmentDeploymentProperties + :param arm_template_display_name: The display name of the Azure Resource + Manager template that produced the environment. + :type arm_template_display_name: str + :ivar resource_group_id: The identifier of the resource group containing + the environment's resources. + :vartype resource_group_id: str + :ivar created_by_user: The creator of the environment. + :vartype created_by_user: str + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_group_id': {'readonly': True}, + 'created_by_user': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentProperties'}, + 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, + 'resource_group_id': {'key': 'properties.resourceGroupId', 'type': 'str'}, + 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DtlEnvironment, self).__init__(**kwargs) + self.deployment_properties = kwargs.get('deployment_properties', None) + self.arm_template_display_name = kwargs.get('arm_template_display_name', None) + self.resource_group_id = None + self.created_by_user = None + self.provisioning_state = None + self.unique_identifier = None + + +class DtlEnvironmentFragment(UpdateResource): + """An environment, which is essentially an ARM template deployment. + + :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): + """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.ArmTemplateParameterProperties] + """ + + _attribute_map = { + 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterProperties]'}, + } + + def __init__(self, **kwargs): + super(EnvironmentDeploymentProperties, self).__init__(**kwargs) + self.arm_template_id = kwargs.get('arm_template_id', None) + 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. + + :param fact_name: The fact name. + :type fact_name: str + :param fact_data: The fact data. + :type fact_data: str + :param value_offset: The value offset. + :type value_offset: str + :param user_object_id: The user for which policies will be evaluated + :type user_object_id: str + """ + + _attribute_map = { + 'fact_name': {'key': 'factName', 'type': 'str'}, + 'fact_data': {'key': 'factData', 'type': 'str'}, + 'value_offset': {'key': 'valueOffset', 'type': 'str'}, + 'user_object_id': {'key': 'userObjectId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EvaluatePoliciesProperties, self).__init__(**kwargs) + self.fact_name = kwargs.get('fact_name', None) + self.fact_data = kwargs.get('fact_data', None) + self.value_offset = kwargs.get('value_offset', None) + self.user_object_id = kwargs.get('user_object_id', None) + + +class EvaluatePoliciesRequest(Model): + """Request body for evaluating a policy set. + + :param policies: Policies to evaluate. + :type policies: + list[~azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties] + """ + + _attribute_map = { + 'policies': {'key': 'policies', 'type': '[EvaluatePoliciesProperties]'}, + } + + def __init__(self, **kwargs): + super(EvaluatePoliciesRequest, self).__init__(**kwargs) + self.policies = kwargs.get('policies', None) + + +class EvaluatePoliciesResponse(Model): + """Response body for evaluating a policy set. + + :param results: Results of evaluating a policy set. + :type results: list[~azure.mgmt.devtestlabs.models.PolicySetResult] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PolicySetResult]'}, + } + + def __init__(self, **kwargs): + super(EvaluatePoliciesResponse, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class Event(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(Event, self).__init__(**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. + + :param blob_storage_absolute_sas_uri: The blob storage absolute sas uri + with write permission to the container which the usage data needs to be + uploaded to. + :type blob_storage_absolute_sas_uri: str + :param usage_start_date: The start time of the usage. If not provided, + usage will be reported since the beginning of data collection. + :type usage_start_date: datetime + """ + + _attribute_map = { + 'blob_storage_absolute_sas_uri': {'key': 'blobStorageAbsoluteSasUri', 'type': 'str'}, + 'usage_start_date': {'key': 'usageStartDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(ExportResourceUsageParameters, self).__init__(**kwargs) + self.blob_storage_absolute_sas_uri = kwargs.get('blob_storage_absolute_sas_uri', None) + self.usage_start_date = kwargs.get('usage_start_date', None) + + +class ExternalSubnet(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(ExternalSubnet, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar creation_date: The creation date of the formula. + :vartype creation_date: datetime + :param formula_content: The content of the formula. + :type formula_content: + ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter + :param vm: Information about a VM from which a formula is to be created. + :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameter'}, + 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVm'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Formula, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.author = kwargs.get('author', None) + self.os_type = kwargs.get('os_type', None) + self.creation_date = None + self.formula_content = kwargs.get('formula_content', None) + self.vm = kwargs.get('vm', None) + self.provisioning_state = None + self.unique_identifier = None + + +class FormulaFragment(UpdateResource): + """A formula for creating a VM, specifying an image base and other parameters. + + :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): + """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(FormulaPropertiesFromVm, self).__init__(**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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param author: The author of the gallery image. + :type author: str + :ivar created_date: The creation date of the gallery image. + :vartype created_date: datetime + :param description: The description of the gallery image. + :type description: str + :param image_reference: The image reference of the gallery image. + :type image_reference: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :param icon: The icon of the gallery image. + :type icon: str + :param enabled: Indicates whether this gallery image is enabled. + :type enabled: bool + :param plan_id: The third party plan that applies to this image + :type plan_id: str + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'image_reference': {'key': 'properties.imageReference', 'type': 'GalleryImageReference'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(GalleryImage, self).__init__(**kwargs) + self.author = kwargs.get('author', None) + self.created_date = None + self.description = kwargs.get('description', None) + self.image_reference = kwargs.get('image_reference', None) + self.icon = kwargs.get('icon', None) + self.enabled = kwargs.get('enabled', None) + self.plan_id = kwargs.get('plan_id', None) + self.is_plan_authorized = kwargs.get('is_plan_authorized', None) + + +class GalleryImageReference(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(GalleryImageReference, 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 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. + + :param virtual_machine_name: The resource name of the virtual machine. + :type virtual_machine_name: str + :param parameters: The parameters of the ARM template. + :type parameters: list[~azure.mgmt.devtestlabs.models.ParameterInfo] + :param location: The location of the virtual machine. + :type location: str + :param file_upload_options: Options for uploading the files for the + artifact. UploadFilesAndGenerateSasTokens is the default value. Possible + values include: 'UploadFilesAndGenerateSasTokens', 'None' + :type file_upload_options: str or + ~azure.mgmt.devtestlabs.models.FileUploadOptions + """ + + _attribute_map = { + 'virtual_machine_name': {'key': 'virtualMachineName', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ParameterInfo]'}, + 'location': {'key': 'location', 'type': 'str'}, + 'file_upload_options': {'key': 'fileUploadOptions', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenerateArmTemplateRequest, self).__init__(**kwargs) + self.virtual_machine_name = kwargs.get('virtual_machine_name', None) + self.parameters = kwargs.get('parameters', None) + self.location = kwargs.get('location', None) + self.file_upload_options = kwargs.get('file_upload_options', None) + + +class GenerateUploadUriParameter(Model): + """Properties for generating an upload URI. + + :param blob_name: The blob name of the upload URI. + :type blob_name: str + """ + + _attribute_map = { + 'blob_name': {'key': 'blobName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenerateUploadUriParameter, self).__init__(**kwargs) + self.blob_name = kwargs.get('blob_name', None) + + +class GenerateUploadUriResponse(Model): + """Response body for generating an upload URI. + + :param upload_uri: The upload URI for the VHD. + :type upload_uri: str + """ + + _attribute_map = { + 'upload_uri': {'key': 'uploadUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenerateUploadUriResponse, self).__init__(**kwargs) + self.upload_uri = kwargs.get('upload_uri', None) + + +class HourDetails(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(HourDetails, self).__init__(**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 principal_id: The principal id of resource identity. + :type principal_id: str + :param tenant_id: The tenant identifier of resource. + :type tenant_id: str + :param client_secret_url: The client secret URL of the identity. + :type client_secret_url: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'client_secret_url': {'key': 'clientSecretUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IdentityProperties, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.principal_id = kwargs.get('principal_id', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.client_secret_url = kwargs.get('client_secret_url', None) + + +class ImportLabVirtualMachineRequest(Model): + """This represents the payload required to import a virtual machine from a + different lab into the current one. + + :param source_virtual_machine_resource_id: The full resource ID of the + virtual machine to be imported. + :type source_virtual_machine_resource_id: str + :param destination_virtual_machine_name: The name of the virtual machine + in the destination lab + :type destination_virtual_machine_name: str + """ + + _attribute_map = { + 'source_virtual_machine_resource_id': {'key': 'sourceVirtualMachineResourceId', 'type': 'str'}, + 'destination_virtual_machine_name': {'key': 'destinationVirtualMachineName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ImportLabVirtualMachineRequest, self).__init__(**kwargs) + self.source_virtual_machine_resource_id = kwargs.get('source_virtual_machine_resource_id', None) + self.destination_virtual_machine_name = kwargs.get('destination_virtual_machine_name', None) + + +class InboundNatRule(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(InboundNatRule, 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 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar default_storage_account: The lab's default storage account. + :vartype default_storage_account: str + :ivar default_premium_storage_account: The lab's default premium storage + account. + :vartype default_premium_storage_account: str + :ivar artifacts_storage_account: The lab's artifact storage account. + :vartype artifacts_storage_account: str + :ivar premium_data_disk_storage_account: The lab's premium data disk + storage account. + :vartype premium_data_disk_storage_account: str + :ivar vault_name: The lab's Key vault. + :vartype vault_name: 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] + :ivar created_date: The creation date of the lab. + :vartype created_date: datetime + :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.LabAnnouncementProperties + :param support: The properties of any lab support message associated with + this lab + :type support: ~azure.mgmt.devtestlabs.models.LabSupportProperties + :ivar vm_creation_resource_group: The resource group in which all new lab + virtual machines will be created. To let DevTest Labs manage resource + group creation, set this value to null. + :vartype vm_creation_resource_group: str + :ivar public_ip_id: The public IP address for the lab's load balancer. + :vartype public_ip_id: str + :ivar load_balancer_id: The load balancer used to for lab VMs that use + shared IP address. + :vartype load_balancer_id: str + :ivar network_security_group_id: The Network Security Group attached to + the lab VMs Network interfaces to restrict open ports. + :vartype network_security_group_id: str + :param extended_properties: Extended properties of the lab used for + experimental features + :type extended_properties: dict[str, str] + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'default_storage_account': {'readonly': True}, + 'default_premium_storage_account': {'readonly': True}, + 'artifacts_storage_account': {'readonly': True}, + 'premium_data_disk_storage_account': {'readonly': True}, + 'vault_name': {'readonly': True}, + 'created_date': {'readonly': True}, + 'vm_creation_resource_group': {'readonly': True}, + 'public_ip_id': {'readonly': True}, + 'load_balancer_id': {'readonly': True}, + 'network_security_group_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_storage_account': {'key': 'properties.defaultStorageAccount', 'type': 'str'}, + 'default_premium_storage_account': {'key': 'properties.defaultPremiumStorageAccount', 'type': 'str'}, + 'artifacts_storage_account': {'key': 'properties.artifactsStorageAccount', 'type': 'str'}, + 'premium_data_disk_storage_account': {'key': 'properties.premiumDataDiskStorageAccount', 'type': 'str'}, + 'vault_name': {'key': 'properties.vaultName', '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]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, + 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, + 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementProperties'}, + 'support': {'key': 'properties.support', 'type': 'LabSupportProperties'}, + 'vm_creation_resource_group': {'key': 'properties.vmCreationResourceGroup', 'type': 'str'}, + 'public_ip_id': {'key': 'properties.publicIpId', 'type': 'str'}, + 'load_balancer_id': {'key': 'properties.loadBalancerId', 'type': 'str'}, + 'network_security_group_id': {'key': 'properties.networkSecurityGroupId', 'type': 'str'}, + 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Lab, self).__init__(**kwargs) + self.default_storage_account = None + self.default_premium_storage_account = None + self.artifacts_storage_account = None + self.premium_data_disk_storage_account = None + self.vault_name = None + 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.created_date = 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.vm_creation_resource_group = None + self.public_ip_id = None + self.load_balancer_id = None + self.network_security_group_id = None + self.extended_properties = kwargs.get('extended_properties', None) + self.provisioning_state = None + self.unique_identifier = None + + +class LabAnnouncementProperties(Model): + """Properties of a lab's announcement banner. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _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'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabAnnouncementProperties, 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) + self.provisioning_state = None + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param target_cost: The target cost properties + :type target_cost: ~azure.mgmt.devtestlabs.models.TargetCostProperties + :ivar lab_cost_summary: The lab cost summary component of the cost data. + :vartype lab_cost_summary: + ~azure.mgmt.devtestlabs.models.LabCostSummaryProperties + :ivar lab_cost_details: The lab cost details component of the cost data. + :vartype lab_cost_details: + list[~azure.mgmt.devtestlabs.models.LabCostDetailsProperties] + :ivar resource_costs: The resource cost component of the cost data. + :vartype resource_costs: + list[~azure.mgmt.devtestlabs.models.LabResourceCostProperties] + :param currency_code: The currency code of the cost. + :type currency_code: str + :param start_date_time: The start time of the cost data. + :type start_date_time: datetime + :param end_date_time: The end time of the cost data. + :type end_date_time: datetime + :param created_date: The creation date of the cost. + :type created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'lab_cost_summary': {'readonly': True}, + 'lab_cost_details': {'readonly': True}, + 'resource_costs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'target_cost': {'key': 'properties.targetCost', 'type': 'TargetCostProperties'}, + 'lab_cost_summary': {'key': 'properties.labCostSummary', 'type': 'LabCostSummaryProperties'}, + 'lab_cost_details': {'key': 'properties.labCostDetails', 'type': '[LabCostDetailsProperties]'}, + 'resource_costs': {'key': 'properties.resourceCosts', 'type': '[LabResourceCostProperties]'}, + 'currency_code': {'key': 'properties.currencyCode', 'type': 'str'}, + 'start_date_time': {'key': 'properties.startDateTime', 'type': 'iso-8601'}, + 'end_date_time': {'key': 'properties.endDateTime', 'type': 'iso-8601'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabCost, self).__init__(**kwargs) + self.target_cost = kwargs.get('target_cost', None) + self.lab_cost_summary = None + self.lab_cost_details = None + self.resource_costs = None + self.currency_code = kwargs.get('currency_code', None) + self.start_date_time = kwargs.get('start_date_time', None) + self.end_date_time = kwargs.get('end_date_time', None) + self.created_date = kwargs.get('created_date', None) + self.provisioning_state = None + self.unique_identifier = None + + +class LabCostDetailsProperties(Model): + """The properties of a lab cost item. + + :param date_property: The date of the cost item. + :type date_property: datetime + :param cost: The cost component of the cost item. + :type cost: float + :param cost_type: The type of the cost. Possible values include: + 'Unavailable', 'Reported', 'Projected' + :type cost_type: str or ~azure.mgmt.devtestlabs.models.CostType + """ + + _attribute_map = { + 'date_property': {'key': 'date', 'type': 'iso-8601'}, + 'cost': {'key': 'cost', 'type': 'float'}, + 'cost_type': {'key': 'costType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabCostDetailsProperties, self).__init__(**kwargs) + self.date_property = kwargs.get('date_property', None) + self.cost = kwargs.get('cost', None) + self.cost_type = kwargs.get('cost_type', None) + + +class LabCostSummaryProperties(Model): + """The properties of the cost summary. + + :param estimated_lab_cost: The cost component of the cost item. + :type estimated_lab_cost: float + """ + + _attribute_map = { + 'estimated_lab_cost': {'key': 'estimatedLabCost', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(LabCostSummaryProperties, self).__init__(**kwargs) + self.estimated_lab_cost = kwargs.get('estimated_lab_cost', None) + + +class LabFragment(UpdateResource): + """A lab. + + :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): + """The properties of a resource cost item. + + :param resourcename: The name of the resource. + :type resourcename: str + :param resource_uid: The unique identifier of the resource. + :type resource_uid: str + :param resource_cost: The cost component of the resource cost item. + :type resource_cost: float + :param resource_type: The logical resource type (ex. virtualmachine, + storageaccount) + :type resource_type: str + :param resource_owner: The owner of the resource (ex. + janedoe@microsoft.com) + :type resource_owner: str + :param resource_pricing_tier: The category of the resource (ex. + Premium_LRS, Standard_DS1) + :type resource_pricing_tier: str + :param resource_status: The status of the resource (ex. Active) + :type resource_status: str + :param resource_id: The ID of the resource + :type resource_id: str + :param external_resource_id: The ID of the external resource + :type external_resource_id: str + """ + + _attribute_map = { + 'resourcename': {'key': 'resourcename', 'type': 'str'}, + 'resource_uid': {'key': 'resourceUId', 'type': 'str'}, + 'resource_cost': {'key': 'resourceCost', 'type': 'float'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_owner': {'key': 'resourceOwner', 'type': 'str'}, + 'resource_pricing_tier': {'key': 'resourcePricingTier', 'type': 'str'}, + 'resource_status': {'key': 'resourceStatus', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'external_resource_id': {'key': 'externalResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabResourceCostProperties, self).__init__(**kwargs) + self.resourcename = kwargs.get('resourcename', None) + self.resource_uid = kwargs.get('resource_uid', None) + self.resource_cost = kwargs.get('resource_cost', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_owner = kwargs.get('resource_owner', None) + self.resource_pricing_tier = kwargs.get('resource_pricing_tier', None) + self.resource_status = kwargs.get('resource_status', None) + self.resource_id = kwargs.get('resource_id', None) + self.external_resource_id = kwargs.get('external_resource_id', None) + + +class LabSupportProperties(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(LabSupportProperties, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + 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. + + :param id: The URI to the VHD. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabVhd, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class LabVirtualMachine(Resource): + """A virtual machine. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.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: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :param plan_id: The id of the plan associated with the virtual machine + image + :type plan_id: str + :ivar compute_vm: The compute virtual machine properties. + :vartype compute_vm: ~azure.mgmt.devtestlabs.models.ComputeVmProperties + :param network_interface: The network interface properties. + :type network_interface: + ~azure.mgmt.devtestlabs.models.NetworkInterfaceProperties + :ivar applicable_schedule: The applicable schedule for the virtual + machine. + :vartype applicable_schedule: + ~azure.mgmt.devtestlabs.models.ApplicableSchedule + :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.DataDiskProperties] + :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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'compute_vm': {'readonly': True}, + 'applicable_schedule': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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': '[ArtifactInstallProperties]'}, + 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, + 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'compute_vm': {'key': 'properties.computeVm', 'type': 'ComputeVmProperties'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, + 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, + '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'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + 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_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.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.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.provisioning_state = None + self.unique_identifier = None + + +class LabVirtualMachineCreationParameter(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.BulkCreationParameters + :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.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: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :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.NetworkInterfaceProperties + :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.DataDiskProperties] + :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 + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParameters'}, + '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'}, + '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'}, + } + + def __init__(self, **kwargs): + super(LabVirtualMachineFragment, self).__init__(**kwargs) + 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) + + +class LinuxOsInfo(Model): + """Information about a Linux OS. + + :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 + """ + + _attribute_map = { + 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LinuxOsInfo, self).__init__(**kwargs) + self.linux_os_state = kwargs.get('linux_os_state', None) + + +class LinuxOsInfoFragment(Model): + """Information about a Linux OS. + + :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 + """ + + _attribute_map = { + 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LinuxOsInfoFragment, self).__init__(**kwargs) + self.linux_os_state = kwargs.get('linux_os_state', None) + + +class NetworkInterfaceProperties(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.SharedPublicIpAddressConfiguration + """ + + _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': 'SharedPublicIpAddressConfiguration'}, + } + + def __init__(self, **kwargs): + super(NetworkInterfaceProperties, 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 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Event] + :ivar created_date: The creation date of the notification channel. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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': '[Event]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NotificationChannel, 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) + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class NotificationChannelFragment(UpdateResource): + """A notification. + + :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): + """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(NotificationSettings, 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 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. + + :param event_name: The type of event (i.e. AutoShutdown, Cost). Possible + values include: 'AutoShutdown', 'Cost' + :type event_name: str or + ~azure.mgmt.devtestlabs.models.NotificationChannelEventType + :param json_payload: Properties for the notification in json format. + :type json_payload: str + """ + + _attribute_map = { + 'event_name': {'key': 'eventName', 'type': 'str'}, + 'json_payload': {'key': 'jsonPayload', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NotifyParameters, self).__init__(**kwargs) + self.event_name = kwargs.get('event_name', None) + self.json_payload = kwargs.get('json_payload', None) + + +class OperationError(Model): + """Error details for the operation in case of a failure. + + :param code: The error code of the operation error. + :type code: str + :param message: The error message of the operation error. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class OperationMetadata(Model): + """The REST API operation supported by DevTestLab ResourceProvider. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that describes the operations + :type display: ~azure.mgmt.devtestlabs.models.OperationMetadataDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationMetadataDisplay'}, + } + + def __init__(self, **kwargs): + super(OperationMetadata, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationMetadataDisplay(Model): + """The object that describes the operations. + + :param provider: Friendly name of the resource provider + :type provider: str + :param resource: Resource type on which the operation is performed. + :type resource: str + :param operation: Operation type: read, write, delete, listKeys/action, + etc. + :type operation: str + :param description: Friendly name of the operation + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationMetadataDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationResult(Model): + """An Operation Result. + + :param status: The operation status. + :type status: str + :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', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or ~azure.mgmt.devtestlabs.models.HttpStatusCode + :param error: Error details for the operation in case of a failure. + :type error: ~azure.mgmt.devtestlabs.models.OperationError + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'OperationError'}, + } + + def __init__(self, **kwargs): + super(OperationResult, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.status_code = kwargs.get('status_code', None) + self.error = kwargs.get('error', None) + + +class ParameterInfo(Model): + """Information about an artifact's 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(ParameterInfo, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + + +class ParametersValueFileInfo(Model): + """A file containing a set of parameter values for an ARM template. + + :param file_name: File name. + :type file_name: str + :param parameters_value_info: Contents of the file. + :type parameters_value_info: object + """ + + _attribute_map = { + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'parameters_value_info': {'key': 'parametersValueInfo', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ParametersValueFileInfo, self).__init__(**kwargs) + self.file_name = kwargs.get('file_name', None) + self.parameters_value_info = kwargs.get('parameters_value_info', None) + + +class PercentageCostThresholdProperties(Model): + """Properties of a percentage cost threshold. + + :param threshold_value: The cost threshold value. + :type threshold_value: float + """ + + _attribute_map = { + 'threshold_value': {'key': 'thresholdValue', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(PercentageCostThresholdProperties, self).__init__(**kwargs) + self.threshold_value = kwargs.get('threshold_value', None) + + +class Policy(Resource): + """A Policy. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar created_date: The creation date of the policy. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Policy, 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) + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class PolicyFragment(UpdateResource): + """A Policy. + + :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): + """Result of a policy set evaluation. + + :param has_error: A value indicating whether this policy set evaluation + has discovered violations. + :type has_error: bool + :param policy_violations: The list of policy violations. + :type policy_violations: + list[~azure.mgmt.devtestlabs.models.PolicyViolation] + """ + + _attribute_map = { + 'has_error': {'key': 'hasError', 'type': 'bool'}, + 'policy_violations': {'key': 'policyViolations', 'type': '[PolicyViolation]'}, + } + + def __init__(self, **kwargs): + super(PolicySetResult, self).__init__(**kwargs) + self.has_error = kwargs.get('has_error', None) + self.policy_violations = kwargs.get('policy_violations', None) + + +class PolicyViolation(Model): + """Policy violation. + + :param code: The code of the policy violation. + :type code: str + :param message: The message of the policy violation. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyViolation, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class Port(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(Port, self).__init__(**kwargs) + self.transport_protocol = kwargs.get('transport_protocol', None) + 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. + + :param contents: The contents of the .rdp file + :type contents: str + """ + + _attribute_map = { + 'contents': {'key': 'contents', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RdpConnection, self).__init__(**kwargs) + self.contents = kwargs.get('contents', None) + + +class ResizeLabVirtualMachineProperties(Model): + """Request body for resizing a virtual machine. + + :param size: Specifies the size of the virtual machine. + :type size: str + """ + + _attribute_map = { + 'size': {'key': 'size', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResizeLabVirtualMachineProperties, self).__init__(**kwargs) + self.size = kwargs.get('size', None) + + +class RetargetScheduleProperties(Model): + """Properties for retargeting a virtual machine schedule. + + :param current_resource_id: The resource Id of the virtual machine on + which the schedule operates + :type current_resource_id: str + :param target_resource_id: The resource Id of the virtual machine that the + schedule should be retargeted to + :type target_resource_id: str + """ + + _attribute_map = { + 'current_resource_id': {'key': 'currentResourceId', 'type': 'str'}, + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RetargetScheduleProperties, self).__init__(**kwargs) + self.current_resource_id = kwargs.get('current_resource_id', None) + self.target_resource_id = kwargs.get('target_resource_id', None) + + +class Schedule(Resource): + """A schedule. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.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 + :ivar created_date: The creation date of the schedule. + :vartype created_date: datetime + :param target_resource_id: The resource ID to which the schedule belongs + :type target_resource_id: str + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Schedule, 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.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) + + +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 + :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': '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'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ScheduleCreationParameterFragment, 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) + + +class ScheduleFragment(UpdateResource): + """A schedule. + + :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): + """A secret. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: 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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Secret, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.provisioning_state = None + self.unique_identifier = None + + +class SecretFragment(UpdateResource): + """A secret. + + :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): + """A Service Fabric. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar applicable_schedule: The applicable schedule for the virtual + machine. + :vartype applicable_schedule: + ~azure.mgmt.devtestlabs.models.ApplicableSchedule + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'applicable_schedule': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, + 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, + 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceFabric, self).__init__(**kwargs) + self.external_service_fabric_id = kwargs.get('external_service_fabric_id', None) + self.environment_id = kwargs.get('environment_id', None) + self.applicable_schedule = None + self.provisioning_state = None + self.unique_identifier = None + + +class ServiceFabricFragment(UpdateResource): + """A Service Fabric. + + :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): + """A container for a managed identity to execute DevTest lab services. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The identifier of the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.devtestlabs.models.IdentityProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, + } + + def __init__(self, **kwargs): + super(ServiceRunner, self).__init__(**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. + + :param inbound_nat_rules: The incoming NAT rules + :type inbound_nat_rules: + list[~azure.mgmt.devtestlabs.models.InboundNatRule] + """ + + _attribute_map = { + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, + } + + def __init__(self, **kwargs): + super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) + self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) + + +class SharedPublicIpAddressConfigurationFragment(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] + """ + + _attribute_map = { + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, + } + + def __init__(self, **kwargs): + super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) + self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) + + +class ShutdownNotificationContent(Model): + """The contents of a shutdown notification. Webhooks can use this type to + deserialize the request body when they get notified of an imminent + shutdown. + + :param skip_url: The URL to skip auto-shutdown. + :type skip_url: str + :param delay_url60: The URL to delay shutdown by 60 minutes. + :type delay_url60: str + :param delay_url120: The URL to delay shutdown by 2 hours. + :type delay_url120: str + :param vm_name: The virtual machine to be shut down. + :type vm_name: str + :param guid: The GUID for the virtual machine to be shut down. + :type guid: str + :param owner: The owner of the virtual machine. + :type owner: str + :param vm_url: The URL of the virtual machine. + :type vm_url: str + :param minutes_until_shutdown: Minutes remaining until shutdown + :type minutes_until_shutdown: str + :param event_type: The event for which a notification will be sent. + :type event_type: str + :param text: The text for the notification. + :type text: str + :param subscription_id: The subscription ID for the schedule. + :type subscription_id: str + :param resource_group_name: The resource group name for the schedule. + :type resource_group_name: str + :param lab_name: The lab for the schedule. + :type lab_name: str + """ + + _attribute_map = { + 'skip_url': {'key': 'skipUrl', 'type': 'str'}, + 'delay_url60': {'key': 'delayUrl60', 'type': 'str'}, + 'delay_url120': {'key': 'delayUrl120', 'type': 'str'}, + 'vm_name': {'key': 'vmName', 'type': 'str'}, + 'guid': {'key': 'guid', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'vm_url': {'key': 'vmUrl', 'type': 'str'}, + 'minutes_until_shutdown': {'key': 'minutesUntilShutdown', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, + 'lab_name': {'key': 'labName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ShutdownNotificationContent, self).__init__(**kwargs) + self.skip_url = kwargs.get('skip_url', None) + self.delay_url60 = kwargs.get('delay_url60', None) + self.delay_url120 = kwargs.get('delay_url120', None) + self.vm_name = kwargs.get('vm_name', None) + self.guid = kwargs.get('guid', None) + self.owner = kwargs.get('owner', None) + self.vm_url = kwargs.get('vm_url', None) + self.minutes_until_shutdown = kwargs.get('minutes_until_shutdown', None) + self.event_type = kwargs.get('event_type', None) + self.text = kwargs.get('text', None) + self.subscription_id = kwargs.get('subscription_id', None) + self.resource_group_name = kwargs.get('resource_group_name', None) + self.lab_name = kwargs.get('lab_name', None) + + +class Subnet(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(Subnet, 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 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. + + :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.SubnetSharedPublicIpAddressConfiguration + :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': 'SubnetSharedPublicIpAddressConfiguration'}, + 'virtual_network_pool_name': {'key': 'virtualNetworkPoolName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubnetOverride, 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 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. + + :param allowed_ports: Backend ports that virtual machines on this subnet + are allowed to expose + :type allowed_ports: list[~azure.mgmt.devtestlabs.models.Port] + """ + + _attribute_map = { + 'allowed_ports': {'key': 'allowedPorts', 'type': '[Port]'}, + } + + def __init__(self, **kwargs): + super(SubnetSharedPublicIpAddressConfiguration, self).__init__(**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. + + :param status: Target cost status. Possible values include: 'Enabled', + 'Disabled' + :type status: str or ~azure.mgmt.devtestlabs.models.TargetCostStatus + :param target: Lab target cost + :type target: int + :param cost_thresholds: Cost thresholds. + :type cost_thresholds: + list[~azure.mgmt.devtestlabs.models.CostThresholdProperties] + :param cycle_start_date_time: Reporting cycle start date. + :type cycle_start_date_time: datetime + :param cycle_end_date_time: Reporting cycle end date. + :type cycle_end_date_time: datetime + :param cycle_type: Reporting cycle type. Possible values include: + 'CalendarMonth', 'Custom' + :type cycle_type: str or ~azure.mgmt.devtestlabs.models.ReportingCycleType + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'int'}, + 'cost_thresholds': {'key': 'costThresholds', 'type': '[CostThresholdProperties]'}, + 'cycle_start_date_time': {'key': 'cycleStartDateTime', 'type': 'iso-8601'}, + 'cycle_end_date_time': {'key': 'cycleEndDateTime', 'type': 'iso-8601'}, + 'cycle_type': {'key': 'cycleType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetCostProperties, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.target = kwargs.get('target', None) + self.cost_thresholds = kwargs.get('cost_thresholds', None) + self.cycle_start_date_time = kwargs.get('cycle_start_date_time', None) + self.cycle_end_date_time = kwargs.get('cycle_end_date_time', None) + self.cycle_type = kwargs.get('cycle_type', None) + + +class User(Resource): + """Profile of a lab user. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.UserIdentity + :param secret_store: The secret store of the user. + :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStore + :ivar created_date: The creation date of the user profile. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'properties.identity', 'type': 'UserIdentity'}, + 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStore'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(User, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.secret_store = kwargs.get('secret_store', None) + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class UserFragment(UpdateResource): + """Profile of a lab user. + + :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): + """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(UserIdentity, 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 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. + + :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(UserSecretStore, self).__init__(**kwargs) + self.key_vault_uri = kwargs.get('key_vault_uri', None) + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Subnet] + :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 + :ivar external_subnets: The external subnet properties. + :vartype external_subnets: + list[~azure.mgmt.devtestlabs.models.ExternalSubnet] + :param subnet_overrides: The subnet overrides of the virtual network. + :type subnet_overrides: + list[~azure.mgmt.devtestlabs.models.SubnetOverride] + :ivar created_date: The creation date of the virtual network. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'external_subnets': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[Subnet]'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, + 'external_subnets': {'key': 'properties.externalSubnets', 'type': '[ExternalSubnet]'}, + 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverride]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetwork, 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.external_subnets = None + self.subnet_overrides = kwargs.get('subnet_overrides', None) + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class VirtualNetworkFragment(UpdateResource): + """A virtual network. + + :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): + """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(WeekDetails, self).__init__(**kwargs) + self.weekdays = kwargs.get('weekdays', None) + 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. + + :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(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 new file mode 100644 index 000000000000..17a0bd5726ce --- /dev/null +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_models_py3.py @@ -0,0 +1,5702 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """An Azure resource. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class ApplicableSchedule(Resource): + """Schedules applicable to a virtual machine. The schedules may have been + defined on a VM or on lab level. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The identifier of the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Schedule + :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.Schedule + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'Schedule'}, + 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'Schedule'}, + } + + def __init__(self, *, location: str=None, tags=None, lab_vms_shutdown=None, lab_vms_startup=None, **kwargs) -> None: + super(ApplicableSchedule, self).__init__(location=location, tags=tags, **kwargs) + self.lab_vms_shutdown = lab_vms_shutdown + self.lab_vms_startup = lab_vms_startup + + +class UpdateResource(Model): + """Represents an update resource. + + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(UpdateResource, self).__init__(**kwargs) + self.tags = tags + + +class ApplicableScheduleFragment(UpdateResource): + """Schedules applicable to a virtual machine. The schedules may have been + defined on a VM or on lab level. + + :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: + super(ApplicableScheduleFragment, self).__init__(tags=tags, **kwargs) + self.lab_vms_shutdown = lab_vms_shutdown + self.lab_vms_startup = lab_vms_startup + + +class ApplyArtifactsRequest(Model): + """Request body for applying artifacts to a virtual machine. + + :param artifacts: The list of artifacts to apply. + :type artifacts: + list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactInstallProperties]'}, + } + + def __init__(self, *, artifacts=None, **kwargs) -> None: + super(ApplyArtifactsRequest, self).__init__(**kwargs) + self.artifacts = artifacts + + +class ArmTemplate(Resource): + """An Azure Resource Manager template. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar display_name: The display name of the ARM template. + :vartype display_name: str + :ivar description: The description of the ARM template. + :vartype description: str + :ivar publisher: The publisher of the ARM template. + :vartype publisher: str + :ivar icon: The URI to the icon of the ARM template. + :vartype icon: str + :ivar contents: The contents of the ARM template. + :vartype contents: object + :ivar created_date: The creation date of the armTemplate. + :vartype created_date: datetime + :ivar parameters_value_files_info: File name and parameter values + information from all azuredeploy.*.parameters.json for the ARM template. + :vartype parameters_value_files_info: + list[~azure.mgmt.devtestlabs.models.ParametersValueFileInfo] + :ivar enabled: Whether or not ARM template is enabled for use by lab user. + :vartype enabled: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'description': {'readonly': True}, + 'publisher': {'readonly': True}, + 'icon': {'readonly': True}, + 'contents': {'readonly': True}, + 'created_date': {'readonly': True}, + 'parameters_value_files_info': {'readonly': True}, + 'enabled': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'contents': {'key': 'properties.contents', 'type': 'object'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'parameters_value_files_info': {'key': 'properties.parametersValueFilesInfo', 'type': '[ParametersValueFileInfo]'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(ArmTemplate, self).__init__(location=location, tags=tags, **kwargs) + self.display_name = None + self.description = None + self.publisher = None + self.icon = None + self.contents = None + self.created_date = None + self.parameters_value_files_info = None + self.enabled = None + + +class ArmTemplateInfo(Model): + """Information about a generated ARM template. + + :param template: The template's contents. + :type template: object + :param parameters: The parameters of the ARM template. + :type parameters: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, *, template=None, parameters=None, **kwargs) -> None: + super(ArmTemplateInfo, self).__init__(**kwargs) + self.template = template + self.parameters = parameters + + +class ArmTemplateParameterProperties(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(ArmTemplateParameterProperties, self).__init__(**kwargs) + self.name = name + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar title: The artifact's title. + :vartype title: str + :ivar description: The artifact's description. + :vartype description: str + :ivar publisher: The artifact's publisher. + :vartype publisher: str + :ivar file_path: The file path to the artifact. + :vartype file_path: str + :ivar icon: The URI to the artifact icon. + :vartype icon: str + :ivar target_os_type: The artifact's target OS. + :vartype target_os_type: str + :ivar parameters: The artifact's parameters. + :vartype parameters: object + :ivar created_date: The artifact's creation date. + :vartype created_date: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'title': {'readonly': True}, + 'description': {'readonly': True}, + 'publisher': {'readonly': True}, + 'file_path': {'readonly': True}, + 'icon': {'readonly': True}, + 'target_os_type': {'readonly': True}, + 'parameters': {'readonly': True}, + 'created_date': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'target_os_type': {'key': 'properties.targetOsType', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Artifact, self).__init__(location=location, tags=tags, **kwargs) + self.title = None + self.description = None + self.publisher = None + self.file_path = None + self.icon = None + self.target_os_type = None + self.parameters = None + self.created_date = None + + +class ArtifactDeploymentStatusProperties(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(ArtifactDeploymentStatusProperties, self).__init__(**kwargs) + self.deployment_status = deployment_status + self.artifacts_applied = artifacts_applied + 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. + + :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.ArtifactParameterProperties] + :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': '[ArtifactParameterProperties]'}, + '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(ArtifactInstallProperties, 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 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. + + :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(ArtifactParameterProperties, self).__init__(**kwargs) + self.name = name + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar created_date: The artifact source's creation date. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, 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: + super(ArtifactSource, self).__init__(location=location, 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 + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class ArtifactSourceFragment(UpdateResource): + """Properties of an artifact source. + + :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: + 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): + """Properties of the disk to attach. + + :param leased_by_lab_vm_id: The resource ID of the Lab virtual machine to + which the disk is attached. + :type leased_by_lab_vm_id: str + """ + + _attribute_map = { + 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, + } + + def __init__(self, *, leased_by_lab_vm_id: str=None, **kwargs) -> None: + super(AttachDiskProperties, self).__init__(**kwargs) + self.leased_by_lab_vm_id = leased_by_lab_vm_id + + +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. + :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(AttachNewDataDiskOptions, self).__init__(**kwargs) + self.disk_size_gi_b = disk_size_gi_b + self.disk_name = disk_name + 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. + + :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(BulkCreationParameters, self).__init__(**kwargs) + 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. + + :param error: The cloud error that occurred + :type error: ~azure.mgmt.devtestlabs.models.CloudErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(CloudError, self).__init__(**kwargs) + self.error = error + + +class CloudErrorException(HttpOperationError): + """Server responsed with exception of type: 'CloudError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) + + +class CloudErrorBody(Model): + """Body of an error from a REST request. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + :param target: The error target. + :type target: str + :param details: Inner errors. + :type details: list[~azure.mgmt.devtestlabs.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None: + super(CloudErrorBody, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class ComputeDataDisk(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(ComputeDataDisk, 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 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. + + :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(ComputeVmInstanceViewStatus, self).__init__(**kwargs) + self.code = code + self.display_status = display_status + 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. + + :param statuses: Gets the statuses of the virtual machine. + :type statuses: + list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus] + :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.ComputeDataDisk] + """ + + _attribute_map = { + 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatus]'}, + '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': '[ComputeDataDisk]'}, + } + + 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(ComputeVmProperties, 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 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. + + :param threshold_id: The ID of the cost threshold item. + :type threshold_id: str + :param percentage_threshold: The value of the percentage cost threshold. + :type percentage_threshold: + ~azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties + :param display_on_chart: Indicates whether this threshold will be + displayed on cost charts. Possible values include: 'Enabled', 'Disabled' + :type display_on_chart: str or + ~azure.mgmt.devtestlabs.models.CostThresholdStatus + :param send_notification_when_exceeded: Indicates whether notifications + will be sent when this threshold is exceeded. Possible values include: + 'Enabled', 'Disabled' + :type send_notification_when_exceeded: str or + ~azure.mgmt.devtestlabs.models.CostThresholdStatus + :param notification_sent: Indicates the datetime when notifications were + last sent for this threshold. + :type notification_sent: str + """ + + _attribute_map = { + 'threshold_id': {'key': 'thresholdId', 'type': 'str'}, + 'percentage_threshold': {'key': 'percentageThreshold', 'type': 'PercentageCostThresholdProperties'}, + 'display_on_chart': {'key': 'displayOnChart', 'type': 'str'}, + 'send_notification_when_exceeded': {'key': 'sendNotificationWhenExceeded', 'type': 'str'}, + 'notification_sent': {'key': 'notificationSent', 'type': 'str'}, + } + + def __init__(self, *, threshold_id: str=None, percentage_threshold=None, display_on_chart=None, send_notification_when_exceeded=None, notification_sent: str=None, **kwargs) -> None: + super(CostThresholdProperties, self).__init__(**kwargs) + self.threshold_id = threshold_id + self.percentage_threshold = percentage_threshold + self.display_on_chart = display_on_chart + self.send_notification_when_exceeded = send_notification_when_exceeded + self.notification_sent = notification_sent + + +class CustomImage(Resource): + """A custom image. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.CustomImagePropertiesFromVm + :param vhd: The VHD from which the image is to be created. + :type vhd: ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom + :param description: The description of the custom image. + :type description: str + :param author: The author of the custom image. + :type author: str + :ivar creation_date: The creation date of the custom image. + :vartype creation_date: datetime + :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.DataDiskStorageTypeInfo] + :param custom_image_plan: Storage information about the plan related to + this custom image + :type custom_image_plan: + ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlan + :param is_plan_authorized: Whether or not the custom images underlying + offer/plan has been enabled for programmatic deployment + :type is_plan_authorized: bool + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVm'}, + 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustom'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, + 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, + 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfo]'}, + 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlan'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, 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: + super(CustomImage, self).__init__(location=location, tags=tags, **kwargs) + self.vm = vm + self.vhd = vhd + self.description = description + self.author = author + self.creation_date = None + 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 + self.provisioning_state = None + self.unique_identifier = None + + +class CustomImageFragment(UpdateResource): + """A custom image. + + :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: + 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): + """Properties for creating a custom image from a VHD. + + All required parameters must be populated in order to send to Azure. + + :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: Required. 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 + """ + + _validation = { + 'os_type': {'required': True}, + } + + _attribute_map = { + 'image_name': {'key': 'imageName', 'type': 'str'}, + 'sys_prep': {'key': 'sysPrep', 'type': 'bool'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + } + + def __init__(self, *, os_type, image_name: str=None, sys_prep: bool=None, **kwargs) -> None: + super(CustomImagePropertiesCustom, self).__init__(**kwargs) + self.image_name = image_name + self.sys_prep = sys_prep + 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. + + :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(CustomImagePropertiesFromPlan, self).__init__(**kwargs) + self.id = id + self.publisher = publisher + 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. + + :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.WindowsOsInfo + :param linux_os_info: The Linux OS information of the VM. + :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfo + """ + + _attribute_map = { + 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, + 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfo'}, + 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfo'}, + } + + def __init__(self, *, source_vm_id: str=None, windows_os_info=None, linux_os_info=None, **kwargs) -> None: + super(CustomImagePropertiesFromVm, 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 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. + + :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.AttachNewDataDiskOptions + :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': 'AttachNewDataDiskOptions'}, + '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(DataDiskProperties, 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 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. + + :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(DataDiskStorageTypeInfo, self).__init__(**kwargs) + self.lun = lun + 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. + + :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(DayDetails, self).__init__(**kwargs) + 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. + + :param existing_lab_disk_id: Specifies the disk resource ID to detach from + virtual machine. + :type existing_lab_disk_id: str + """ + + _attribute_map = { + 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, + } + + def __init__(self, *, existing_lab_disk_id: str=None, **kwargs) -> None: + super(DetachDataDiskProperties, self).__init__(**kwargs) + self.existing_lab_disk_id = existing_lab_disk_id + + +class DetachDiskProperties(Model): + """Properties of the disk to detach. + + :param leased_by_lab_vm_id: The resource ID of the Lab VM to which the + disk is attached. + :type leased_by_lab_vm_id: str + """ + + _attribute_map = { + 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, + } + + def __init__(self, *, leased_by_lab_vm_id: str=None, **kwargs) -> None: + super(DetachDiskProperties, self).__init__(**kwargs) + self.leased_by_lab_vm_id = leased_by_lab_vm_id + + +class Disk(Resource): + """A Disk. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :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, + 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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, + 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + '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: + 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.created_date = None + self.host_caching = host_caching + self.managed_disk_id = managed_disk_id + self.provisioning_state = None + self.unique_identifier = None + + +class DiskFragment(UpdateResource): + """A Disk. + + :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: + 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): + """An environment, which is essentially an ARM template deployment. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.EnvironmentDeploymentProperties + :param arm_template_display_name: The display name of the Azure Resource + Manager template that produced the environment. + :type arm_template_display_name: str + :ivar resource_group_id: The identifier of the resource group containing + the environment's resources. + :vartype resource_group_id: str + :ivar created_by_user: The creator of the environment. + :vartype created_by_user: str + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_group_id': {'readonly': True}, + 'created_by_user': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentProperties'}, + 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, + 'resource_group_id': {'key': 'properties.resourceGroupId', 'type': 'str'}, + 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, deployment_properties=None, arm_template_display_name: str=None, **kwargs) -> None: + super(DtlEnvironment, self).__init__(location=location, tags=tags, **kwargs) + self.deployment_properties = deployment_properties + self.arm_template_display_name = arm_template_display_name + self.resource_group_id = None + self.created_by_user = None + self.provisioning_state = None + self.unique_identifier = None + + +class DtlEnvironmentFragment(UpdateResource): + """An environment, which is essentially an ARM template deployment. + + :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: + super(DtlEnvironmentFragment, self).__init__(tags=tags, **kwargs) + self.deployment_properties = deployment_properties + self.arm_template_display_name = arm_template_display_name + + +class EnvironmentDeploymentProperties(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.ArmTemplateParameterProperties] + """ + + _attribute_map = { + 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterProperties]'}, + } + + def __init__(self, *, arm_template_id: str=None, parameters=None, **kwargs) -> None: + super(EnvironmentDeploymentProperties, self).__init__(**kwargs) + self.arm_template_id = arm_template_id + 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. + + :param fact_name: The fact name. + :type fact_name: str + :param fact_data: The fact data. + :type fact_data: str + :param value_offset: The value offset. + :type value_offset: str + :param user_object_id: The user for which policies will be evaluated + :type user_object_id: str + """ + + _attribute_map = { + 'fact_name': {'key': 'factName', 'type': 'str'}, + 'fact_data': {'key': 'factData', 'type': 'str'}, + 'value_offset': {'key': 'valueOffset', 'type': 'str'}, + 'user_object_id': {'key': 'userObjectId', 'type': 'str'}, + } + + def __init__(self, *, fact_name: str=None, fact_data: str=None, value_offset: str=None, user_object_id: str=None, **kwargs) -> None: + super(EvaluatePoliciesProperties, self).__init__(**kwargs) + self.fact_name = fact_name + self.fact_data = fact_data + self.value_offset = value_offset + self.user_object_id = user_object_id + + +class EvaluatePoliciesRequest(Model): + """Request body for evaluating a policy set. + + :param policies: Policies to evaluate. + :type policies: + list[~azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties] + """ + + _attribute_map = { + 'policies': {'key': 'policies', 'type': '[EvaluatePoliciesProperties]'}, + } + + def __init__(self, *, policies=None, **kwargs) -> None: + super(EvaluatePoliciesRequest, self).__init__(**kwargs) + self.policies = policies + + +class EvaluatePoliciesResponse(Model): + """Response body for evaluating a policy set. + + :param results: Results of evaluating a policy set. + :type results: list[~azure.mgmt.devtestlabs.models.PolicySetResult] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PolicySetResult]'}, + } + + def __init__(self, *, results=None, **kwargs) -> None: + super(EvaluatePoliciesResponse, self).__init__(**kwargs) + self.results = results + + +class Event(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(Event, self).__init__(**kwargs) + 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. + + :param blob_storage_absolute_sas_uri: The blob storage absolute sas uri + with write permission to the container which the usage data needs to be + uploaded to. + :type blob_storage_absolute_sas_uri: str + :param usage_start_date: The start time of the usage. If not provided, + usage will be reported since the beginning of data collection. + :type usage_start_date: datetime + """ + + _attribute_map = { + 'blob_storage_absolute_sas_uri': {'key': 'blobStorageAbsoluteSasUri', 'type': 'str'}, + 'usage_start_date': {'key': 'usageStartDate', 'type': 'iso-8601'}, + } + + def __init__(self, *, blob_storage_absolute_sas_uri: str=None, usage_start_date=None, **kwargs) -> None: + super(ExportResourceUsageParameters, self).__init__(**kwargs) + self.blob_storage_absolute_sas_uri = blob_storage_absolute_sas_uri + self.usage_start_date = usage_start_date + + +class ExternalSubnet(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, *, id: str=None, name: str=None, **kwargs) -> None: + super(ExternalSubnet, self).__init__(**kwargs) + self.id = id + self.name = name + + +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, *, 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. + + :ivar id: The identifier of the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar creation_date: The creation date of the formula. + :vartype creation_date: datetime + :param formula_content: The content of the formula. + :type formula_content: + ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter + :param vm: Information about a VM from which a formula is to be created. + :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameter'}, + 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVm'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + '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: + super(Formula, self).__init__(location=location, tags=tags, **kwargs) + self.description = description + self.author = author + self.os_type = os_type + self.creation_date = None + self.formula_content = formula_content + self.vm = vm + self.provisioning_state = None + self.unique_identifier = None + + +class FormulaFragment(UpdateResource): + """A formula for creating a VM, specifying an image base and other parameters. + + :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: + 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): + """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(FormulaPropertiesFromVm, self).__init__(**kwargs) + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param author: The author of the gallery image. + :type author: str + :ivar created_date: The creation date of the gallery image. + :vartype created_date: datetime + :param description: The description of the gallery image. + :type description: str + :param image_reference: The image reference of the gallery image. + :type image_reference: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :param icon: The icon of the gallery image. + :type icon: str + :param enabled: Indicates whether this gallery image is enabled. + :type enabled: bool + :param plan_id: The third party plan that applies to this image + :type plan_id: str + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'author': {'key': 'properties.author', 'type': 'str'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'image_reference': {'key': 'properties.imageReference', 'type': 'GalleryImageReference'}, + 'icon': {'key': 'properties.icon', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + } + + def __init__(self, *, location: str=None, tags=None, author: str=None, description: str=None, image_reference=None, icon: str=None, enabled: bool=None, plan_id: str=None, is_plan_authorized: bool=None, **kwargs) -> None: + super(GalleryImage, self).__init__(location=location, tags=tags, **kwargs) + self.author = author + self.created_date = None + self.description = description + self.image_reference = image_reference + self.icon = icon + self.enabled = enabled + self.plan_id = plan_id + self.is_plan_authorized = is_plan_authorized + + +class GalleryImageReference(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(GalleryImageReference, self).__init__(**kwargs) + self.offer = offer + self.publisher = publisher + self.sku = sku + self.os_type = os_type + 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. + + :param virtual_machine_name: The resource name of the virtual machine. + :type virtual_machine_name: str + :param parameters: The parameters of the ARM template. + :type parameters: list[~azure.mgmt.devtestlabs.models.ParameterInfo] + :param location: The location of the virtual machine. + :type location: str + :param file_upload_options: Options for uploading the files for the + artifact. UploadFilesAndGenerateSasTokens is the default value. Possible + values include: 'UploadFilesAndGenerateSasTokens', 'None' + :type file_upload_options: str or + ~azure.mgmt.devtestlabs.models.FileUploadOptions + """ + + _attribute_map = { + 'virtual_machine_name': {'key': 'virtualMachineName', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ParameterInfo]'}, + 'location': {'key': 'location', 'type': 'str'}, + 'file_upload_options': {'key': 'fileUploadOptions', 'type': 'str'}, + } + + def __init__(self, *, virtual_machine_name: str=None, parameters=None, location: str=None, file_upload_options=None, **kwargs) -> None: + super(GenerateArmTemplateRequest, self).__init__(**kwargs) + self.virtual_machine_name = virtual_machine_name + self.parameters = parameters + self.location = location + self.file_upload_options = file_upload_options + + +class GenerateUploadUriParameter(Model): + """Properties for generating an upload URI. + + :param blob_name: The blob name of the upload URI. + :type blob_name: str + """ + + _attribute_map = { + 'blob_name': {'key': 'blobName', 'type': 'str'}, + } + + def __init__(self, *, blob_name: str=None, **kwargs) -> None: + super(GenerateUploadUriParameter, self).__init__(**kwargs) + self.blob_name = blob_name + + +class GenerateUploadUriResponse(Model): + """Response body for generating an upload URI. + + :param upload_uri: The upload URI for the VHD. + :type upload_uri: str + """ + + _attribute_map = { + 'upload_uri': {'key': 'uploadUri', 'type': 'str'}, + } + + def __init__(self, *, upload_uri: str=None, **kwargs) -> None: + super(GenerateUploadUriResponse, self).__init__(**kwargs) + self.upload_uri = upload_uri + + +class HourDetails(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(HourDetails, self).__init__(**kwargs) + 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 principal_id: The principal id of resource identity. + :type principal_id: str + :param tenant_id: The tenant identifier of resource. + :type tenant_id: str + :param client_secret_url: The client secret URL of the identity. + :type client_secret_url: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + '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: + super(IdentityProperties, self).__init__(**kwargs) + self.type = type + self.principal_id = principal_id + self.tenant_id = tenant_id + self.client_secret_url = client_secret_url + + +class ImportLabVirtualMachineRequest(Model): + """This represents the payload required to import a virtual machine from a + different lab into the current one. + + :param source_virtual_machine_resource_id: The full resource ID of the + virtual machine to be imported. + :type source_virtual_machine_resource_id: str + :param destination_virtual_machine_name: The name of the virtual machine + in the destination lab + :type destination_virtual_machine_name: str + """ + + _attribute_map = { + 'source_virtual_machine_resource_id': {'key': 'sourceVirtualMachineResourceId', 'type': 'str'}, + 'destination_virtual_machine_name': {'key': 'destinationVirtualMachineName', 'type': 'str'}, + } + + def __init__(self, *, source_virtual_machine_resource_id: str=None, destination_virtual_machine_name: str=None, **kwargs) -> None: + super(ImportLabVirtualMachineRequest, self).__init__(**kwargs) + self.source_virtual_machine_resource_id = source_virtual_machine_resource_id + self.destination_virtual_machine_name = destination_virtual_machine_name + + +class InboundNatRule(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(InboundNatRule, self).__init__(**kwargs) + self.transport_protocol = transport_protocol + self.frontend_port = frontend_port + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :ivar default_storage_account: The lab's default storage account. + :vartype default_storage_account: str + :ivar default_premium_storage_account: The lab's default premium storage + account. + :vartype default_premium_storage_account: str + :ivar artifacts_storage_account: The lab's artifact storage account. + :vartype artifacts_storage_account: str + :ivar premium_data_disk_storage_account: The lab's premium data disk + storage account. + :vartype premium_data_disk_storage_account: str + :ivar vault_name: The lab's Key vault. + :vartype vault_name: 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] + :ivar created_date: The creation date of the lab. + :vartype created_date: datetime + :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.LabAnnouncementProperties + :param support: The properties of any lab support message associated with + this lab + :type support: ~azure.mgmt.devtestlabs.models.LabSupportProperties + :ivar vm_creation_resource_group: The resource group in which all new lab + virtual machines will be created. To let DevTest Labs manage resource + group creation, set this value to null. + :vartype vm_creation_resource_group: str + :ivar public_ip_id: The public IP address for the lab's load balancer. + :vartype public_ip_id: str + :ivar load_balancer_id: The load balancer used to for lab VMs that use + shared IP address. + :vartype load_balancer_id: str + :ivar network_security_group_id: The Network Security Group attached to + the lab VMs Network interfaces to restrict open ports. + :vartype network_security_group_id: str + :param extended_properties: Extended properties of the lab used for + experimental features + :type extended_properties: dict[str, str] + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'default_storage_account': {'readonly': True}, + 'default_premium_storage_account': {'readonly': True}, + 'artifacts_storage_account': {'readonly': True}, + 'premium_data_disk_storage_account': {'readonly': True}, + 'vault_name': {'readonly': True}, + 'created_date': {'readonly': True}, + 'vm_creation_resource_group': {'readonly': True}, + 'public_ip_id': {'readonly': True}, + 'load_balancer_id': {'readonly': True}, + 'network_security_group_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_storage_account': {'key': 'properties.defaultStorageAccount', 'type': 'str'}, + 'default_premium_storage_account': {'key': 'properties.defaultPremiumStorageAccount', 'type': 'str'}, + 'artifacts_storage_account': {'key': 'properties.artifactsStorageAccount', 'type': 'str'}, + 'premium_data_disk_storage_account': {'key': 'properties.premiumDataDiskStorageAccount', 'type': 'str'}, + 'vault_name': {'key': 'properties.vaultName', '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]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, + 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, + 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementProperties'}, + 'support': {'key': 'properties.support', 'type': 'LabSupportProperties'}, + 'vm_creation_resource_group': {'key': 'properties.vmCreationResourceGroup', 'type': 'str'}, + 'public_ip_id': {'key': 'properties.publicIpId', 'type': 'str'}, + 'load_balancer_id': {'key': 'properties.loadBalancerId', 'type': 'str'}, + 'network_security_group_id': {'key': 'properties.networkSecurityGroupId', 'type': 'str'}, + 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, 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: + super(Lab, self).__init__(location=location, tags=tags, **kwargs) + self.default_storage_account = None + self.default_premium_storage_account = None + self.artifacts_storage_account = None + self.premium_data_disk_storage_account = None + self.vault_name = None + 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.created_date = None + self.premium_data_disks = premium_data_disks + self.environment_permission = environment_permission + self.announcement = announcement + self.support = support + self.vm_creation_resource_group = None + self.public_ip_id = None + self.load_balancer_id = None + self.network_security_group_id = None + self.extended_properties = extended_properties + self.provisioning_state = None + self.unique_identifier = None + + +class LabAnnouncementProperties(Model): + """Properties of a lab's announcement banner. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _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'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, title: str=None, markdown: str=None, enabled=None, expiration_date=None, expired: bool=None, **kwargs) -> None: + super(LabAnnouncementProperties, self).__init__(**kwargs) + self.title = title + self.markdown = markdown + self.enabled = enabled + self.expiration_date = expiration_date + self.expired = expired + self.provisioning_state = None + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param target_cost: The target cost properties + :type target_cost: ~azure.mgmt.devtestlabs.models.TargetCostProperties + :ivar lab_cost_summary: The lab cost summary component of the cost data. + :vartype lab_cost_summary: + ~azure.mgmt.devtestlabs.models.LabCostSummaryProperties + :ivar lab_cost_details: The lab cost details component of the cost data. + :vartype lab_cost_details: + list[~azure.mgmt.devtestlabs.models.LabCostDetailsProperties] + :ivar resource_costs: The resource cost component of the cost data. + :vartype resource_costs: + list[~azure.mgmt.devtestlabs.models.LabResourceCostProperties] + :param currency_code: The currency code of the cost. + :type currency_code: str + :param start_date_time: The start time of the cost data. + :type start_date_time: datetime + :param end_date_time: The end time of the cost data. + :type end_date_time: datetime + :param created_date: The creation date of the cost. + :type created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'lab_cost_summary': {'readonly': True}, + 'lab_cost_details': {'readonly': True}, + 'resource_costs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'target_cost': {'key': 'properties.targetCost', 'type': 'TargetCostProperties'}, + 'lab_cost_summary': {'key': 'properties.labCostSummary', 'type': 'LabCostSummaryProperties'}, + 'lab_cost_details': {'key': 'properties.labCostDetails', 'type': '[LabCostDetailsProperties]'}, + 'resource_costs': {'key': 'properties.resourceCosts', 'type': '[LabResourceCostProperties]'}, + 'currency_code': {'key': 'properties.currencyCode', 'type': 'str'}, + 'start_date_time': {'key': 'properties.startDateTime', 'type': 'iso-8601'}, + 'end_date_time': {'key': 'properties.endDateTime', 'type': 'iso-8601'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, target_cost=None, currency_code: str=None, start_date_time=None, end_date_time=None, created_date=None, **kwargs) -> None: + super(LabCost, self).__init__(location=location, tags=tags, **kwargs) + self.target_cost = target_cost + self.lab_cost_summary = None + self.lab_cost_details = None + self.resource_costs = None + self.currency_code = currency_code + self.start_date_time = start_date_time + self.end_date_time = end_date_time + self.created_date = created_date + self.provisioning_state = None + self.unique_identifier = None + + +class LabCostDetailsProperties(Model): + """The properties of a lab cost item. + + :param date_property: The date of the cost item. + :type date_property: datetime + :param cost: The cost component of the cost item. + :type cost: float + :param cost_type: The type of the cost. Possible values include: + 'Unavailable', 'Reported', 'Projected' + :type cost_type: str or ~azure.mgmt.devtestlabs.models.CostType + """ + + _attribute_map = { + 'date_property': {'key': 'date', 'type': 'iso-8601'}, + 'cost': {'key': 'cost', 'type': 'float'}, + 'cost_type': {'key': 'costType', 'type': 'str'}, + } + + def __init__(self, *, date_property=None, cost: float=None, cost_type=None, **kwargs) -> None: + super(LabCostDetailsProperties, self).__init__(**kwargs) + self.date_property = date_property + self.cost = cost + self.cost_type = cost_type + + +class LabCostSummaryProperties(Model): + """The properties of the cost summary. + + :param estimated_lab_cost: The cost component of the cost item. + :type estimated_lab_cost: float + """ + + _attribute_map = { + 'estimated_lab_cost': {'key': 'estimatedLabCost', 'type': 'float'}, + } + + def __init__(self, *, estimated_lab_cost: float=None, **kwargs) -> None: + super(LabCostSummaryProperties, self).__init__(**kwargs) + self.estimated_lab_cost = estimated_lab_cost + + +class LabFragment(UpdateResource): + """A lab. + + :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: + 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): + """The properties of a resource cost item. + + :param resourcename: The name of the resource. + :type resourcename: str + :param resource_uid: The unique identifier of the resource. + :type resource_uid: str + :param resource_cost: The cost component of the resource cost item. + :type resource_cost: float + :param resource_type: The logical resource type (ex. virtualmachine, + storageaccount) + :type resource_type: str + :param resource_owner: The owner of the resource (ex. + janedoe@microsoft.com) + :type resource_owner: str + :param resource_pricing_tier: The category of the resource (ex. + Premium_LRS, Standard_DS1) + :type resource_pricing_tier: str + :param resource_status: The status of the resource (ex. Active) + :type resource_status: str + :param resource_id: The ID of the resource + :type resource_id: str + :param external_resource_id: The ID of the external resource + :type external_resource_id: str + """ + + _attribute_map = { + 'resourcename': {'key': 'resourcename', 'type': 'str'}, + 'resource_uid': {'key': 'resourceUId', 'type': 'str'}, + 'resource_cost': {'key': 'resourceCost', 'type': 'float'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_owner': {'key': 'resourceOwner', 'type': 'str'}, + 'resource_pricing_tier': {'key': 'resourcePricingTier', 'type': 'str'}, + 'resource_status': {'key': 'resourceStatus', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'external_resource_id': {'key': 'externalResourceId', 'type': 'str'}, + } + + def __init__(self, *, resourcename: str=None, resource_uid: str=None, resource_cost: float=None, resource_type: str=None, resource_owner: str=None, resource_pricing_tier: str=None, resource_status: str=None, resource_id: str=None, external_resource_id: str=None, **kwargs) -> None: + super(LabResourceCostProperties, self).__init__(**kwargs) + self.resourcename = resourcename + self.resource_uid = resource_uid + self.resource_cost = resource_cost + self.resource_type = resource_type + self.resource_owner = resource_owner + self.resource_pricing_tier = resource_pricing_tier + self.resource_status = resource_status + self.resource_id = resource_id + self.external_resource_id = external_resource_id + + +class LabSupportProperties(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(LabSupportProperties, self).__init__(**kwargs) + self.enabled = enabled + 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. + + :param id: The URI to the VHD. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(LabVhd, self).__init__(**kwargs) + self.id = id + + +class LabVirtualMachine(Resource): + """A virtual machine. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.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: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :param plan_id: The id of the plan associated with the virtual machine + image + :type plan_id: str + :ivar compute_vm: The compute virtual machine properties. + :vartype compute_vm: ~azure.mgmt.devtestlabs.models.ComputeVmProperties + :param network_interface: The network interface properties. + :type network_interface: + ~azure.mgmt.devtestlabs.models.NetworkInterfaceProperties + :ivar applicable_schedule: The applicable schedule for the virtual + machine. + :vartype applicable_schedule: + ~azure.mgmt.devtestlabs.models.ApplicableSchedule + :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.DataDiskProperties] + :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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'compute_vm': {'readonly': True}, + 'applicable_schedule': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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': '[ArtifactInstallProperties]'}, + 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, + 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'compute_vm': {'key': 'properties.computeVm', 'type': 'ComputeVmProperties'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, + 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, + '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'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + '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: + 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_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.compute_vm = None + self.network_interface = network_interface + self.applicable_schedule = None + 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.provisioning_state = None + self.unique_identifier = None + + +class LabVirtualMachineCreationParameter(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.BulkCreationParameters + :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.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: + ~azure.mgmt.devtestlabs.models.GalleryImageReference + :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.NetworkInterfaceProperties + :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.DataDiskProperties] + :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 + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParameters'}, + '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'}, + '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'}, + } + + 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) + 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 + + +class LinuxOsInfo(Model): + """Information about a Linux OS. + + :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 + """ + + _attribute_map = { + 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + } + + def __init__(self, *, linux_os_state=None, **kwargs) -> None: + super(LinuxOsInfo, self).__init__(**kwargs) + self.linux_os_state = linux_os_state + + +class LinuxOsInfoFragment(Model): + """Information about a Linux OS. + + :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 + """ + + _attribute_map = { + 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, + } + + def __init__(self, *, linux_os_state=None, **kwargs) -> None: + super(LinuxOsInfoFragment, self).__init__(**kwargs) + self.linux_os_state = linux_os_state + + +class NetworkInterfaceProperties(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.SharedPublicIpAddressConfiguration + """ + + _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': 'SharedPublicIpAddressConfiguration'}, + } + + 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(NetworkInterfaceProperties, 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 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Event] + :ivar created_date: The creation date of the notification channel. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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': '[Event]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, web_hook_url: str=None, email_recipient: str=None, notification_locale: str=None, description: str=None, events=None, **kwargs) -> None: + super(NotificationChannel, self).__init__(location=location, 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 + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class NotificationChannelFragment(UpdateResource): + """A notification. + + :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: + 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): + """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(NotificationSettings, 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 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. + + :param event_name: The type of event (i.e. AutoShutdown, Cost). Possible + values include: 'AutoShutdown', 'Cost' + :type event_name: str or + ~azure.mgmt.devtestlabs.models.NotificationChannelEventType + :param json_payload: Properties for the notification in json format. + :type json_payload: str + """ + + _attribute_map = { + 'event_name': {'key': 'eventName', 'type': 'str'}, + 'json_payload': {'key': 'jsonPayload', 'type': 'str'}, + } + + def __init__(self, *, event_name=None, json_payload: str=None, **kwargs) -> None: + super(NotifyParameters, self).__init__(**kwargs) + self.event_name = event_name + self.json_payload = json_payload + + +class OperationError(Model): + """Error details for the operation in case of a failure. + + :param code: The error code of the operation error. + :type code: str + :param message: The error message of the operation error. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(OperationError, self).__init__(**kwargs) + self.code = code + self.message = message + + +class OperationMetadata(Model): + """The REST API operation supported by DevTestLab ResourceProvider. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that describes the operations + :type display: ~azure.mgmt.devtestlabs.models.OperationMetadataDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationMetadataDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(OperationMetadata, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationMetadataDisplay(Model): + """The object that describes the operations. + + :param provider: Friendly name of the resource provider + :type provider: str + :param resource: Resource type on which the operation is performed. + :type resource: str + :param operation: Operation type: read, write, delete, listKeys/action, + etc. + :type operation: str + :param description: Friendly name of the operation + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationMetadataDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationResult(Model): + """An Operation Result. + + :param status: The operation status. + :type status: str + :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', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or ~azure.mgmt.devtestlabs.models.HttpStatusCode + :param error: Error details for the operation in case of a failure. + :type error: ~azure.mgmt.devtestlabs.models.OperationError + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'OperationError'}, + } + + def __init__(self, *, status: str=None, status_code=None, error=None, **kwargs) -> None: + super(OperationResult, self).__init__(**kwargs) + self.status = status + self.status_code = status_code + self.error = error + + +class ParameterInfo(Model): + """Information about an artifact's 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(ParameterInfo, self).__init__(**kwargs) + self.name = name + self.value = value + + +class ParametersValueFileInfo(Model): + """A file containing a set of parameter values for an ARM template. + + :param file_name: File name. + :type file_name: str + :param parameters_value_info: Contents of the file. + :type parameters_value_info: object + """ + + _attribute_map = { + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'parameters_value_info': {'key': 'parametersValueInfo', 'type': 'object'}, + } + + def __init__(self, *, file_name: str=None, parameters_value_info=None, **kwargs) -> None: + super(ParametersValueFileInfo, self).__init__(**kwargs) + self.file_name = file_name + self.parameters_value_info = parameters_value_info + + +class PercentageCostThresholdProperties(Model): + """Properties of a percentage cost threshold. + + :param threshold_value: The cost threshold value. + :type threshold_value: float + """ + + _attribute_map = { + 'threshold_value': {'key': 'thresholdValue', 'type': 'float'}, + } + + def __init__(self, *, threshold_value: float=None, **kwargs) -> None: + super(PercentageCostThresholdProperties, self).__init__(**kwargs) + self.threshold_value = threshold_value + + +class Policy(Resource): + """A Policy. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar created_date: The creation date of the policy. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, description: str=None, status=None, fact_name=None, fact_data: str=None, threshold: str=None, evaluator_type=None, **kwargs) -> None: + super(Policy, self).__init__(location=location, 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 + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class PolicyFragment(UpdateResource): + """A Policy. + + :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: + 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): + """Result of a policy set evaluation. + + :param has_error: A value indicating whether this policy set evaluation + has discovered violations. + :type has_error: bool + :param policy_violations: The list of policy violations. + :type policy_violations: + list[~azure.mgmt.devtestlabs.models.PolicyViolation] + """ + + _attribute_map = { + 'has_error': {'key': 'hasError', 'type': 'bool'}, + 'policy_violations': {'key': 'policyViolations', 'type': '[PolicyViolation]'}, + } + + def __init__(self, *, has_error: bool=None, policy_violations=None, **kwargs) -> None: + super(PolicySetResult, self).__init__(**kwargs) + self.has_error = has_error + self.policy_violations = policy_violations + + +class PolicyViolation(Model): + """Policy violation. + + :param code: The code of the policy violation. + :type code: str + :param message: The message of the policy violation. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(PolicyViolation, self).__init__(**kwargs) + self.code = code + self.message = message + + +class Port(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(Port, self).__init__(**kwargs) + self.transport_protocol = transport_protocol + 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. + + :param contents: The contents of the .rdp file + :type contents: str + """ + + _attribute_map = { + 'contents': {'key': 'contents', 'type': 'str'}, + } + + def __init__(self, *, contents: str=None, **kwargs) -> None: + super(RdpConnection, self).__init__(**kwargs) + self.contents = contents + + +class ResizeLabVirtualMachineProperties(Model): + """Request body for resizing a virtual machine. + + :param size: Specifies the size of the virtual machine. + :type size: str + """ + + _attribute_map = { + 'size': {'key': 'size', 'type': 'str'}, + } + + def __init__(self, *, size: str=None, **kwargs) -> None: + super(ResizeLabVirtualMachineProperties, self).__init__(**kwargs) + self.size = size + + +class RetargetScheduleProperties(Model): + """Properties for retargeting a virtual machine schedule. + + :param current_resource_id: The resource Id of the virtual machine on + which the schedule operates + :type current_resource_id: str + :param target_resource_id: The resource Id of the virtual machine that the + schedule should be retargeted to + :type target_resource_id: str + """ + + _attribute_map = { + 'current_resource_id': {'key': 'currentResourceId', 'type': 'str'}, + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, *, current_resource_id: str=None, target_resource_id: str=None, **kwargs) -> None: + super(RetargetScheduleProperties, self).__init__(**kwargs) + self.current_resource_id = current_resource_id + self.target_resource_id = target_resource_id + + +class Schedule(Resource): + """A schedule. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.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 + :ivar created_date: The creation date of the schedule. + :vartype created_date: datetime + :param target_resource_id: The resource ID to which the schedule belongs + :type target_resource_id: str + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + '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'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, 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: + super(Schedule, self).__init__(location=location, 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.created_date = None + self.target_resource_id = target_resource_id + 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, *, 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 + :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': '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'}, + '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(ScheduleCreationParameterFragment, 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 ScheduleFragment(UpdateResource): + """A schedule. + + :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: + 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): + """A secret. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: 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 + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, value: str=None, **kwargs) -> None: + super(Secret, self).__init__(location=location, tags=tags, **kwargs) + self.value = value + self.provisioning_state = None + self.unique_identifier = None + + +class SecretFragment(UpdateResource): + """A secret. + + :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: + super(SecretFragment, self).__init__(tags=tags, **kwargs) + self.value = value + + +class ServiceFabric(Resource): + """A Service Fabric. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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 + :ivar applicable_schedule: The applicable schedule for the virtual + machine. + :vartype applicable_schedule: + ~azure.mgmt.devtestlabs.models.ApplicableSchedule + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'applicable_schedule': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, + 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, + 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, external_service_fabric_id: str=None, environment_id: str=None, **kwargs) -> None: + super(ServiceFabric, self).__init__(location=location, tags=tags, **kwargs) + self.external_service_fabric_id = external_service_fabric_id + self.environment_id = environment_id + self.applicable_schedule = None + self.provisioning_state = None + self.unique_identifier = None + + +class ServiceFabricFragment(UpdateResource): + """A Service Fabric. + + :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: + super(ServiceFabricFragment, self).__init__(tags=tags, **kwargs) + self.external_service_fabric_id = external_service_fabric_id + self.environment_id = environment_id + + +class ServiceRunner(Resource): + """A container for a managed identity to execute DevTest lab services. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The identifier of the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.devtestlabs.models.IdentityProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, + } + + def __init__(self, *, location: str=None, tags=None, identity=None, **kwargs) -> None: + super(ServiceRunner, self).__init__(location=location, tags=tags, **kwargs) + self.identity = identity + + +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.InboundNatRule] + """ + + _attribute_map = { + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, + } + + def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: + super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) + self.inbound_nat_rules = inbound_nat_rules + + +class SharedPublicIpAddressConfigurationFragment(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] + """ + + _attribute_map = { + 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, + } + + def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: + super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) + self.inbound_nat_rules = inbound_nat_rules + + +class ShutdownNotificationContent(Model): + """The contents of a shutdown notification. Webhooks can use this type to + deserialize the request body when they get notified of an imminent + shutdown. + + :param skip_url: The URL to skip auto-shutdown. + :type skip_url: str + :param delay_url60: The URL to delay shutdown by 60 minutes. + :type delay_url60: str + :param delay_url120: The URL to delay shutdown by 2 hours. + :type delay_url120: str + :param vm_name: The virtual machine to be shut down. + :type vm_name: str + :param guid: The GUID for the virtual machine to be shut down. + :type guid: str + :param owner: The owner of the virtual machine. + :type owner: str + :param vm_url: The URL of the virtual machine. + :type vm_url: str + :param minutes_until_shutdown: Minutes remaining until shutdown + :type minutes_until_shutdown: str + :param event_type: The event for which a notification will be sent. + :type event_type: str + :param text: The text for the notification. + :type text: str + :param subscription_id: The subscription ID for the schedule. + :type subscription_id: str + :param resource_group_name: The resource group name for the schedule. + :type resource_group_name: str + :param lab_name: The lab for the schedule. + :type lab_name: str + """ + + _attribute_map = { + 'skip_url': {'key': 'skipUrl', 'type': 'str'}, + 'delay_url60': {'key': 'delayUrl60', 'type': 'str'}, + 'delay_url120': {'key': 'delayUrl120', 'type': 'str'}, + 'vm_name': {'key': 'vmName', 'type': 'str'}, + 'guid': {'key': 'guid', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'vm_url': {'key': 'vmUrl', 'type': 'str'}, + 'minutes_until_shutdown': {'key': 'minutesUntilShutdown', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, + 'lab_name': {'key': 'labName', 'type': 'str'}, + } + + def __init__(self, *, skip_url: str=None, delay_url60: str=None, delay_url120: str=None, vm_name: str=None, guid: str=None, owner: str=None, vm_url: str=None, minutes_until_shutdown: str=None, event_type: str=None, text: str=None, subscription_id: str=None, resource_group_name: str=None, lab_name: str=None, **kwargs) -> None: + super(ShutdownNotificationContent, self).__init__(**kwargs) + self.skip_url = skip_url + self.delay_url60 = delay_url60 + self.delay_url120 = delay_url120 + self.vm_name = vm_name + self.guid = guid + self.owner = owner + self.vm_url = vm_url + self.minutes_until_shutdown = minutes_until_shutdown + self.event_type = event_type + self.text = text + self.subscription_id = subscription_id + self.resource_group_name = resource_group_name + self.lab_name = lab_name + + +class Subnet(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(Subnet, self).__init__(**kwargs) + self.resource_id = resource_id + self.lab_subnet_name = lab_subnet_name + 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. + + :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.SubnetSharedPublicIpAddressConfiguration + :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': 'SubnetSharedPublicIpAddressConfiguration'}, + '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(SubnetOverride, 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 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. + + :param allowed_ports: Backend ports that virtual machines on this subnet + are allowed to expose + :type allowed_ports: list[~azure.mgmt.devtestlabs.models.Port] + """ + + _attribute_map = { + 'allowed_ports': {'key': 'allowedPorts', 'type': '[Port]'}, + } + + def __init__(self, *, allowed_ports=None, **kwargs) -> None: + super(SubnetSharedPublicIpAddressConfiguration, self).__init__(**kwargs) + 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. + + :param status: Target cost status. Possible values include: 'Enabled', + 'Disabled' + :type status: str or ~azure.mgmt.devtestlabs.models.TargetCostStatus + :param target: Lab target cost + :type target: int + :param cost_thresholds: Cost thresholds. + :type cost_thresholds: + list[~azure.mgmt.devtestlabs.models.CostThresholdProperties] + :param cycle_start_date_time: Reporting cycle start date. + :type cycle_start_date_time: datetime + :param cycle_end_date_time: Reporting cycle end date. + :type cycle_end_date_time: datetime + :param cycle_type: Reporting cycle type. Possible values include: + 'CalendarMonth', 'Custom' + :type cycle_type: str or ~azure.mgmt.devtestlabs.models.ReportingCycleType + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'int'}, + 'cost_thresholds': {'key': 'costThresholds', 'type': '[CostThresholdProperties]'}, + 'cycle_start_date_time': {'key': 'cycleStartDateTime', 'type': 'iso-8601'}, + 'cycle_end_date_time': {'key': 'cycleEndDateTime', 'type': 'iso-8601'}, + 'cycle_type': {'key': 'cycleType', 'type': 'str'}, + } + + def __init__(self, *, status=None, target: int=None, cost_thresholds=None, cycle_start_date_time=None, cycle_end_date_time=None, cycle_type=None, **kwargs) -> None: + super(TargetCostProperties, self).__init__(**kwargs) + self.status = status + self.target = target + self.cost_thresholds = cost_thresholds + self.cycle_start_date_time = cycle_start_date_time + self.cycle_end_date_time = cycle_end_date_time + self.cycle_type = cycle_type + + +class User(Resource): + """Profile of a lab user. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.UserIdentity + :param secret_store: The secret store of the user. + :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStore + :ivar created_date: The creation date of the user profile. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'properties.identity', 'type': 'UserIdentity'}, + 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStore'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, identity=None, secret_store=None, **kwargs) -> None: + super(User, self).__init__(location=location, tags=tags, **kwargs) + self.identity = identity + self.secret_store = secret_store + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class UserFragment(UpdateResource): + """Profile of a lab user. + + :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: + super(UserFragment, self).__init__(tags=tags, **kwargs) + self.identity = identity + self.secret_store = secret_store + + +class UserIdentity(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(UserIdentity, 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 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. + + :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(UserSecretStore, self).__init__(**kwargs) + self.key_vault_uri = key_vault_uri + 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. + + 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 + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The location of the resource. + :type location: str + :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.Subnet] + :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 + :ivar external_subnets: The external subnet properties. + :vartype external_subnets: + list[~azure.mgmt.devtestlabs.models.ExternalSubnet] + :param subnet_overrides: The subnet overrides of the virtual network. + :type subnet_overrides: + list[~azure.mgmt.devtestlabs.models.SubnetOverride] + :ivar created_date: The creation date of the virtual network. + :vartype created_date: datetime + :ivar provisioning_state: The provisioning status of the resource. + :vartype provisioning_state: str + :ivar unique_identifier: The unique immutable identifier of a resource + (Guid). + :vartype unique_identifier: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'external_subnets': {'readonly': True}, + 'created_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'unique_identifier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[Subnet]'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, + 'external_subnets': {'key': 'properties.externalSubnets', 'type': '[ExternalSubnet]'}, + 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverride]'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, allowed_subnets=None, description: str=None, external_provider_resource_id: str=None, subnet_overrides=None, **kwargs) -> None: + super(VirtualNetwork, self).__init__(location=location, tags=tags, **kwargs) + self.allowed_subnets = allowed_subnets + self.description = description + self.external_provider_resource_id = external_provider_resource_id + self.external_subnets = None + self.subnet_overrides = subnet_overrides + self.created_date = None + self.provisioning_state = None + self.unique_identifier = None + + +class VirtualNetworkFragment(UpdateResource): + """A virtual network. + + :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: + 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): + """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(WeekDetails, self).__init__(**kwargs) + self.weekdays = weekdays + 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. + + :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(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/models/_paged_models.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_paged_models.py new file mode 100644 index 000000000000..3e947c89d709 --- /dev/null +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/_paged_models.py @@ -0,0 +1,261 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationMetadataPaged(Paged): + """ + A paging container for iterating over a list of :class:`OperationMetadata ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OperationMetadata]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationMetadataPaged, self).__init__(*args, **kwargs) +class LabPaged(Paged): + """ + A paging container for iterating over a list of :class:`Lab ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Lab]'} + } + + def __init__(self, *args, **kwargs): + + super(LabPaged, self).__init__(*args, **kwargs) +class LabVhdPaged(Paged): + """ + A paging container for iterating over a list of :class:`LabVhd ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LabVhd]'} + } + + def __init__(self, *args, **kwargs): + + super(LabVhdPaged, self).__init__(*args, **kwargs) +class SchedulePaged(Paged): + """ + A paging container for iterating over a list of :class:`Schedule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Schedule]'} + } + + def __init__(self, *args, **kwargs): + + super(SchedulePaged, self).__init__(*args, **kwargs) +class ArtifactSourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ArtifactSource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ArtifactSource]'} + } + + def __init__(self, *args, **kwargs): + + super(ArtifactSourcePaged, self).__init__(*args, **kwargs) +class ArmTemplatePaged(Paged): + """ + A paging container for iterating over a list of :class:`ArmTemplate ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ArmTemplate]'} + } + + def __init__(self, *args, **kwargs): + + super(ArmTemplatePaged, self).__init__(*args, **kwargs) +class ArtifactPaged(Paged): + """ + A paging container for iterating over a list of :class:`Artifact ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Artifact]'} + } + + def __init__(self, *args, **kwargs): + + super(ArtifactPaged, self).__init__(*args, **kwargs) +class CustomImagePaged(Paged): + """ + A paging container for iterating over a list of :class:`CustomImage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CustomImage]'} + } + + def __init__(self, *args, **kwargs): + + super(CustomImagePaged, self).__init__(*args, **kwargs) +class FormulaPaged(Paged): + """ + A paging container for iterating over a list of :class:`Formula ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Formula]'} + } + + def __init__(self, *args, **kwargs): + + super(FormulaPaged, self).__init__(*args, **kwargs) +class GalleryImagePaged(Paged): + """ + A paging container for iterating over a list of :class:`GalleryImage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GalleryImage]'} + } + + def __init__(self, *args, **kwargs): + + super(GalleryImagePaged, self).__init__(*args, **kwargs) +class NotificationChannelPaged(Paged): + """ + A paging container for iterating over a list of :class:`NotificationChannel ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NotificationChannel]'} + } + + def __init__(self, *args, **kwargs): + + super(NotificationChannelPaged, self).__init__(*args, **kwargs) +class PolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`Policy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Policy]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyPaged, self).__init__(*args, **kwargs) +class UserPaged(Paged): + """ + A paging container for iterating over a list of :class:`User ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[User]'} + } + + def __init__(self, *args, **kwargs): + + super(UserPaged, self).__init__(*args, **kwargs) +class DiskPaged(Paged): + """ + A paging container for iterating over a list of :class:`Disk ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Disk]'} + } + + def __init__(self, *args, **kwargs): + + super(DiskPaged, self).__init__(*args, **kwargs) +class DtlEnvironmentPaged(Paged): + """ + A paging container for iterating over a list of :class:`DtlEnvironment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DtlEnvironment]'} + } + + def __init__(self, *args, **kwargs): + + super(DtlEnvironmentPaged, self).__init__(*args, **kwargs) +class SecretPaged(Paged): + """ + A paging container for iterating over a list of :class:`Secret ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Secret]'} + } + + def __init__(self, *args, **kwargs): + + super(SecretPaged, self).__init__(*args, **kwargs) +class ServiceFabricPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceFabric ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceFabric]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceFabricPaged, self).__init__(*args, **kwargs) +class LabVirtualMachinePaged(Paged): + """ + A paging container for iterating over a list of :class:`LabVirtualMachine ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LabVirtualMachine]'} + } + + def __init__(self, *args, **kwargs): + + super(LabVirtualMachinePaged, self).__init__(*args, **kwargs) +class VirtualNetworkPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetwork ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule.py deleted file mode 100644 index bbdc049f2f3f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ApplicableSchedule(Resource): - """Schedules applicable to a virtual machine. The schedules may have been - defined on a VM or on lab level. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Schedule - :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.Schedule - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'Schedule'}, - 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'Schedule'}, - } - - def __init__(self, **kwargs): - super(ApplicableSchedule, self).__init__(**kwargs) - self.lab_vms_shutdown = kwargs.get('lab_vms_shutdown', None) - self.lab_vms_startup = kwargs.get('lab_vms_startup', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment.py deleted file mode 100644 index 8139b26bbb37..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class ApplicableScheduleFragment(UpdateResource): - """Schedules applicable to a virtual machine. The schedules may have been - defined on a VM or on lab level. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment_py3.py deleted file mode 100644 index d1ddb7b37caa..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class ApplicableScheduleFragment(UpdateResource): - """Schedules applicable to a virtual machine. The schedules may have been - defined on a VM or on lab level. - - :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: - super(ApplicableScheduleFragment, self).__init__(tags=tags, **kwargs) - self.lab_vms_shutdown = lab_vms_shutdown - self.lab_vms_startup = lab_vms_startup diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_py3.py deleted file mode 100644 index dabce38bbcae..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ApplicableSchedule(Resource): - """Schedules applicable to a virtual machine. The schedules may have been - defined on a VM or on lab level. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Schedule - :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.Schedule - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'lab_vms_shutdown': {'key': 'properties.labVmsShutdown', 'type': 'Schedule'}, - 'lab_vms_startup': {'key': 'properties.labVmsStartup', 'type': 'Schedule'}, - } - - def __init__(self, *, location: str=None, tags=None, lab_vms_shutdown=None, lab_vms_startup=None, **kwargs) -> None: - super(ApplicableSchedule, self).__init__(location=location, tags=tags, **kwargs) - self.lab_vms_shutdown = lab_vms_shutdown - self.lab_vms_startup = lab_vms_startup diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request.py deleted file mode 100644 index 5576e79bf0ad..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplyArtifactsRequest(Model): - """Request body for applying artifacts to a virtual machine. - - :param artifacts: The list of artifacts to apply. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactInstallProperties]'}, - } - - def __init__(self, **kwargs): - super(ApplyArtifactsRequest, self).__init__(**kwargs) - self.artifacts = kwargs.get('artifacts', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request_py3.py deleted file mode 100644 index 2e5de7eca69f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplyArtifactsRequest(Model): - """Request body for applying artifacts to a virtual machine. - - :param artifacts: The list of artifacts to apply. - :type artifacts: - list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties] - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactInstallProperties]'}, - } - - def __init__(self, *, artifacts=None, **kwargs) -> None: - super(ApplyArtifactsRequest, self).__init__(**kwargs) - self.artifacts = artifacts diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template.py deleted file mode 100644 index 9ff3ebed92de..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ArmTemplate(Resource): - """An Azure Resource Manager template. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar display_name: The display name of the ARM template. - :vartype display_name: str - :ivar description: The description of the ARM template. - :vartype description: str - :ivar publisher: The publisher of the ARM template. - :vartype publisher: str - :ivar icon: The URI to the icon of the ARM template. - :vartype icon: str - :ivar contents: The contents of the ARM template. - :vartype contents: object - :ivar created_date: The creation date of the armTemplate. - :vartype created_date: datetime - :ivar parameters_value_files_info: File name and parameter values - information from all azuredeploy.*.parameters.json for the ARM template. - :vartype parameters_value_files_info: - list[~azure.mgmt.devtestlabs.models.ParametersValueFileInfo] - :ivar enabled: Whether or not ARM template is enabled for use by lab user. - :vartype enabled: bool - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'publisher': {'readonly': True}, - 'icon': {'readonly': True}, - 'contents': {'readonly': True}, - 'created_date': {'readonly': True}, - 'parameters_value_files_info': {'readonly': True}, - 'enabled': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'contents': {'key': 'properties.contents', 'type': 'object'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'parameters_value_files_info': {'key': 'properties.parametersValueFilesInfo', 'type': '[ParametersValueFileInfo]'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ArmTemplate, self).__init__(**kwargs) - self.display_name = None - self.description = None - self.publisher = None - self.icon = None - self.contents = None - self.created_date = None - self.parameters_value_files_info = None - self.enabled = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info.py deleted file mode 100644 index 9706cf3d1122..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArmTemplateInfo(Model): - """Information about a generated ARM template. - - :param template: The template's contents. - :type template: object - :param parameters: The parameters of the ARM template. - :type parameters: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ArmTemplateInfo, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info_py3.py deleted file mode 100644 index 6194e4d20559..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArmTemplateInfo(Model): - """Information about a generated ARM template. - - :param template: The template's contents. - :type template: object - :param parameters: The parameters of the ARM template. - :type parameters: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, *, template=None, parameters=None, **kwargs) -> None: - super(ArmTemplateInfo, self).__init__(**kwargs) - self.template = template - self.parameters = parameters diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_paged.py deleted file mode 100644 index e209fa704487..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ArmTemplatePaged(Paged): - """ - A paging container for iterating over a list of :class:`ArmTemplate ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ArmTemplate]'} - } - - def __init__(self, *args, **kwargs): - - super(ArmTemplatePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties.py deleted file mode 100644 index 9c939b46ff98..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArmTemplateParameterProperties(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(ArmTemplateParameterProperties, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment.py deleted file mode 100644 index c73b8c260aee..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment_py3.py deleted file mode 100644 index ca110d0ee441..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_fragment_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_py3.py deleted file mode 100644 index 16ab6753be2e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_parameter_properties_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArmTemplateParameterProperties(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(ArmTemplateParameterProperties, self).__init__(**kwargs) - self.name = name - self.value = value diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_py3.py deleted file mode 100644 index 64b55696e79c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_py3.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ArmTemplate(Resource): - """An Azure Resource Manager template. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar display_name: The display name of the ARM template. - :vartype display_name: str - :ivar description: The description of the ARM template. - :vartype description: str - :ivar publisher: The publisher of the ARM template. - :vartype publisher: str - :ivar icon: The URI to the icon of the ARM template. - :vartype icon: str - :ivar contents: The contents of the ARM template. - :vartype contents: object - :ivar created_date: The creation date of the armTemplate. - :vartype created_date: datetime - :ivar parameters_value_files_info: File name and parameter values - information from all azuredeploy.*.parameters.json for the ARM template. - :vartype parameters_value_files_info: - list[~azure.mgmt.devtestlabs.models.ParametersValueFileInfo] - :ivar enabled: Whether or not ARM template is enabled for use by lab user. - :vartype enabled: bool - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'publisher': {'readonly': True}, - 'icon': {'readonly': True}, - 'contents': {'readonly': True}, - 'created_date': {'readonly': True}, - 'parameters_value_files_info': {'readonly': True}, - 'enabled': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'contents': {'key': 'properties.contents', 'type': 'object'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'parameters_value_files_info': {'key': 'properties.parametersValueFilesInfo', 'type': '[ParametersValueFileInfo]'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(ArmTemplate, self).__init__(location=location, tags=tags, **kwargs) - self.display_name = None - self.description = None - self.publisher = None - self.icon = None - self.contents = None - self.created_date = None - self.parameters_value_files_info = None - self.enabled = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py deleted file mode 100644 index cf1884020662..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Artifact(Resource): - """An artifact. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar title: The artifact's title. - :vartype title: str - :ivar description: The artifact's description. - :vartype description: str - :ivar publisher: The artifact's publisher. - :vartype publisher: str - :ivar file_path: The file path to the artifact. - :vartype file_path: str - :ivar icon: The URI to the artifact icon. - :vartype icon: str - :ivar target_os_type: The artifact's target OS. - :vartype target_os_type: str - :ivar parameters: The artifact's parameters. - :vartype parameters: object - :ivar created_date: The artifact's creation date. - :vartype created_date: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'title': {'readonly': True}, - 'description': {'readonly': True}, - 'publisher': {'readonly': True}, - 'file_path': {'readonly': True}, - 'icon': {'readonly': True}, - 'target_os_type': {'readonly': True}, - 'parameters': {'readonly': True}, - 'created_date': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'target_os_type': {'key': 'properties.targetOsType', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(Artifact, self).__init__(**kwargs) - self.title = None - self.description = None - self.publisher = None - self.file_path = None - self.icon = None - self.target_os_type = None - self.parameters = None - self.created_date = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties.py deleted file mode 100644 index 00e10ab200d7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactDeploymentStatusProperties(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(ArtifactDeploymentStatusProperties, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment.py deleted file mode 100644 index b5231c92c635..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment_py3.py deleted file mode 100644 index d3dd5372ef6d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_fragment_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_py3.py deleted file mode 100644 index 5b38610af59e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_deployment_status_properties_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactDeploymentStatusProperties(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(ArtifactDeploymentStatusProperties, self).__init__(**kwargs) - self.deployment_status = deployment_status - self.artifacts_applied = artifacts_applied - self.total_artifacts = total_artifacts diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties.py deleted file mode 100644 index 7a976ea8f7b1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactInstallProperties(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.ArtifactParameterProperties] - :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': '[ArtifactParameterProperties]'}, - '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(ArtifactInstallProperties, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment.py deleted file mode 100644 index 0149af16d549..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment_py3.py deleted file mode 100644 index 4aa552477186..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_fragment_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_py3.py deleted file mode 100644 index 3df682e56bc6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactInstallProperties(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.ArtifactParameterProperties] - :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': '[ArtifactParameterProperties]'}, - '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(ArtifactInstallProperties, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_paged.py deleted file mode 100644 index 67c8e3601237..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ArtifactPaged(Paged): - """ - A paging container for iterating over a list of :class:`Artifact ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Artifact]'} - } - - def __init__(self, *args, **kwargs): - - super(ArtifactPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties.py deleted file mode 100644 index 546480baabd2..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactParameterProperties(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(ArtifactParameterProperties, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment.py deleted file mode 100644 index 77be250d5e11..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment_py3.py deleted file mode 100644 index 326ea3643623..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_fragment_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_py3.py deleted file mode 100644 index c3ef4207b385..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_parameter_properties_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactParameterProperties(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(ArtifactParameterProperties, self).__init__(**kwargs) - self.name = name - self.value = value diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_py3.py deleted file mode 100644 index 9e36ad2abf3f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Artifact(Resource): - """An artifact. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar title: The artifact's title. - :vartype title: str - :ivar description: The artifact's description. - :vartype description: str - :ivar publisher: The artifact's publisher. - :vartype publisher: str - :ivar file_path: The file path to the artifact. - :vartype file_path: str - :ivar icon: The URI to the artifact icon. - :vartype icon: str - :ivar target_os_type: The artifact's target OS. - :vartype target_os_type: str - :ivar parameters: The artifact's parameters. - :vartype parameters: object - :ivar created_date: The artifact's creation date. - :vartype created_date: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'title': {'readonly': True}, - 'description': {'readonly': True}, - 'publisher': {'readonly': True}, - 'file_path': {'readonly': True}, - 'icon': {'readonly': True}, - 'target_os_type': {'readonly': True}, - 'parameters': {'readonly': True}, - 'created_date': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'publisher': {'key': 'properties.publisher', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'target_os_type': {'key': 'properties.targetOsType', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Artifact, self).__init__(location=location, tags=tags, **kwargs) - self.title = None - self.description = None - self.publisher = None - self.file_path = None - self.icon = None - self.target_os_type = None - self.parameters = None - self.created_date = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source.py deleted file mode 100644 index ba6cbfc20988..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ArtifactSource(Resource): - """Properties of an artifact source. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar created_date: The artifact source's creation date. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ArtifactSource, 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) - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment.py deleted file mode 100644 index 3c07b25eeb13..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class ArtifactSourceFragment(UpdateResource): - """Properties of an artifact source. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment_py3.py deleted file mode 100644 index a243837b76d0..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class ArtifactSourceFragment(UpdateResource): - """Properties of an artifact source. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_paged.py deleted file mode 100644 index d5990ee0e94f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ArtifactSourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ArtifactSource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ArtifactSource]'} - } - - def __init__(self, *args, **kwargs): - - super(ArtifactSourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_py3.py deleted file mode 100644 index 53eeac5462f6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_py3.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ArtifactSource(Resource): - """Properties of an artifact source. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar created_date: The artifact source's creation date. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, 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: - super(ArtifactSource, self).__init__(location=location, 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 - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties.py deleted file mode 100644 index 1935925ef669..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AttachDiskProperties(Model): - """Properties of the disk to attach. - - :param leased_by_lab_vm_id: The resource ID of the Lab virtual machine to - which the disk is attached. - :type leased_by_lab_vm_id: str - """ - - _attribute_map = { - 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AttachDiskProperties, self).__init__(**kwargs) - self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties_py3.py deleted file mode 100644 index 6cf94213e53e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_disk_properties_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AttachDiskProperties(Model): - """Properties of the disk to attach. - - :param leased_by_lab_vm_id: The resource ID of the Lab virtual machine to - which the disk is attached. - :type leased_by_lab_vm_id: str - """ - - _attribute_map = { - 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, - } - - def __init__(self, *, leased_by_lab_vm_id: str=None, **kwargs) -> None: - super(AttachDiskProperties, self).__init__(**kwargs) - self.leased_by_lab_vm_id = leased_by_lab_vm_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options.py deleted file mode 100644 index c4c18be9b277..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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. - :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' - :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(AttachNewDataDiskOptions, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment.py deleted file mode 100644 index 4ab7695dd872..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment_py3.py deleted file mode 100644 index ec8d6863f811..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_fragment_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_py3.py deleted file mode 100644 index a03bb685e96c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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. - :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' - :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(AttachNewDataDiskOptions, self).__init__(**kwargs) - self.disk_size_gi_b = disk_size_gi_b - self.disk_name = disk_name - self.disk_type = disk_type diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters.py deleted file mode 100644 index f54138ff7a98..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BulkCreationParameters(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(BulkCreationParameters, self).__init__(**kwargs) - self.instance_count = kwargs.get('instance_count', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment.py deleted file mode 100644 index 1f03bf7aeffd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment_py3.py deleted file mode 100644 index 3d78014f88c5..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_fragment_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_py3.py deleted file mode 100644 index c17ac0c6da94..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/bulk_creation_parameters_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BulkCreationParameters(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(BulkCreationParameters, self).__init__(**kwargs) - self.instance_count = instance_count diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk.py deleted file mode 100644 index 36637b964ecc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeDataDisk(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(ComputeDataDisk, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment.py deleted file mode 100644 index 5dc673a52f22..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment_py3.py deleted file mode 100644 index 22fcaa4b3ad8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_fragment_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_py3.py deleted file mode 100644 index c88f007a5c0d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_data_disk_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeDataDisk(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(ComputeDataDisk, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status.py deleted file mode 100644 index 896d9562e61d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeVmInstanceViewStatus(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(ComputeVmInstanceViewStatus, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.display_status = kwargs.get('display_status', None) - self.message = kwargs.get('message', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment.py deleted file mode 100644 index 2b403562e4df..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment_py3.py deleted file mode 100644 index 81b1bd388f89..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_fragment_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_py3.py deleted file mode 100644 index 75fca83157a1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_instance_view_status_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeVmInstanceViewStatus(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(ComputeVmInstanceViewStatus, self).__init__(**kwargs) - self.code = code - self.display_status = display_status - self.message = message diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties.py deleted file mode 100644 index e4b785b9c47a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeVmProperties(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.ComputeVmInstanceViewStatus] - :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.ComputeDataDisk] - """ - - _attribute_map = { - 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatus]'}, - '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': '[ComputeDataDisk]'}, - } - - def __init__(self, **kwargs): - super(ComputeVmProperties, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment.py deleted file mode 100644 index c6295526ebd6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment_py3.py deleted file mode 100644 index 7668ed7983c1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_py3.py deleted file mode 100644 index 90c4ae4e246a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputeVmProperties(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.ComputeVmInstanceViewStatus] - :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.ComputeDataDisk] - """ - - _attribute_map = { - 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatus]'}, - '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': '[ComputeDataDisk]'}, - } - - 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(ComputeVmProperties, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties.py deleted file mode 100644 index 73269a4dd25d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CostThresholdProperties(Model): - """Properties of a cost threshold item. - - :param threshold_id: The ID of the cost threshold item. - :type threshold_id: str - :param percentage_threshold: The value of the percentage cost threshold. - :type percentage_threshold: - ~azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties - :param display_on_chart: Indicates whether this threshold will be - displayed on cost charts. Possible values include: 'Enabled', 'Disabled' - :type display_on_chart: str or - ~azure.mgmt.devtestlabs.models.CostThresholdStatus - :param send_notification_when_exceeded: Indicates whether notifications - will be sent when this threshold is exceeded. Possible values include: - 'Enabled', 'Disabled' - :type send_notification_when_exceeded: str or - ~azure.mgmt.devtestlabs.models.CostThresholdStatus - :param notification_sent: Indicates the datetime when notifications were - last sent for this threshold. - :type notification_sent: str - """ - - _attribute_map = { - 'threshold_id': {'key': 'thresholdId', 'type': 'str'}, - 'percentage_threshold': {'key': 'percentageThreshold', 'type': 'PercentageCostThresholdProperties'}, - 'display_on_chart': {'key': 'displayOnChart', 'type': 'str'}, - 'send_notification_when_exceeded': {'key': 'sendNotificationWhenExceeded', 'type': 'str'}, - 'notification_sent': {'key': 'notificationSent', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CostThresholdProperties, self).__init__(**kwargs) - self.threshold_id = kwargs.get('threshold_id', None) - self.percentage_threshold = kwargs.get('percentage_threshold', None) - self.display_on_chart = kwargs.get('display_on_chart', None) - self.send_notification_when_exceeded = kwargs.get('send_notification_when_exceeded', None) - self.notification_sent = kwargs.get('notification_sent', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties_py3.py deleted file mode 100644 index fba335d6c3e5..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CostThresholdProperties(Model): - """Properties of a cost threshold item. - - :param threshold_id: The ID of the cost threshold item. - :type threshold_id: str - :param percentage_threshold: The value of the percentage cost threshold. - :type percentage_threshold: - ~azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties - :param display_on_chart: Indicates whether this threshold will be - displayed on cost charts. Possible values include: 'Enabled', 'Disabled' - :type display_on_chart: str or - ~azure.mgmt.devtestlabs.models.CostThresholdStatus - :param send_notification_when_exceeded: Indicates whether notifications - will be sent when this threshold is exceeded. Possible values include: - 'Enabled', 'Disabled' - :type send_notification_when_exceeded: str or - ~azure.mgmt.devtestlabs.models.CostThresholdStatus - :param notification_sent: Indicates the datetime when notifications were - last sent for this threshold. - :type notification_sent: str - """ - - _attribute_map = { - 'threshold_id': {'key': 'thresholdId', 'type': 'str'}, - 'percentage_threshold': {'key': 'percentageThreshold', 'type': 'PercentageCostThresholdProperties'}, - 'display_on_chart': {'key': 'displayOnChart', 'type': 'str'}, - 'send_notification_when_exceeded': {'key': 'sendNotificationWhenExceeded', 'type': 'str'}, - 'notification_sent': {'key': 'notificationSent', 'type': 'str'}, - } - - def __init__(self, *, threshold_id: str=None, percentage_threshold=None, display_on_chart=None, send_notification_when_exceeded=None, notification_sent: str=None, **kwargs) -> None: - super(CostThresholdProperties, self).__init__(**kwargs) - self.threshold_id = threshold_id - self.percentage_threshold = percentage_threshold - self.display_on_chart = display_on_chart - self.send_notification_when_exceeded = send_notification_when_exceeded - self.notification_sent = notification_sent diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image.py deleted file mode 100644 index 136ee0481ee1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class CustomImage(Resource): - """A custom image. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.CustomImagePropertiesFromVm - :param vhd: The VHD from which the image is to be created. - :type vhd: ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom - :param description: The description of the custom image. - :type description: str - :param author: The author of the custom image. - :type author: str - :ivar creation_date: The creation date of the custom image. - :vartype creation_date: datetime - :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.DataDiskStorageTypeInfo] - :param custom_image_plan: Storage information about the plan related to - this custom image - :type custom_image_plan: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlan - :param is_plan_authorized: Whether or not the custom images underlying - offer/plan has been enabled for programmatic deployment - :type is_plan_authorized: bool - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'creation_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVm'}, - 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustom'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, - 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, - 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, - 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfo]'}, - 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlan'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomImage, 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.creation_date = 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) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment.py deleted file mode 100644 index 5ac36c53a6cd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class CustomImageFragment(UpdateResource): - """A custom image. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment_py3.py deleted file mode 100644 index a3ccac2274eb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_fragment_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class CustomImageFragment(UpdateResource): - """A custom image. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_paged.py deleted file mode 100644 index d0e4b61d4560..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class CustomImagePaged(Paged): - """ - A paging container for iterating over a list of :class:`CustomImage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[CustomImage]'} - } - - def __init__(self, *args, **kwargs): - - super(CustomImagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py deleted file mode 100644 index a1bd5ab66712..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesCustom(Model): - """Properties for creating a custom image from a VHD. - - All required parameters must be populated in order to send to Azure. - - :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: Required. 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 - """ - - _validation = { - 'os_type': {'required': True}, - } - - _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(CustomImagePropertiesCustom, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment.py deleted file mode 100644 index 4fc581738e57..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment_py3.py deleted file mode 100644 index 3869682ca53d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_fragment_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_py3.py deleted file mode 100644 index 5aede6b5507c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesCustom(Model): - """Properties for creating a custom image from a VHD. - - All required parameters must be populated in order to send to Azure. - - :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: Required. 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 - """ - - _validation = { - 'os_type': {'required': True}, - } - - _attribute_map = { - 'image_name': {'key': 'imageName', 'type': 'str'}, - 'sys_prep': {'key': 'sysPrep', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - } - - def __init__(self, *, os_type, image_name: str=None, sys_prep: bool=None, **kwargs) -> None: - super(CustomImagePropertiesCustom, self).__init__(**kwargs) - self.image_name = image_name - self.sys_prep = sys_prep - self.os_type = os_type diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan.py deleted file mode 100644 index 37067a750936..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesFromPlan(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(CustomImagePropertiesFromPlan, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.publisher = kwargs.get('publisher', None) - self.offer = kwargs.get('offer', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment.py deleted file mode 100644 index b8db62a3738f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment_py3.py deleted file mode 100644 index 159740e13c32..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_fragment_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_py3.py deleted file mode 100644 index fcbfeea22012..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_plan_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesFromPlan(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(CustomImagePropertiesFromPlan, self).__init__(**kwargs) - self.id = id - self.publisher = publisher - self.offer = offer diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm.py deleted file mode 100644 index d08828df0def..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesFromVm(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.WindowsOsInfo - :param linux_os_info: The Linux OS information of the VM. - :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfo - """ - - _attribute_map = { - 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, - 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfo'}, - 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfo'}, - } - - def __init__(self, **kwargs): - super(CustomImagePropertiesFromVm, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment.py deleted file mode 100644 index c0274dab51e7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment_py3.py deleted file mode 100644 index 437a4005cf1e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_fragment_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_py3.py deleted file mode 100644 index 02a54467b6a7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_from_vm_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomImagePropertiesFromVm(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.WindowsOsInfo - :param linux_os_info: The Linux OS information of the VM. - :type linux_os_info: ~azure.mgmt.devtestlabs.models.LinuxOsInfo - """ - - _attribute_map = { - 'source_vm_id': {'key': 'sourceVmId', 'type': 'str'}, - 'windows_os_info': {'key': 'windowsOsInfo', 'type': 'WindowsOsInfo'}, - 'linux_os_info': {'key': 'linuxOsInfo', 'type': 'LinuxOsInfo'}, - } - - def __init__(self, *, source_vm_id: str=None, windows_os_info=None, linux_os_info=None, **kwargs) -> None: - super(CustomImagePropertiesFromVm, self).__init__(**kwargs) - self.source_vm_id = source_vm_id - self.windows_os_info = windows_os_info - self.linux_os_info = linux_os_info diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_py3.py deleted file mode 100644 index fd4736a3744b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_py3.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class CustomImage(Resource): - """A custom image. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.CustomImagePropertiesFromVm - :param vhd: The VHD from which the image is to be created. - :type vhd: ~azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom - :param description: The description of the custom image. - :type description: str - :param author: The author of the custom image. - :type author: str - :ivar creation_date: The creation date of the custom image. - :vartype creation_date: datetime - :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.DataDiskStorageTypeInfo] - :param custom_image_plan: Storage information about the plan related to - this custom image - :type custom_image_plan: - ~azure.mgmt.devtestlabs.models.CustomImagePropertiesFromPlan - :param is_plan_authorized: Whether or not the custom images underlying - offer/plan has been enabled for programmatic deployment - :type is_plan_authorized: bool - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'creation_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'vm': {'key': 'properties.vm', 'type': 'CustomImagePropertiesFromVm'}, - 'vhd': {'key': 'properties.vhd', 'type': 'CustomImagePropertiesCustom'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, - 'managed_image_id': {'key': 'properties.managedImageId', 'type': 'str'}, - 'managed_snapshot_id': {'key': 'properties.managedSnapshotId', 'type': 'str'}, - 'data_disk_storage_info': {'key': 'properties.dataDiskStorageInfo', 'type': '[DataDiskStorageTypeInfo]'}, - 'custom_image_plan': {'key': 'properties.customImagePlan', 'type': 'CustomImagePropertiesFromPlan'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, 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: - super(CustomImage, self).__init__(location=location, tags=tags, **kwargs) - self.vm = vm - self.vhd = vhd - self.description = description - self.author = author - self.creation_date = None - 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 - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties.py deleted file mode 100644 index 7bbfad08d256..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataDiskProperties(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.AttachNewDataDiskOptions - :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': 'AttachNewDataDiskOptions'}, - 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, - 'host_caching': {'key': 'hostCaching', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataDiskProperties, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment.py deleted file mode 100644 index 71e152680e3f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment_py3.py deleted file mode 100644 index d709d92d7113..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_fragment_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_py3.py deleted file mode 100644 index 9e654d16cd45..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_properties_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataDiskProperties(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.AttachNewDataDiskOptions - :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': 'AttachNewDataDiskOptions'}, - '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(DataDiskProperties, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info.py deleted file mode 100644 index 68a97bf75845..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataDiskStorageTypeInfo(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' - :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(DataDiskStorageTypeInfo, self).__init__(**kwargs) - self.lun = kwargs.get('lun', None) - self.storage_type = kwargs.get('storage_type', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment.py deleted file mode 100644 index 62b512b1f863..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment_py3.py deleted file mode 100644 index 9a1c830a7dcb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_fragment_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_py3.py deleted file mode 100644 index d817ca84fdd8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/data_disk_storage_type_info_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataDiskStorageTypeInfo(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' - :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(DataDiskStorageTypeInfo, self).__init__(**kwargs) - self.lun = lun - self.storage_type = storage_type diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details.py deleted file mode 100644 index 7391a793dc1b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DayDetails(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(DayDetails, self).__init__(**kwargs) - self.time = kwargs.get('time', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment.py deleted file mode 100644 index b4f977d74fdf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment_py3.py deleted file mode 100644 index 38c15b48bc89..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_fragment_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_py3.py deleted file mode 100644 index 593e341169d8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/day_details_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DayDetails(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(DayDetails, self).__init__(**kwargs) - self.time = time diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties.py deleted file mode 100644 index 9e66b91c3832..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetachDataDiskProperties(Model): - """Request body for detaching data disk from a virtual machine. - - :param existing_lab_disk_id: Specifies the disk resource ID to detach from - virtual machine. - :type existing_lab_disk_id: str - """ - - _attribute_map = { - 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DetachDataDiskProperties, self).__init__(**kwargs) - self.existing_lab_disk_id = kwargs.get('existing_lab_disk_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties_py3.py deleted file mode 100644 index ece9ea7842fb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_data_disk_properties_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetachDataDiskProperties(Model): - """Request body for detaching data disk from a virtual machine. - - :param existing_lab_disk_id: Specifies the disk resource ID to detach from - virtual machine. - :type existing_lab_disk_id: str - """ - - _attribute_map = { - 'existing_lab_disk_id': {'key': 'existingLabDiskId', 'type': 'str'}, - } - - def __init__(self, *, existing_lab_disk_id: str=None, **kwargs) -> None: - super(DetachDataDiskProperties, self).__init__(**kwargs) - self.existing_lab_disk_id = existing_lab_disk_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties.py deleted file mode 100644 index 2b781ad4f7ec..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetachDiskProperties(Model): - """Properties of the disk to detach. - - :param leased_by_lab_vm_id: The resource ID of the Lab VM to which the - disk is attached. - :type leased_by_lab_vm_id: str - """ - - _attribute_map = { - 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DetachDiskProperties, self).__init__(**kwargs) - self.leased_by_lab_vm_id = kwargs.get('leased_by_lab_vm_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties_py3.py deleted file mode 100644 index bc02a7d21dc2..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/detach_disk_properties_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetachDiskProperties(Model): - """Properties of the disk to detach. - - :param leased_by_lab_vm_id: The resource ID of the Lab VM to which the - disk is attached. - :type leased_by_lab_vm_id: str - """ - - _attribute_map = { - 'leased_by_lab_vm_id': {'key': 'leasedByLabVmId', 'type': 'str'}, - } - - def __init__(self, *, leased_by_lab_vm_id: str=None, **kwargs) -> None: - super(DetachDiskProperties, self).__init__(**kwargs) - self.leased_by_lab_vm_id = leased_by_lab_vm_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk.py deleted file mode 100644 index e61a526ec3f7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Disk(Resource): - """A Disk. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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' - :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 - :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, - 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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, - 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Disk, 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.created_date = None - self.host_caching = kwargs.get('host_caching', None) - self.managed_disk_id = kwargs.get('managed_disk_id', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment.py deleted file mode 100644 index fd351baa9716..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class DiskFragment(UpdateResource): - """A Disk. - - :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' - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment_py3.py deleted file mode 100644 index 6becee37891a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_fragment_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class DiskFragment(UpdateResource): - """A Disk. - - :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' - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_paged.py deleted file mode 100644 index 18396d66590a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DiskPaged(Paged): - """ - A paging container for iterating over a list of :class:`Disk ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Disk]'} - } - - def __init__(self, *args, **kwargs): - - super(DiskPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_py3.py deleted file mode 100644 index 5263a0668bcf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/disk_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Disk(Resource): - """A Disk. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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' - :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 - :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, - 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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'host_caching': {'key': 'properties.hostCaching', 'type': 'str'}, - 'managed_disk_id': {'key': 'properties.managedDiskId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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: - 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.created_date = None - self.host_caching = host_caching - self.managed_disk_id = managed_disk_id - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment.py deleted file mode 100644 index 47f7a67992f7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class DtlEnvironment(Resource): - """An environment, which is essentially an ARM template deployment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.EnvironmentDeploymentProperties - :param arm_template_display_name: The display name of the Azure Resource - Manager template that produced the environment. - :type arm_template_display_name: str - :ivar resource_group_id: The identifier of the resource group containing - the environment's resources. - :vartype resource_group_id: str - :ivar created_by_user: The creator of the environment. - :vartype created_by_user: str - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'resource_group_id': {'readonly': True}, - 'created_by_user': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentProperties'}, - 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, - 'resource_group_id': {'key': 'properties.resourceGroupId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DtlEnvironment, self).__init__(**kwargs) - self.deployment_properties = kwargs.get('deployment_properties', None) - self.arm_template_display_name = kwargs.get('arm_template_display_name', None) - self.resource_group_id = None - self.created_by_user = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment.py deleted file mode 100644 index 14103673db5f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class DtlEnvironmentFragment(UpdateResource): - """An environment, which is essentially an ARM template deployment. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment_py3.py deleted file mode 100644 index 9cd4e5caa7bf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_fragment_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class DtlEnvironmentFragment(UpdateResource): - """An environment, which is essentially an ARM template deployment. - - :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: - super(DtlEnvironmentFragment, self).__init__(tags=tags, **kwargs) - self.deployment_properties = deployment_properties - self.arm_template_display_name = arm_template_display_name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_paged.py deleted file mode 100644 index e7c297f07ffa..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DtlEnvironmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`DtlEnvironment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DtlEnvironment]'} - } - - def __init__(self, *args, **kwargs): - - super(DtlEnvironmentPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_py3.py deleted file mode 100644 index f2fbb899f8cf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/dtl_environment_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class DtlEnvironment(Resource): - """An environment, which is essentially an ARM template deployment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.EnvironmentDeploymentProperties - :param arm_template_display_name: The display name of the Azure Resource - Manager template that produced the environment. - :type arm_template_display_name: str - :ivar resource_group_id: The identifier of the resource group containing - the environment's resources. - :vartype resource_group_id: str - :ivar created_by_user: The creator of the environment. - :vartype created_by_user: str - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'resource_group_id': {'readonly': True}, - 'created_by_user': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'deployment_properties': {'key': 'properties.deploymentProperties', 'type': 'EnvironmentDeploymentProperties'}, - 'arm_template_display_name': {'key': 'properties.armTemplateDisplayName', 'type': 'str'}, - 'resource_group_id': {'key': 'properties.resourceGroupId', 'type': 'str'}, - 'created_by_user': {'key': 'properties.createdByUser', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, deployment_properties=None, arm_template_display_name: str=None, **kwargs) -> None: - super(DtlEnvironment, self).__init__(location=location, tags=tags, **kwargs) - self.deployment_properties = deployment_properties - self.arm_template_display_name = arm_template_display_name - self.resource_group_id = None - self.created_by_user = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties.py deleted file mode 100644 index 31dc62dfc89e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnvironmentDeploymentProperties(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.ArmTemplateParameterProperties] - """ - - _attribute_map = { - 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterProperties]'}, - } - - def __init__(self, **kwargs): - super(EnvironmentDeploymentProperties, self).__init__(**kwargs) - self.arm_template_id = kwargs.get('arm_template_id', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment.py deleted file mode 100644 index e441cfd4a17d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment_py3.py deleted file mode 100644 index 1a30a6aef98e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_fragment_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_py3.py deleted file mode 100644 index 866bbe7d7ebf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/environment_deployment_properties_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnvironmentDeploymentProperties(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.ArmTemplateParameterProperties] - """ - - _attribute_map = { - 'arm_template_id': {'key': 'armTemplateId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ArmTemplateParameterProperties]'}, - } - - def __init__(self, *, arm_template_id: str=None, parameters=None, **kwargs) -> None: - super(EnvironmentDeploymentProperties, self).__init__(**kwargs) - self.arm_template_id = arm_template_id - self.parameters = parameters diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties.py deleted file mode 100644 index ec21cf9c743e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesProperties(Model): - """Properties for evaluating a policy set. - - :param fact_name: The fact name. - :type fact_name: str - :param fact_data: The fact data. - :type fact_data: str - :param value_offset: The value offset. - :type value_offset: str - :param user_object_id: The user for which policies will be evaluated - :type user_object_id: str - """ - - _attribute_map = { - 'fact_name': {'key': 'factName', 'type': 'str'}, - 'fact_data': {'key': 'factData', 'type': 'str'}, - 'value_offset': {'key': 'valueOffset', 'type': 'str'}, - 'user_object_id': {'key': 'userObjectId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EvaluatePoliciesProperties, self).__init__(**kwargs) - self.fact_name = kwargs.get('fact_name', None) - self.fact_data = kwargs.get('fact_data', None) - self.value_offset = kwargs.get('value_offset', None) - self.user_object_id = kwargs.get('user_object_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties_py3.py deleted file mode 100644 index 5f45b40617a1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_properties_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesProperties(Model): - """Properties for evaluating a policy set. - - :param fact_name: The fact name. - :type fact_name: str - :param fact_data: The fact data. - :type fact_data: str - :param value_offset: The value offset. - :type value_offset: str - :param user_object_id: The user for which policies will be evaluated - :type user_object_id: str - """ - - _attribute_map = { - 'fact_name': {'key': 'factName', 'type': 'str'}, - 'fact_data': {'key': 'factData', 'type': 'str'}, - 'value_offset': {'key': 'valueOffset', 'type': 'str'}, - 'user_object_id': {'key': 'userObjectId', 'type': 'str'}, - } - - def __init__(self, *, fact_name: str=None, fact_data: str=None, value_offset: str=None, user_object_id: str=None, **kwargs) -> None: - super(EvaluatePoliciesProperties, self).__init__(**kwargs) - self.fact_name = fact_name - self.fact_data = fact_data - self.value_offset = value_offset - self.user_object_id = user_object_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request.py deleted file mode 100644 index 3476c2176cd0..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesRequest(Model): - """Request body for evaluating a policy set. - - :param policies: Policies to evaluate. - :type policies: - list[~azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties] - """ - - _attribute_map = { - 'policies': {'key': 'policies', 'type': '[EvaluatePoliciesProperties]'}, - } - - def __init__(self, **kwargs): - super(EvaluatePoliciesRequest, self).__init__(**kwargs) - self.policies = kwargs.get('policies', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request_py3.py deleted file mode 100644 index 657e3a980fbb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_request_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesRequest(Model): - """Request body for evaluating a policy set. - - :param policies: Policies to evaluate. - :type policies: - list[~azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties] - """ - - _attribute_map = { - 'policies': {'key': 'policies', 'type': '[EvaluatePoliciesProperties]'}, - } - - def __init__(self, *, policies=None, **kwargs) -> None: - super(EvaluatePoliciesRequest, self).__init__(**kwargs) - self.policies = policies diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response.py deleted file mode 100644 index be1baad1d5a8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesResponse(Model): - """Response body for evaluating a policy set. - - :param results: Results of evaluating a policy set. - :type results: list[~azure.mgmt.devtestlabs.models.PolicySetResult] - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[PolicySetResult]'}, - } - - def __init__(self, **kwargs): - super(EvaluatePoliciesResponse, self).__init__(**kwargs) - self.results = kwargs.get('results', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response_py3.py deleted file mode 100644 index 166eb2130754..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/evaluate_policies_response_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EvaluatePoliciesResponse(Model): - """Response body for evaluating a policy set. - - :param results: Results of evaluating a policy set. - :type results: list[~azure.mgmt.devtestlabs.models.PolicySetResult] - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[PolicySetResult]'}, - } - - def __init__(self, *, results=None, **kwargs) -> None: - super(EvaluatePoliciesResponse, self).__init__(**kwargs) - self.results = results diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event.py deleted file mode 100644 index 98395545b13e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Event(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(Event, self).__init__(**kwargs) - self.event_name = kwargs.get('event_name', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment.py deleted file mode 100644 index f6d18b5ba3e9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment_py3.py deleted file mode 100644 index a785e4b7201a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_fragment_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_py3.py deleted file mode 100644 index faa50f83daea..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/event_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Event(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(Event, self).__init__(**kwargs) - self.event_name = event_name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters.py deleted file mode 100644 index 464db115a353..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportResourceUsageParameters(Model): - """The parameters of the export operation. - - :param blob_storage_absolute_sas_uri: The blob storage absolute sas uri - with write permission to the container which the usage data needs to be - uploaded to. - :type blob_storage_absolute_sas_uri: str - :param usage_start_date: The start time of the usage. If not provided, - usage will be reported since the beginning of data collection. - :type usage_start_date: datetime - """ - - _attribute_map = { - 'blob_storage_absolute_sas_uri': {'key': 'blobStorageAbsoluteSasUri', 'type': 'str'}, - 'usage_start_date': {'key': 'usageStartDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(ExportResourceUsageParameters, self).__init__(**kwargs) - self.blob_storage_absolute_sas_uri = kwargs.get('blob_storage_absolute_sas_uri', None) - self.usage_start_date = kwargs.get('usage_start_date', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters_py3.py deleted file mode 100644 index f58597733273..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/export_resource_usage_parameters_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportResourceUsageParameters(Model): - """The parameters of the export operation. - - :param blob_storage_absolute_sas_uri: The blob storage absolute sas uri - with write permission to the container which the usage data needs to be - uploaded to. - :type blob_storage_absolute_sas_uri: str - :param usage_start_date: The start time of the usage. If not provided, - usage will be reported since the beginning of data collection. - :type usage_start_date: datetime - """ - - _attribute_map = { - 'blob_storage_absolute_sas_uri': {'key': 'blobStorageAbsoluteSasUri', 'type': 'str'}, - 'usage_start_date': {'key': 'usageStartDate', 'type': 'iso-8601'}, - } - - def __init__(self, *, blob_storage_absolute_sas_uri: str=None, usage_start_date=None, **kwargs) -> None: - super(ExportResourceUsageParameters, self).__init__(**kwargs) - self.blob_storage_absolute_sas_uri = blob_storage_absolute_sas_uri - self.usage_start_date = usage_start_date diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet.py deleted file mode 100644 index 6f7f1ff89fca..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExternalSubnet(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(ExternalSubnet, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment.py deleted file mode 100644 index ab2d5769fdab..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment_py3.py deleted file mode 100644 index f5f57186e9e5..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_fragment_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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, *, id: str=None, name: str=None, **kwargs) -> None: - super(ExternalSubnetFragment, self).__init__(**kwargs) - self.id = id - self.name = name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_py3.py deleted file mode 100644 index 8a780e424313..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/external_subnet_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExternalSubnet(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, *, id: str=None, name: str=None, **kwargs) -> None: - super(ExternalSubnet, self).__init__(**kwargs) - self.id = id - self.name = name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula.py deleted file mode 100644 index e4b18a64b9fa..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -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. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar creation_date: The creation date of the formula. - :vartype creation_date: datetime - :param formula_content: The content of the formula. - :type formula_content: - ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter - :param vm: Information about a VM from which a formula is to be created. - :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'creation_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, - 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameter'}, - 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVm'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Formula, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.author = kwargs.get('author', None) - self.os_type = kwargs.get('os_type', None) - self.creation_date = None - self.formula_content = kwargs.get('formula_content', None) - self.vm = kwargs.get('vm', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment.py deleted file mode 100644 index f072e37b3036..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class FormulaFragment(UpdateResource): - """A formula for creating a VM, specifying an image base and other parameters. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment_py3.py deleted file mode 100644 index 0f212fb85237..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class FormulaFragment(UpdateResource): - """A formula for creating a VM, specifying an image base and other parameters. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_paged.py deleted file mode 100644 index b8ae79e7de9d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class FormulaPaged(Paged): - """ - A paging container for iterating over a list of :class:`Formula ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Formula]'} - } - - def __init__(self, *args, **kwargs): - - super(FormulaPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm.py deleted file mode 100644 index 0811ea901b40..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FormulaPropertiesFromVm(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(FormulaPropertiesFromVm, self).__init__(**kwargs) - self.lab_vm_id = kwargs.get('lab_vm_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment.py deleted file mode 100644 index 240d0674d57e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment_py3.py deleted file mode 100644 index 1fff926ae626..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_fragment_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_py3.py deleted file mode 100644 index 2d7ac51274fe..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_properties_from_vm_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FormulaPropertiesFromVm(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(FormulaPropertiesFromVm, self).__init__(**kwargs) - self.lab_vm_id = lab_vm_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_py3.py deleted file mode 100644 index 907919f44485..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_py3.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -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. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar creation_date: The creation date of the formula. - :vartype creation_date: datetime - :param formula_content: The content of the formula. - :type formula_content: - ~azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter - :param vm: Information about a VM from which a formula is to be created. - :type vm: ~azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'creation_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, - 'formula_content': {'key': 'properties.formulaContent', 'type': 'LabVirtualMachineCreationParameter'}, - 'vm': {'key': 'properties.vm', 'type': 'FormulaPropertiesFromVm'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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: - super(Formula, self).__init__(location=location, tags=tags, **kwargs) - self.description = description - self.author = author - self.os_type = os_type - self.creation_date = None - self.formula_content = formula_content - self.vm = vm - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image.py deleted file mode 100644 index c16dcfd6e97f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GalleryImage(Resource): - """A gallery image. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param author: The author of the gallery image. - :type author: str - :ivar created_date: The creation date of the gallery image. - :vartype created_date: datetime - :param description: The description of the gallery image. - :type description: str - :param image_reference: The image reference of the gallery image. - :type image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :param icon: The icon of the gallery image. - :type icon: str - :param enabled: Indicates whether this gallery image is enabled. - :type enabled: bool - :param plan_id: The third party plan that applies to this image - :type plan_id: str - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'image_reference': {'key': 'properties.imageReference', 'type': 'GalleryImageReference'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(GalleryImage, self).__init__(**kwargs) - self.author = kwargs.get('author', None) - self.created_date = None - self.description = kwargs.get('description', None) - self.image_reference = kwargs.get('image_reference', None) - self.icon = kwargs.get('icon', None) - self.enabled = kwargs.get('enabled', None) - self.plan_id = kwargs.get('plan_id', None) - self.is_plan_authorized = kwargs.get('is_plan_authorized', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_paged.py deleted file mode 100644 index 2712de454c83..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GalleryImagePaged(Paged): - """ - A paging container for iterating over a list of :class:`GalleryImage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GalleryImage]'} - } - - def __init__(self, *args, **kwargs): - - super(GalleryImagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_py3.py deleted file mode 100644 index 2097997302c9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_py3.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GalleryImage(Resource): - """A gallery image. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param author: The author of the gallery image. - :type author: str - :ivar created_date: The creation date of the gallery image. - :vartype created_date: datetime - :param description: The description of the gallery image. - :type description: str - :param image_reference: The image reference of the gallery image. - :type image_reference: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :param icon: The icon of the gallery image. - :type icon: str - :param enabled: Indicates whether this gallery image is enabled. - :type enabled: bool - :param plan_id: The third party plan that applies to this image - :type plan_id: str - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'author': {'key': 'properties.author', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'image_reference': {'key': 'properties.imageReference', 'type': 'GalleryImageReference'}, - 'icon': {'key': 'properties.icon', 'type': 'str'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - } - - def __init__(self, *, location: str=None, tags=None, author: str=None, description: str=None, image_reference=None, icon: str=None, enabled: bool=None, plan_id: str=None, is_plan_authorized: bool=None, **kwargs) -> None: - super(GalleryImage, self).__init__(location=location, tags=tags, **kwargs) - self.author = author - self.created_date = None - self.description = description - self.image_reference = image_reference - self.icon = icon - self.enabled = enabled - self.plan_id = plan_id - self.is_plan_authorized = is_plan_authorized diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference.py deleted file mode 100644 index c896911316fd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GalleryImageReference(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(GalleryImageReference, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment.py deleted file mode 100644 index 6bd266dbfbd8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment_py3.py deleted file mode 100644 index 3ebbfa4662f7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_fragment_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_py3.py deleted file mode 100644 index 2541dc5b63e9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/gallery_image_reference_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GalleryImageReference(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(GalleryImageReference, self).__init__(**kwargs) - self.offer = offer - self.publisher = publisher - self.sku = sku - self.os_type = os_type - self.version = version diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request.py deleted file mode 100644 index 3c5fb7b2fafd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateArmTemplateRequest(Model): - """Parameters for generating an ARM template for deploying artifacts. - - :param virtual_machine_name: The resource name of the virtual machine. - :type virtual_machine_name: str - :param parameters: The parameters of the ARM template. - :type parameters: list[~azure.mgmt.devtestlabs.models.ParameterInfo] - :param location: The location of the virtual machine. - :type location: str - :param file_upload_options: Options for uploading the files for the - artifact. UploadFilesAndGenerateSasTokens is the default value. Possible - values include: 'UploadFilesAndGenerateSasTokens', 'None' - :type file_upload_options: str or - ~azure.mgmt.devtestlabs.models.FileUploadOptions - """ - - _attribute_map = { - 'virtual_machine_name': {'key': 'virtualMachineName', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ParameterInfo]'}, - 'location': {'key': 'location', 'type': 'str'}, - 'file_upload_options': {'key': 'fileUploadOptions', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenerateArmTemplateRequest, self).__init__(**kwargs) - self.virtual_machine_name = kwargs.get('virtual_machine_name', None) - self.parameters = kwargs.get('parameters', None) - self.location = kwargs.get('location', None) - self.file_upload_options = kwargs.get('file_upload_options', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request_py3.py deleted file mode 100644 index 677085554d25..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_arm_template_request_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateArmTemplateRequest(Model): - """Parameters for generating an ARM template for deploying artifacts. - - :param virtual_machine_name: The resource name of the virtual machine. - :type virtual_machine_name: str - :param parameters: The parameters of the ARM template. - :type parameters: list[~azure.mgmt.devtestlabs.models.ParameterInfo] - :param location: The location of the virtual machine. - :type location: str - :param file_upload_options: Options for uploading the files for the - artifact. UploadFilesAndGenerateSasTokens is the default value. Possible - values include: 'UploadFilesAndGenerateSasTokens', 'None' - :type file_upload_options: str or - ~azure.mgmt.devtestlabs.models.FileUploadOptions - """ - - _attribute_map = { - 'virtual_machine_name': {'key': 'virtualMachineName', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ParameterInfo]'}, - 'location': {'key': 'location', 'type': 'str'}, - 'file_upload_options': {'key': 'fileUploadOptions', 'type': 'str'}, - } - - def __init__(self, *, virtual_machine_name: str=None, parameters=None, location: str=None, file_upload_options=None, **kwargs) -> None: - super(GenerateArmTemplateRequest, self).__init__(**kwargs) - self.virtual_machine_name = virtual_machine_name - self.parameters = parameters - self.location = location - self.file_upload_options = file_upload_options diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter.py deleted file mode 100644 index 801afae7e028..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateUploadUriParameter(Model): - """Properties for generating an upload URI. - - :param blob_name: The blob name of the upload URI. - :type blob_name: str - """ - - _attribute_map = { - 'blob_name': {'key': 'blobName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenerateUploadUriParameter, self).__init__(**kwargs) - self.blob_name = kwargs.get('blob_name', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter_py3.py deleted file mode 100644 index ebc5724f0614..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_parameter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateUploadUriParameter(Model): - """Properties for generating an upload URI. - - :param blob_name: The blob name of the upload URI. - :type blob_name: str - """ - - _attribute_map = { - 'blob_name': {'key': 'blobName', 'type': 'str'}, - } - - def __init__(self, *, blob_name: str=None, **kwargs) -> None: - super(GenerateUploadUriParameter, self).__init__(**kwargs) - self.blob_name = blob_name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response.py deleted file mode 100644 index 6b89d3111051..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateUploadUriResponse(Model): - """Response body for generating an upload URI. - - :param upload_uri: The upload URI for the VHD. - :type upload_uri: str - """ - - _attribute_map = { - 'upload_uri': {'key': 'uploadUri', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenerateUploadUriResponse, self).__init__(**kwargs) - self.upload_uri = kwargs.get('upload_uri', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response_py3.py deleted file mode 100644 index 8807569409ac..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/generate_upload_uri_response_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenerateUploadUriResponse(Model): - """Response body for generating an upload URI. - - :param upload_uri: The upload URI for the VHD. - :type upload_uri: str - """ - - _attribute_map = { - 'upload_uri': {'key': 'uploadUri', 'type': 'str'}, - } - - def __init__(self, *, upload_uri: str=None, **kwargs) -> None: - super(GenerateUploadUriResponse, self).__init__(**kwargs) - self.upload_uri = upload_uri diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details.py deleted file mode 100644 index e310a1bbc923..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HourDetails(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(HourDetails, self).__init__(**kwargs) - self.minute = kwargs.get('minute', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment.py deleted file mode 100644 index 3a41af20481d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment_py3.py deleted file mode 100644 index afa962a3c628..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_fragment_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_py3.py deleted file mode 100644 index 52c323352b24..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/hour_details_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HourDetails(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(HourDetails, self).__init__(**kwargs) - self.minute = minute diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties.py deleted file mode 100644 index ed4b127fc39c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IdentityProperties(Model): - """Properties of a managed identity. - - :param type: Managed identity. - :type type: str - :param principal_id: The principal id of resource identity. - :type principal_id: str - :param tenant_id: The tenant identifier of resource. - :type tenant_id: str - :param client_secret_url: The client secret URL of the identity. - :type client_secret_url: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'client_secret_url': {'key': 'clientSecretUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(IdentityProperties, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.principal_id = kwargs.get('principal_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.client_secret_url = kwargs.get('client_secret_url', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties_py3.py deleted file mode 100644 index 63fb90a1b974..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/identity_properties_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IdentityProperties(Model): - """Properties of a managed identity. - - :param type: Managed identity. - :type type: str - :param principal_id: The principal id of resource identity. - :type principal_id: str - :param tenant_id: The tenant identifier of resource. - :type tenant_id: str - :param client_secret_url: The client secret URL of the identity. - :type client_secret_url: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - '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: - super(IdentityProperties, self).__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.client_secret_url = client_secret_url diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request.py deleted file mode 100644 index 0c910e9b203e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImportLabVirtualMachineRequest(Model): - """This represents the payload required to import a virtual machine from a - different lab into the current one. - - :param source_virtual_machine_resource_id: The full resource ID of the - virtual machine to be imported. - :type source_virtual_machine_resource_id: str - :param destination_virtual_machine_name: The name of the virtual machine - in the destination lab - :type destination_virtual_machine_name: str - """ - - _attribute_map = { - 'source_virtual_machine_resource_id': {'key': 'sourceVirtualMachineResourceId', 'type': 'str'}, - 'destination_virtual_machine_name': {'key': 'destinationVirtualMachineName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ImportLabVirtualMachineRequest, self).__init__(**kwargs) - self.source_virtual_machine_resource_id = kwargs.get('source_virtual_machine_resource_id', None) - self.destination_virtual_machine_name = kwargs.get('destination_virtual_machine_name', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request_py3.py deleted file mode 100644 index 6ca10ecff7a6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/import_lab_virtual_machine_request_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImportLabVirtualMachineRequest(Model): - """This represents the payload required to import a virtual machine from a - different lab into the current one. - - :param source_virtual_machine_resource_id: The full resource ID of the - virtual machine to be imported. - :type source_virtual_machine_resource_id: str - :param destination_virtual_machine_name: The name of the virtual machine - in the destination lab - :type destination_virtual_machine_name: str - """ - - _attribute_map = { - 'source_virtual_machine_resource_id': {'key': 'sourceVirtualMachineResourceId', 'type': 'str'}, - 'destination_virtual_machine_name': {'key': 'destinationVirtualMachineName', 'type': 'str'}, - } - - def __init__(self, *, source_virtual_machine_resource_id: str=None, destination_virtual_machine_name: str=None, **kwargs) -> None: - super(ImportLabVirtualMachineRequest, self).__init__(**kwargs) - self.source_virtual_machine_resource_id = source_virtual_machine_resource_id - self.destination_virtual_machine_name = destination_virtual_machine_name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule.py deleted file mode 100644 index 56d745d71893..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InboundNatRule(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(InboundNatRule, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment.py deleted file mode 100644 index 034404f9923f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment_py3.py deleted file mode 100644 index 397d4c523e32..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_fragment_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_py3.py deleted file mode 100644 index 9ec4bd8a3d52..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/inbound_nat_rule_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InboundNatRule(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(InboundNatRule, self).__init__(**kwargs) - self.transport_protocol = transport_protocol - self.frontend_port = frontend_port - self.backend_port = backend_port diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab.py deleted file mode 100644 index e495c96e01fa..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Lab(Resource): - """A lab. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar default_storage_account: The lab's default storage account. - :vartype default_storage_account: str - :ivar default_premium_storage_account: The lab's default premium storage - account. - :vartype default_premium_storage_account: str - :ivar artifacts_storage_account: The lab's artifact storage account. - :vartype artifacts_storage_account: str - :ivar premium_data_disk_storage_account: The lab's premium data disk - storage account. - :vartype premium_data_disk_storage_account: str - :ivar vault_name: The lab's Key vault. - :vartype vault_name: 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' - :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] - :ivar created_date: The creation date of the lab. - :vartype created_date: datetime - :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.LabAnnouncementProperties - :param support: The properties of any lab support message associated with - this lab - :type support: ~azure.mgmt.devtestlabs.models.LabSupportProperties - :ivar vm_creation_resource_group: The resource group in which lab virtual - machines will be created in. - :vartype vm_creation_resource_group: str - :ivar public_ip_id: The public IP address for the lab's load balancer. - :vartype public_ip_id: str - :ivar load_balancer_id: The load balancer used to for lab VMs that use - shared IP address. - :vartype load_balancer_id: str - :ivar network_security_group_id: The Network Security Group attached to - the lab VMs Network interfaces to restrict open ports. - :vartype network_security_group_id: str - :param extended_properties: Extended properties of the lab used for - experimental features - :type extended_properties: dict[str, str] - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'default_storage_account': {'readonly': True}, - 'default_premium_storage_account': {'readonly': True}, - 'artifacts_storage_account': {'readonly': True}, - 'premium_data_disk_storage_account': {'readonly': True}, - 'vault_name': {'readonly': True}, - 'created_date': {'readonly': True}, - 'vm_creation_resource_group': {'readonly': True}, - 'public_ip_id': {'readonly': True}, - 'load_balancer_id': {'readonly': True}, - 'network_security_group_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_storage_account': {'key': 'properties.defaultStorageAccount', 'type': 'str'}, - 'default_premium_storage_account': {'key': 'properties.defaultPremiumStorageAccount', 'type': 'str'}, - 'artifacts_storage_account': {'key': 'properties.artifactsStorageAccount', 'type': 'str'}, - 'premium_data_disk_storage_account': {'key': 'properties.premiumDataDiskStorageAccount', 'type': 'str'}, - 'vault_name': {'key': 'properties.vaultName', '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]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, - 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, - 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementProperties'}, - 'support': {'key': 'properties.support', 'type': 'LabSupportProperties'}, - 'vm_creation_resource_group': {'key': 'properties.vmCreationResourceGroup', 'type': 'str'}, - 'public_ip_id': {'key': 'properties.publicIpId', 'type': 'str'}, - 'load_balancer_id': {'key': 'properties.loadBalancerId', 'type': 'str'}, - 'network_security_group_id': {'key': 'properties.networkSecurityGroupId', 'type': 'str'}, - 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Lab, self).__init__(**kwargs) - self.default_storage_account = None - self.default_premium_storage_account = None - self.artifacts_storage_account = None - self.premium_data_disk_storage_account = None - self.vault_name = None - 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.created_date = 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.vm_creation_resource_group = None - self.public_ip_id = None - self.load_balancer_id = None - self.network_security_group_id = None - self.extended_properties = kwargs.get('extended_properties', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties.py deleted file mode 100644 index aee243079a09..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabAnnouncementProperties(Model): - """Properties of a lab's announcement banner. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _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'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabAnnouncementProperties, 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) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment.py deleted file mode 100644 index 9d82a4819afa..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py deleted file mode 100644 index 33eea147dcf1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_py3.py deleted file mode 100644 index 3d818d58a02f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabAnnouncementProperties(Model): - """Properties of a lab's announcement banner. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _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'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, title: str=None, markdown: str=None, enabled=None, expiration_date=None, expired: bool=None, **kwargs) -> None: - super(LabAnnouncementProperties, self).__init__(**kwargs) - self.title = title - self.markdown = markdown - self.enabled = enabled - self.expiration_date = expiration_date - self.expired = expired - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost.py deleted file mode 100644 index 6825b1e82b74..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class LabCost(Resource): - """A cost item. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param target_cost: The target cost properties - :type target_cost: ~azure.mgmt.devtestlabs.models.TargetCostProperties - :ivar lab_cost_summary: The lab cost summary component of the cost data. - :vartype lab_cost_summary: - ~azure.mgmt.devtestlabs.models.LabCostSummaryProperties - :ivar lab_cost_details: The lab cost details component of the cost data. - :vartype lab_cost_details: - list[~azure.mgmt.devtestlabs.models.LabCostDetailsProperties] - :ivar resource_costs: The resource cost component of the cost data. - :vartype resource_costs: - list[~azure.mgmt.devtestlabs.models.LabResourceCostProperties] - :param currency_code: The currency code of the cost. - :type currency_code: str - :param start_date_time: The start time of the cost data. - :type start_date_time: datetime - :param end_date_time: The end time of the cost data. - :type end_date_time: datetime - :param created_date: The creation date of the cost. - :type created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'lab_cost_summary': {'readonly': True}, - 'lab_cost_details': {'readonly': True}, - 'resource_costs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'target_cost': {'key': 'properties.targetCost', 'type': 'TargetCostProperties'}, - 'lab_cost_summary': {'key': 'properties.labCostSummary', 'type': 'LabCostSummaryProperties'}, - 'lab_cost_details': {'key': 'properties.labCostDetails', 'type': '[LabCostDetailsProperties]'}, - 'resource_costs': {'key': 'properties.resourceCosts', 'type': '[LabResourceCostProperties]'}, - 'currency_code': {'key': 'properties.currencyCode', 'type': 'str'}, - 'start_date_time': {'key': 'properties.startDateTime', 'type': 'iso-8601'}, - 'end_date_time': {'key': 'properties.endDateTime', 'type': 'iso-8601'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabCost, self).__init__(**kwargs) - self.target_cost = kwargs.get('target_cost', None) - self.lab_cost_summary = None - self.lab_cost_details = None - self.resource_costs = None - self.currency_code = kwargs.get('currency_code', None) - self.start_date_time = kwargs.get('start_date_time', None) - self.end_date_time = kwargs.get('end_date_time', None) - self.created_date = kwargs.get('created_date', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties.py deleted file mode 100644 index ac7c70074036..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabCostDetailsProperties(Model): - """The properties of a lab cost item. - - :param date_property: The date of the cost item. - :type date_property: datetime - :param cost: The cost component of the cost item. - :type cost: float - :param cost_type: The type of the cost. Possible values include: - 'Unavailable', 'Reported', 'Projected' - :type cost_type: str or ~azure.mgmt.devtestlabs.models.CostType - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'iso-8601'}, - 'cost': {'key': 'cost', 'type': 'float'}, - 'cost_type': {'key': 'costType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabCostDetailsProperties, self).__init__(**kwargs) - self.date_property = kwargs.get('date_property', None) - self.cost = kwargs.get('cost', None) - self.cost_type = kwargs.get('cost_type', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties_py3.py deleted file mode 100644 index f6690c8c2184..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_details_properties_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabCostDetailsProperties(Model): - """The properties of a lab cost item. - - :param date_property: The date of the cost item. - :type date_property: datetime - :param cost: The cost component of the cost item. - :type cost: float - :param cost_type: The type of the cost. Possible values include: - 'Unavailable', 'Reported', 'Projected' - :type cost_type: str or ~azure.mgmt.devtestlabs.models.CostType - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'iso-8601'}, - 'cost': {'key': 'cost', 'type': 'float'}, - 'cost_type': {'key': 'costType', 'type': 'str'}, - } - - def __init__(self, *, date_property=None, cost: float=None, cost_type=None, **kwargs) -> None: - super(LabCostDetailsProperties, self).__init__(**kwargs) - self.date_property = date_property - self.cost = cost - self.cost_type = cost_type diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_py3.py deleted file mode 100644 index cef3ac68fdf8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class LabCost(Resource): - """A cost item. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param target_cost: The target cost properties - :type target_cost: ~azure.mgmt.devtestlabs.models.TargetCostProperties - :ivar lab_cost_summary: The lab cost summary component of the cost data. - :vartype lab_cost_summary: - ~azure.mgmt.devtestlabs.models.LabCostSummaryProperties - :ivar lab_cost_details: The lab cost details component of the cost data. - :vartype lab_cost_details: - list[~azure.mgmt.devtestlabs.models.LabCostDetailsProperties] - :ivar resource_costs: The resource cost component of the cost data. - :vartype resource_costs: - list[~azure.mgmt.devtestlabs.models.LabResourceCostProperties] - :param currency_code: The currency code of the cost. - :type currency_code: str - :param start_date_time: The start time of the cost data. - :type start_date_time: datetime - :param end_date_time: The end time of the cost data. - :type end_date_time: datetime - :param created_date: The creation date of the cost. - :type created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'lab_cost_summary': {'readonly': True}, - 'lab_cost_details': {'readonly': True}, - 'resource_costs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'target_cost': {'key': 'properties.targetCost', 'type': 'TargetCostProperties'}, - 'lab_cost_summary': {'key': 'properties.labCostSummary', 'type': 'LabCostSummaryProperties'}, - 'lab_cost_details': {'key': 'properties.labCostDetails', 'type': '[LabCostDetailsProperties]'}, - 'resource_costs': {'key': 'properties.resourceCosts', 'type': '[LabResourceCostProperties]'}, - 'currency_code': {'key': 'properties.currencyCode', 'type': 'str'}, - 'start_date_time': {'key': 'properties.startDateTime', 'type': 'iso-8601'}, - 'end_date_time': {'key': 'properties.endDateTime', 'type': 'iso-8601'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, target_cost=None, currency_code: str=None, start_date_time=None, end_date_time=None, created_date=None, **kwargs) -> None: - super(LabCost, self).__init__(location=location, tags=tags, **kwargs) - self.target_cost = target_cost - self.lab_cost_summary = None - self.lab_cost_details = None - self.resource_costs = None - self.currency_code = currency_code - self.start_date_time = start_date_time - self.end_date_time = end_date_time - self.created_date = created_date - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties.py deleted file mode 100644 index edeb814ef472..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabCostSummaryProperties(Model): - """The properties of the cost summary. - - :param estimated_lab_cost: The cost component of the cost item. - :type estimated_lab_cost: float - """ - - _attribute_map = { - 'estimated_lab_cost': {'key': 'estimatedLabCost', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(LabCostSummaryProperties, self).__init__(**kwargs) - self.estimated_lab_cost = kwargs.get('estimated_lab_cost', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties_py3.py deleted file mode 100644 index df5a84f3e609..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_cost_summary_properties_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabCostSummaryProperties(Model): - """The properties of the cost summary. - - :param estimated_lab_cost: The cost component of the cost item. - :type estimated_lab_cost: float - """ - - _attribute_map = { - 'estimated_lab_cost': {'key': 'estimatedLabCost', 'type': 'float'}, - } - - def __init__(self, *, estimated_lab_cost: float=None, **kwargs) -> None: - super(LabCostSummaryProperties, self).__init__(**kwargs) - self.estimated_lab_cost = estimated_lab_cost diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment.py deleted file mode 100644 index 2ad6dc84b4ae..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class LabFragment(UpdateResource): - """A lab. - - :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' - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment_py3.py deleted file mode 100644 index c5aa5b816807..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_fragment_py3.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class LabFragment(UpdateResource): - """A lab. - - :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' - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_paged.py deleted file mode 100644 index 869d4b1dee38..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LabPaged(Paged): - """ - A paging container for iterating over a list of :class:`Lab ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Lab]'} - } - - def __init__(self, *args, **kwargs): - - super(LabPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_py3.py deleted file mode 100644 index ec30462d9336..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_py3.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Lab(Resource): - """A lab. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :ivar default_storage_account: The lab's default storage account. - :vartype default_storage_account: str - :ivar default_premium_storage_account: The lab's default premium storage - account. - :vartype default_premium_storage_account: str - :ivar artifacts_storage_account: The lab's artifact storage account. - :vartype artifacts_storage_account: str - :ivar premium_data_disk_storage_account: The lab's premium data disk - storage account. - :vartype premium_data_disk_storage_account: str - :ivar vault_name: The lab's Key vault. - :vartype vault_name: 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' - :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] - :ivar created_date: The creation date of the lab. - :vartype created_date: datetime - :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.LabAnnouncementProperties - :param support: The properties of any lab support message associated with - this lab - :type support: ~azure.mgmt.devtestlabs.models.LabSupportProperties - :ivar vm_creation_resource_group: The resource group in which lab virtual - machines will be created in. - :vartype vm_creation_resource_group: str - :ivar public_ip_id: The public IP address for the lab's load balancer. - :vartype public_ip_id: str - :ivar load_balancer_id: The load balancer used to for lab VMs that use - shared IP address. - :vartype load_balancer_id: str - :ivar network_security_group_id: The Network Security Group attached to - the lab VMs Network interfaces to restrict open ports. - :vartype network_security_group_id: str - :param extended_properties: Extended properties of the lab used for - experimental features - :type extended_properties: dict[str, str] - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'default_storage_account': {'readonly': True}, - 'default_premium_storage_account': {'readonly': True}, - 'artifacts_storage_account': {'readonly': True}, - 'premium_data_disk_storage_account': {'readonly': True}, - 'vault_name': {'readonly': True}, - 'created_date': {'readonly': True}, - 'vm_creation_resource_group': {'readonly': True}, - 'public_ip_id': {'readonly': True}, - 'load_balancer_id': {'readonly': True}, - 'network_security_group_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_storage_account': {'key': 'properties.defaultStorageAccount', 'type': 'str'}, - 'default_premium_storage_account': {'key': 'properties.defaultPremiumStorageAccount', 'type': 'str'}, - 'artifacts_storage_account': {'key': 'properties.artifactsStorageAccount', 'type': 'str'}, - 'premium_data_disk_storage_account': {'key': 'properties.premiumDataDiskStorageAccount', 'type': 'str'}, - 'vault_name': {'key': 'properties.vaultName', '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]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'premium_data_disks': {'key': 'properties.premiumDataDisks', 'type': 'str'}, - 'environment_permission': {'key': 'properties.environmentPermission', 'type': 'str'}, - 'announcement': {'key': 'properties.announcement', 'type': 'LabAnnouncementProperties'}, - 'support': {'key': 'properties.support', 'type': 'LabSupportProperties'}, - 'vm_creation_resource_group': {'key': 'properties.vmCreationResourceGroup', 'type': 'str'}, - 'public_ip_id': {'key': 'properties.publicIpId', 'type': 'str'}, - 'load_balancer_id': {'key': 'properties.loadBalancerId', 'type': 'str'}, - 'network_security_group_id': {'key': 'properties.networkSecurityGroupId', 'type': 'str'}, - 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, 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: - super(Lab, self).__init__(location=location, tags=tags, **kwargs) - self.default_storage_account = None - self.default_premium_storage_account = None - self.artifacts_storage_account = None - self.premium_data_disk_storage_account = None - self.vault_name = None - 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.created_date = None - self.premium_data_disks = premium_data_disks - self.environment_permission = environment_permission - self.announcement = announcement - self.support = support - self.vm_creation_resource_group = None - self.public_ip_id = None - self.load_balancer_id = None - self.network_security_group_id = None - self.extended_properties = extended_properties - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties.py deleted file mode 100644 index 8883745b9735..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabResourceCostProperties(Model): - """The properties of a resource cost item. - - :param resourcename: The name of the resource. - :type resourcename: str - :param resource_uid: The unique identifier of the resource. - :type resource_uid: str - :param resource_cost: The cost component of the resource cost item. - :type resource_cost: float - :param resource_type: The logical resource type (ex. virtualmachine, - storageaccount) - :type resource_type: str - :param resource_owner: The owner of the resource (ex. - janedoe@microsoft.com) - :type resource_owner: str - :param resource_pricing_tier: The category of the resource (ex. - Premium_LRS, Standard_DS1) - :type resource_pricing_tier: str - :param resource_status: The status of the resource (ex. Active) - :type resource_status: str - :param resource_id: The ID of the resource - :type resource_id: str - :param external_resource_id: The ID of the external resource - :type external_resource_id: str - """ - - _attribute_map = { - 'resourcename': {'key': 'resourcename', 'type': 'str'}, - 'resource_uid': {'key': 'resourceUId', 'type': 'str'}, - 'resource_cost': {'key': 'resourceCost', 'type': 'float'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_owner': {'key': 'resourceOwner', 'type': 'str'}, - 'resource_pricing_tier': {'key': 'resourcePricingTier', 'type': 'str'}, - 'resource_status': {'key': 'resourceStatus', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'external_resource_id': {'key': 'externalResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabResourceCostProperties, self).__init__(**kwargs) - self.resourcename = kwargs.get('resourcename', None) - self.resource_uid = kwargs.get('resource_uid', None) - self.resource_cost = kwargs.get('resource_cost', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_owner = kwargs.get('resource_owner', None) - self.resource_pricing_tier = kwargs.get('resource_pricing_tier', None) - self.resource_status = kwargs.get('resource_status', None) - self.resource_id = kwargs.get('resource_id', None) - self.external_resource_id = kwargs.get('external_resource_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties_py3.py deleted file mode 100644 index 5b360dee84b9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_resource_cost_properties_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabResourceCostProperties(Model): - """The properties of a resource cost item. - - :param resourcename: The name of the resource. - :type resourcename: str - :param resource_uid: The unique identifier of the resource. - :type resource_uid: str - :param resource_cost: The cost component of the resource cost item. - :type resource_cost: float - :param resource_type: The logical resource type (ex. virtualmachine, - storageaccount) - :type resource_type: str - :param resource_owner: The owner of the resource (ex. - janedoe@microsoft.com) - :type resource_owner: str - :param resource_pricing_tier: The category of the resource (ex. - Premium_LRS, Standard_DS1) - :type resource_pricing_tier: str - :param resource_status: The status of the resource (ex. Active) - :type resource_status: str - :param resource_id: The ID of the resource - :type resource_id: str - :param external_resource_id: The ID of the external resource - :type external_resource_id: str - """ - - _attribute_map = { - 'resourcename': {'key': 'resourcename', 'type': 'str'}, - 'resource_uid': {'key': 'resourceUId', 'type': 'str'}, - 'resource_cost': {'key': 'resourceCost', 'type': 'float'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_owner': {'key': 'resourceOwner', 'type': 'str'}, - 'resource_pricing_tier': {'key': 'resourcePricingTier', 'type': 'str'}, - 'resource_status': {'key': 'resourceStatus', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'external_resource_id': {'key': 'externalResourceId', 'type': 'str'}, - } - - def __init__(self, *, resourcename: str=None, resource_uid: str=None, resource_cost: float=None, resource_type: str=None, resource_owner: str=None, resource_pricing_tier: str=None, resource_status: str=None, resource_id: str=None, external_resource_id: str=None, **kwargs) -> None: - super(LabResourceCostProperties, self).__init__(**kwargs) - self.resourcename = resourcename - self.resource_uid = resource_uid - self.resource_cost = resource_cost - self.resource_type = resource_type - self.resource_owner = resource_owner - self.resource_pricing_tier = resource_pricing_tier - self.resource_status = resource_status - self.resource_id = resource_id - self.external_resource_id = external_resource_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties.py deleted file mode 100644 index e948a530fa44..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabSupportProperties(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(LabSupportProperties, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.markdown = kwargs.get('markdown', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment.py deleted file mode 100644 index 53bf876c5a2c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment_py3.py deleted file mode 100644 index 0495bf2657d2..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_fragment_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_py3.py deleted file mode 100644 index 0eac2ef2c950..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_support_properties_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabSupportProperties(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(LabSupportProperties, self).__init__(**kwargs) - self.enabled = enabled - self.markdown = markdown diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd.py deleted file mode 100644 index acb777ea8f1b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabVhd(Model): - """Properties of a VHD in the lab. - - :param id: The URI to the VHD. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabVhd, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_paged.py deleted file mode 100644 index 34d5dda853fe..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LabVhdPaged(Paged): - """ - A paging container for iterating over a list of :class:`LabVhd ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LabVhd]'} - } - - def __init__(self, *args, **kwargs): - - super(LabVhdPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_py3.py deleted file mode 100644 index 7f0adddb42ae..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_vhd_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabVhd(Model): - """Properties of a VHD in the lab. - - :param id: The URI to the VHD. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(LabVhd, self).__init__(**kwargs) - self.id = id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine.py deleted file mode 100644 index 079a4c3bb59f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class LabVirtualMachine(Resource): - """A virtual machine. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.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: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :ivar compute_vm: The compute virtual machine properties. - :vartype compute_vm: ~azure.mgmt.devtestlabs.models.ComputeVmProperties - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfaceProperties - :ivar applicable_schedule: The applicable schedule for the virtual - machine. - :vartype applicable_schedule: - ~azure.mgmt.devtestlabs.models.ApplicableSchedule - :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' - :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.DataDiskProperties] - :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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'compute_vm': {'readonly': True}, - 'applicable_schedule': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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': '[ArtifactInstallProperties]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'compute_vm': {'key': 'properties.computeVm', 'type': 'ComputeVmProperties'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, - 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, - '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'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - 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_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.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.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.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter.py deleted file mode 100644 index db9aad603356..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabVirtualMachineCreationParameter(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.BulkCreationParameters - :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.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: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :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.NetworkInterfaceProperties - :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' - :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.DataDiskProperties] - :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 - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParameters'}, - '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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.py deleted file mode 100644 index 2a58002ea2bf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment_py3.py deleted file mode 100644 index d583a499210f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_fragment_py3.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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' - :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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_py3.py deleted file mode 100644 index f6df337a6179..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_creation_parameter_py3.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LabVirtualMachineCreationParameter(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.BulkCreationParameters - :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.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: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :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.NetworkInterfaceProperties - :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' - :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.DataDiskProperties] - :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 - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'bulk_creation_parameters': {'key': 'properties.bulkCreationParameters', 'type': 'BulkCreationParameters'}, - '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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment.py deleted file mode 100644 index 132affe5f1ba..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -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' - :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'}, - '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'}, - } - - def __init__(self, **kwargs): - super(LabVirtualMachineFragment, self).__init__(**kwargs) - 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment_py3.py deleted file mode 100644 index 11dca443d47b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_fragment_py3.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -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' - :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'}, - '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'}, - } - - 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) - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_paged.py deleted file mode 100644 index 08e2d31e58dc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LabVirtualMachinePaged(Paged): - """ - A paging container for iterating over a list of :class:`LabVirtualMachine ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LabVirtualMachine]'} - } - - def __init__(self, *args, **kwargs): - - super(LabVirtualMachinePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_py3.py deleted file mode 100644 index 354acb458cc9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_virtual_machine_py3.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class LabVirtualMachine(Resource): - """A virtual machine. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.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: - ~azure.mgmt.devtestlabs.models.GalleryImageReference - :param plan_id: The id of the plan associated with the virtual machine - image - :type plan_id: str - :ivar compute_vm: The compute virtual machine properties. - :vartype compute_vm: ~azure.mgmt.devtestlabs.models.ComputeVmProperties - :param network_interface: The network interface properties. - :type network_interface: - ~azure.mgmt.devtestlabs.models.NetworkInterfaceProperties - :ivar applicable_schedule: The applicable schedule for the virtual - machine. - :vartype applicable_schedule: - ~azure.mgmt.devtestlabs.models.ApplicableSchedule - :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' - :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.DataDiskProperties] - :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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'compute_vm': {'readonly': True}, - 'applicable_schedule': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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': '[ArtifactInstallProperties]'}, - 'artifact_deployment_status': {'key': 'properties.artifactDeploymentStatus', 'type': 'ArtifactDeploymentStatusProperties'}, - 'gallery_image_reference': {'key': 'properties.galleryImageReference', 'type': 'GalleryImageReference'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'compute_vm': {'key': 'properties.computeVm', 'type': 'ComputeVmProperties'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterfaceProperties'}, - 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, - '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'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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: - 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_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.compute_vm = None - self.network_interface = network_interface - self.applicable_schedule = None - 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.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info.py deleted file mode 100644 index 70154219e989..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LinuxOsInfo(Model): - """Information about a Linux OS. - - :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 - """ - - _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LinuxOsInfo, self).__init__(**kwargs) - self.linux_os_state = kwargs.get('linux_os_state', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment.py deleted file mode 100644 index a7b98b278ea7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LinuxOsInfoFragment(Model): - """Information about a Linux OS. - - :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 - """ - - _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LinuxOsInfoFragment, self).__init__(**kwargs) - self.linux_os_state = kwargs.get('linux_os_state', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment_py3.py deleted file mode 100644 index b8b4919c8eab..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LinuxOsInfoFragment(Model): - """Information about a Linux OS. - - :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 - """ - - _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, - } - - def __init__(self, *, linux_os_state=None, **kwargs) -> None: - super(LinuxOsInfoFragment, self).__init__(**kwargs) - self.linux_os_state = linux_os_state diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_py3.py deleted file mode 100644 index a8176b7be240..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LinuxOsInfo(Model): - """Information about a Linux OS. - - :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 - """ - - _attribute_map = { - 'linux_os_state': {'key': 'linuxOsState', 'type': 'str'}, - } - - def __init__(self, *, linux_os_state=None, **kwargs) -> None: - super(LinuxOsInfo, self).__init__(**kwargs) - self.linux_os_state = linux_os_state diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties.py deleted file mode 100644 index 67bd4ee0a9fc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterfaceProperties(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.SharedPublicIpAddressConfiguration - """ - - _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': 'SharedPublicIpAddressConfiguration'}, - } - - def __init__(self, **kwargs): - super(NetworkInterfaceProperties, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment.py deleted file mode 100644 index e42965548e38..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment_py3.py deleted file mode 100644 index 87854401d799..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_fragment_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_py3.py deleted file mode 100644 index c68daf4e897b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/network_interface_properties_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterfaceProperties(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.SharedPublicIpAddressConfiguration - """ - - _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': 'SharedPublicIpAddressConfiguration'}, - } - - 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(NetworkInterfaceProperties, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel.py deleted file mode 100644 index 7132c4436c6e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class NotificationChannel(Resource): - """A notification. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Event] - :ivar created_date: The creation date of the notification channel. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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': '[Event]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NotificationChannel, 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) - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment.py deleted file mode 100644 index 588dee5b2395..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class NotificationChannelFragment(UpdateResource): - """A notification. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment_py3.py deleted file mode 100644 index a7179388c512..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_fragment_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class NotificationChannelFragment(UpdateResource): - """A notification. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_paged.py deleted file mode 100644 index 9a74839b31a1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class NotificationChannelPaged(Paged): - """ - A paging container for iterating over a list of :class:`NotificationChannel ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[NotificationChannel]'} - } - - def __init__(self, *args, **kwargs): - - super(NotificationChannelPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_py3.py deleted file mode 100644 index 08a0f47db1da..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_channel_py3.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class NotificationChannel(Resource): - """A notification. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Event] - :ivar created_date: The creation date of the notification channel. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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': '[Event]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, web_hook_url: str=None, email_recipient: str=None, notification_locale: str=None, description: str=None, events=None, **kwargs) -> None: - super(NotificationChannel, self).__init__(location=location, 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 - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings.py deleted file mode 100644 index 656eae9f9cb4..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NotificationSettings(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(NotificationSettings, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment.py deleted file mode 100644 index bc707e6ecfe7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment_py3.py deleted file mode 100644 index 260ce034f89d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_fragment_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_py3.py deleted file mode 100644 index 66c77b99768a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notification_settings_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NotificationSettings(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(NotificationSettings, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters.py deleted file mode 100644 index 8adc994f1e40..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NotifyParameters(Model): - """Properties for generating a Notification. - - :param event_name: The type of event (i.e. AutoShutdown, Cost). Possible - values include: 'AutoShutdown', 'Cost' - :type event_name: str or - ~azure.mgmt.devtestlabs.models.NotificationChannelEventType - :param json_payload: Properties for the notification in json format. - :type json_payload: str - """ - - _attribute_map = { - 'event_name': {'key': 'eventName', 'type': 'str'}, - 'json_payload': {'key': 'jsonPayload', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NotifyParameters, self).__init__(**kwargs) - self.event_name = kwargs.get('event_name', None) - self.json_payload = kwargs.get('json_payload', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters_py3.py deleted file mode 100644 index 40b8e900f189..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/notify_parameters_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NotifyParameters(Model): - """Properties for generating a Notification. - - :param event_name: The type of event (i.e. AutoShutdown, Cost). Possible - values include: 'AutoShutdown', 'Cost' - :type event_name: str or - ~azure.mgmt.devtestlabs.models.NotificationChannelEventType - :param json_payload: Properties for the notification in json format. - :type json_payload: str - """ - - _attribute_map = { - 'event_name': {'key': 'eventName', 'type': 'str'}, - 'json_payload': {'key': 'jsonPayload', 'type': 'str'}, - } - - def __init__(self, *, event_name=None, json_payload: str=None, **kwargs) -> None: - super(NotifyParameters, self).__init__(**kwargs) - self.event_name = event_name - self.json_payload = json_payload diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error.py deleted file mode 100644 index 5ee1f80b2712..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationError(Model): - """Error details for the operation in case of a failure. - - :param code: The error code of the operation error. - :type code: str - :param message: The error message of the operation error. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error_py3.py deleted file mode 100644 index 19c57b944297..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationError(Model): - """Error details for the operation in case of a failure. - - :param code: The error code of the operation error. - :type code: str - :param message: The error message of the operation error. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(OperationError, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata.py deleted file mode 100644 index 3551895bd8c6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationMetadata(Model): - """The REST API operation supported by DevTestLab ResourceProvider. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that describes the operations - :type display: ~azure.mgmt.devtestlabs.models.OperationMetadataDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationMetadataDisplay'}, - } - - def __init__(self, **kwargs): - super(OperationMetadata, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display.py deleted file mode 100644 index c20b0b519d3e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationMetadataDisplay(Model): - """The object that describes the operations. - - :param provider: Friendly name of the resource provider - :type provider: str - :param resource: Resource type on which the operation is performed. - :type resource: str - :param operation: Operation type: read, write, delete, listKeys/action, - etc. - :type operation: str - :param description: Friendly name of the operation - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationMetadataDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display_py3.py deleted file mode 100644 index a566cc55bfe8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationMetadataDisplay(Model): - """The object that describes the operations. - - :param provider: Friendly name of the resource provider - :type provider: str - :param resource: Resource type on which the operation is performed. - :type resource: str - :param operation: Operation type: read, write, delete, listKeys/action, - etc. - :type operation: str - :param description: Friendly name of the operation - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationMetadataDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_paged.py deleted file mode 100644 index f0fa25a37bed..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationMetadataPaged(Paged): - """ - A paging container for iterating over a list of :class:`OperationMetadata ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[OperationMetadata]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationMetadataPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_py3.py deleted file mode 100644 index c1f8e2997f51..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_metadata_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationMetadata(Model): - """The REST API operation supported by DevTestLab ResourceProvider. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that describes the operations - :type display: ~azure.mgmt.devtestlabs.models.OperationMetadataDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationMetadataDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(OperationMetadata, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result.py deleted file mode 100644 index 90f43aa80f9f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResult(Model): - """An Operation Result. - - :param status: The operation status. - :type status: str - :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', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or ~azure.mgmt.devtestlabs.models.HttpStatusCode - :param error: Error details for the operation in case of a failure. - :type error: ~azure.mgmt.devtestlabs.models.OperationError - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - } - - def __init__(self, **kwargs): - super(OperationResult, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.status_code = kwargs.get('status_code', None) - self.error = kwargs.get('error', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result_py3.py deleted file mode 100644 index cb371c521fb0..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_result_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResult(Model): - """An Operation Result. - - :param status: The operation status. - :type status: str - :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', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or ~azure.mgmt.devtestlabs.models.HttpStatusCode - :param error: Error details for the operation in case of a failure. - :type error: ~azure.mgmt.devtestlabs.models.OperationError - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - } - - def __init__(self, *, status: str=None, status_code=None, error=None, **kwargs) -> None: - super(OperationResult, self).__init__(**kwargs) - self.status = status - self.status_code = status_code - self.error = error diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info.py deleted file mode 100644 index 6e1972e6eace..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParameterInfo(Model): - """Information about an artifact's 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(ParameterInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info_py3.py deleted file mode 100644 index f35b39ef3fe4..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameter_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParameterInfo(Model): - """Information about an artifact's 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(ParameterInfo, self).__init__(**kwargs) - self.name = name - self.value = value diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info.py deleted file mode 100644 index a671306eac1c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersValueFileInfo(Model): - """A file containing a set of parameter values for an ARM template. - - :param file_name: File name. - :type file_name: str - :param parameters_value_info: Contents of the file. - :type parameters_value_info: object - """ - - _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'parameters_value_info': {'key': 'parametersValueInfo', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ParametersValueFileInfo, self).__init__(**kwargs) - self.file_name = kwargs.get('file_name', None) - self.parameters_value_info = kwargs.get('parameters_value_info', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info_py3.py deleted file mode 100644 index fcbc00df3f23..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/parameters_value_file_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersValueFileInfo(Model): - """A file containing a set of parameter values for an ARM template. - - :param file_name: File name. - :type file_name: str - :param parameters_value_info: Contents of the file. - :type parameters_value_info: object - """ - - _attribute_map = { - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'parameters_value_info': {'key': 'parametersValueInfo', 'type': 'object'}, - } - - def __init__(self, *, file_name: str=None, parameters_value_info=None, **kwargs) -> None: - super(ParametersValueFileInfo, self).__init__(**kwargs) - self.file_name = file_name - self.parameters_value_info = parameters_value_info diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties.py deleted file mode 100644 index 73de17d9ee24..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PercentageCostThresholdProperties(Model): - """Properties of a percentage cost threshold. - - :param threshold_value: The cost threshold value. - :type threshold_value: float - """ - - _attribute_map = { - 'threshold_value': {'key': 'thresholdValue', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(PercentageCostThresholdProperties, self).__init__(**kwargs) - self.threshold_value = kwargs.get('threshold_value', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties_py3.py deleted file mode 100644 index 22ae6e7d274c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/percentage_cost_threshold_properties_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PercentageCostThresholdProperties(Model): - """Properties of a percentage cost threshold. - - :param threshold_value: The cost threshold value. - :type threshold_value: float - """ - - _attribute_map = { - 'threshold_value': {'key': 'thresholdValue', 'type': 'float'}, - } - - def __init__(self, *, threshold_value: float=None, **kwargs) -> None: - super(PercentageCostThresholdProperties, self).__init__(**kwargs) - self.threshold_value = threshold_value diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy.py deleted file mode 100644 index 96719fffb5d7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Policy(Resource): - """A Policy. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar created_date: The creation date of the policy. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Policy, 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) - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py deleted file mode 100644 index 4d240945e5a7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class PolicyFragment(UpdateResource): - """A Policy. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment_py3.py deleted file mode 100644 index b10648b0cdc7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class PolicyFragment(UpdateResource): - """A Policy. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_paged.py deleted file mode 100644 index 6ef7f073726e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`Policy ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Policy]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_py3.py deleted file mode 100644 index 1bfd40ab2402..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Policy(Resource): - """A Policy. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar created_date: The creation date of the policy. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, description: str=None, status=None, fact_name=None, fact_data: str=None, threshold: str=None, evaluator_type=None, **kwargs) -> None: - super(Policy, self).__init__(location=location, 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 - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result.py deleted file mode 100644 index 3dc1698dc354..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetResult(Model): - """Result of a policy set evaluation. - - :param has_error: A value indicating whether this policy set evaluation - has discovered violations. - :type has_error: bool - :param policy_violations: The list of policy violations. - :type policy_violations: - list[~azure.mgmt.devtestlabs.models.PolicyViolation] - """ - - _attribute_map = { - 'has_error': {'key': 'hasError', 'type': 'bool'}, - 'policy_violations': {'key': 'policyViolations', 'type': '[PolicyViolation]'}, - } - - def __init__(self, **kwargs): - super(PolicySetResult, self).__init__(**kwargs) - self.has_error = kwargs.get('has_error', None) - self.policy_violations = kwargs.get('policy_violations', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result_py3.py deleted file mode 100644 index 5368647ec498..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_set_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetResult(Model): - """Result of a policy set evaluation. - - :param has_error: A value indicating whether this policy set evaluation - has discovered violations. - :type has_error: bool - :param policy_violations: The list of policy violations. - :type policy_violations: - list[~azure.mgmt.devtestlabs.models.PolicyViolation] - """ - - _attribute_map = { - 'has_error': {'key': 'hasError', 'type': 'bool'}, - 'policy_violations': {'key': 'policyViolations', 'type': '[PolicyViolation]'}, - } - - def __init__(self, *, has_error: bool=None, policy_violations=None, **kwargs) -> None: - super(PolicySetResult, self).__init__(**kwargs) - self.has_error = has_error - self.policy_violations = policy_violations diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation.py deleted file mode 100644 index b8404db70da6..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyViolation(Model): - """Policy violation. - - :param code: The code of the policy violation. - :type code: str - :param message: The message of the policy violation. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyViolation, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation_py3.py deleted file mode 100644 index 8f33f97afeed..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_violation_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyViolation(Model): - """Policy violation. - - :param code: The code of the policy violation. - :type code: str - :param message: The message of the policy violation. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(PolicyViolation, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port.py deleted file mode 100644 index 794610b68871..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Port(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(Port, self).__init__(**kwargs) - self.transport_protocol = kwargs.get('transport_protocol', None) - self.backend_port = kwargs.get('backend_port', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment.py deleted file mode 100644 index 60e28efa9dd8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment_py3.py deleted file mode 100644 index dd39e446c5ff..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_fragment_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_py3.py deleted file mode 100644 index c4b7645a0a18..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/port_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Port(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(Port, self).__init__(**kwargs) - self.transport_protocol = transport_protocol - self.backend_port = backend_port diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection.py deleted file mode 100644 index 71926d62a621..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RdpConnection(Model): - """Represents a .rdp file. - - :param contents: The contents of the .rdp file - :type contents: str - """ - - _attribute_map = { - 'contents': {'key': 'contents', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RdpConnection, self).__init__(**kwargs) - self.contents = kwargs.get('contents', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection_py3.py deleted file mode 100644 index 3f92de164fea..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/rdp_connection_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RdpConnection(Model): - """Represents a .rdp file. - - :param contents: The contents of the .rdp file - :type contents: str - """ - - _attribute_map = { - 'contents': {'key': 'contents', 'type': 'str'}, - } - - def __init__(self, *, contents: str=None, **kwargs) -> None: - super(RdpConnection, self).__init__(**kwargs) - self.contents = contents diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties.py deleted file mode 100644 index 13725ea5e306..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResizeLabVirtualMachineProperties(Model): - """Request body for resizing a virtual machine. - - :param size: Specifies the size of the virtual machine. - :type size: str - """ - - _attribute_map = { - 'size': {'key': 'size', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResizeLabVirtualMachineProperties, self).__init__(**kwargs) - self.size = kwargs.get('size', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties_py3.py deleted file mode 100644 index 266b19149f7a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resize_lab_virtual_machine_properties_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResizeLabVirtualMachineProperties(Model): - """Request body for resizing a virtual machine. - - :param size: Specifies the size of the virtual machine. - :type size: str - """ - - _attribute_map = { - 'size': {'key': 'size', 'type': 'str'}, - } - - def __init__(self, *, size: str=None, **kwargs) -> None: - super(ResizeLabVirtualMachineProperties, self).__init__(**kwargs) - self.size = size diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource.py deleted file mode 100644 index f25b57698413..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """An Azure resource. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource_py3.py deleted file mode 100644 index e59df581aa79..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """An Azure resource. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties.py deleted file mode 100644 index 210f4a7b2eca..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetargetScheduleProperties(Model): - """Properties for retargeting a virtual machine schedule. - - :param current_resource_id: The resource Id of the virtual machine on - which the schedule operates - :type current_resource_id: str - :param target_resource_id: The resource Id of the virtual machine that the - schedule should be retargeted to - :type target_resource_id: str - """ - - _attribute_map = { - 'current_resource_id': {'key': 'currentResourceId', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RetargetScheduleProperties, self).__init__(**kwargs) - self.current_resource_id = kwargs.get('current_resource_id', None) - self.target_resource_id = kwargs.get('target_resource_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties_py3.py deleted file mode 100644 index debd7258fb28..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/retarget_schedule_properties_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetargetScheduleProperties(Model): - """Properties for retargeting a virtual machine schedule. - - :param current_resource_id: The resource Id of the virtual machine on - which the schedule operates - :type current_resource_id: str - :param target_resource_id: The resource Id of the virtual machine that the - schedule should be retargeted to - :type target_resource_id: str - """ - - _attribute_map = { - 'current_resource_id': {'key': 'currentResourceId', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, *, current_resource_id: str=None, target_resource_id: str=None, **kwargs) -> None: - super(RetargetScheduleProperties, self).__init__(**kwargs) - self.current_resource_id = current_resource_id - self.target_resource_id = target_resource_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule.py deleted file mode 100644 index a0c09919fa48..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Schedule(Resource): - """A schedule. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.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 - :ivar created_date: The creation date of the schedule. - :vartype created_date: datetime - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Schedule, 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.created_date = None - self.target_resource_id = kwargs.get('target_resource_id', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter.py deleted file mode 100644 index 1eced41c432d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment.py deleted file mode 100644 index e3f67d9d59bf..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 - :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': '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'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ScheduleCreationParameterFragment, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment_py3.py deleted file mode 100644 index 47e9ece35bfb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_fragment_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 - :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': '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'}, - '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(ScheduleCreationParameterFragment, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_py3.py deleted file mode 100644 index 8254f67c85be..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_creation_parameter_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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, *, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment.py deleted file mode 100644 index 17cb84a52572..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class ScheduleFragment(UpdateResource): - """A schedule. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment_py3.py deleted file mode 100644 index a51222b2406e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_fragment_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class ScheduleFragment(UpdateResource): - """A schedule. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_paged.py deleted file mode 100644 index 1aa4946ff51e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class SchedulePaged(Paged): - """ - A paging container for iterating over a list of :class:`Schedule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Schedule]'} - } - - def __init__(self, *args, **kwargs): - - super(SchedulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_py3.py deleted file mode 100644 index efd16216ef6e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/schedule_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Schedule(Resource): - """A schedule. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.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 - :ivar created_date: The creation date of the schedule. - :vartype created_date: datetime - :param target_resource_id: The resource ID to which the schedule belongs - :type target_resource_id: str - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - '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'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'target_resource_id': {'key': 'properties.targetResourceId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, 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: - super(Schedule, self).__init__(location=location, 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.created_date = None - self.target_resource_id = target_resource_id - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret.py deleted file mode 100644 index ae1048a9e9ec..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Secret(Resource): - """A secret. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: 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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'value': {'key': 'properties.value', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Secret, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment.py deleted file mode 100644 index 06df551c944b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class SecretFragment(UpdateResource): - """A secret. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment_py3.py deleted file mode 100644 index 64907637295e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_fragment_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class SecretFragment(UpdateResource): - """A secret. - - :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: - super(SecretFragment, self).__init__(tags=tags, **kwargs) - self.value = value diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_paged.py deleted file mode 100644 index 1c6a8f295064..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class SecretPaged(Paged): - """ - A paging container for iterating over a list of :class:`Secret ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Secret]'} - } - - def __init__(self, *args, **kwargs): - - super(SecretPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_py3.py deleted file mode 100644 index 16b45cb8ccde..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/secret_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Secret(Resource): - """A secret. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: 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 - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'value': {'key': 'properties.value', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, value: str=None, **kwargs) -> None: - super(Secret, self).__init__(location=location, tags=tags, **kwargs) - self.value = value - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric.py deleted file mode 100644 index e8f46ff06337..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ServiceFabric(Resource): - """A Service Fabric. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar applicable_schedule: The applicable schedule for the virtual - machine. - :vartype applicable_schedule: - ~azure.mgmt.devtestlabs.models.ApplicableSchedule - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'applicable_schedule': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceFabric, self).__init__(**kwargs) - self.external_service_fabric_id = kwargs.get('external_service_fabric_id', None) - self.environment_id = kwargs.get('environment_id', None) - self.applicable_schedule = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment.py deleted file mode 100644 index 8feb8f2b0dcd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class ServiceFabricFragment(UpdateResource): - """A Service Fabric. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment_py3.py deleted file mode 100644 index a1471c5984ea..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_fragment_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class ServiceFabricFragment(UpdateResource): - """A Service Fabric. - - :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: - super(ServiceFabricFragment, self).__init__(tags=tags, **kwargs) - self.external_service_fabric_id = external_service_fabric_id - self.environment_id = environment_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_paged.py deleted file mode 100644 index 7de95722931e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ServiceFabricPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServiceFabric ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServiceFabric]'} - } - - def __init__(self, *args, **kwargs): - - super(ServiceFabricPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_py3.py deleted file mode 100644 index 50cf5f715bf4..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_fabric_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ServiceFabric(Resource): - """A Service Fabric. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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 - :ivar applicable_schedule: The applicable schedule for the virtual - machine. - :vartype applicable_schedule: - ~azure.mgmt.devtestlabs.models.ApplicableSchedule - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'applicable_schedule': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'external_service_fabric_id': {'key': 'properties.externalServiceFabricId', 'type': 'str'}, - 'environment_id': {'key': 'properties.environmentId', 'type': 'str'}, - 'applicable_schedule': {'key': 'properties.applicableSchedule', 'type': 'ApplicableSchedule'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, external_service_fabric_id: str=None, environment_id: str=None, **kwargs) -> None: - super(ServiceFabric, self).__init__(location=location, tags=tags, **kwargs) - self.external_service_fabric_id = external_service_fabric_id - self.environment_id = environment_id - self.applicable_schedule = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner.py deleted file mode 100644 index 38d8100572ac..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ServiceRunner(Resource): - """A container for a managed identity to execute DevTest lab services. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.devtestlabs.models.IdentityProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, - } - - def __init__(self, **kwargs): - super(ServiceRunner, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py deleted file mode 100644 index c5f8658f70e1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ServiceRunnerPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServiceRunner ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServiceRunner]'} - } - - def __init__(self, *args, **kwargs): - - super(ServiceRunnerPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_py3.py deleted file mode 100644 index 5afa18026e0c..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/service_runner_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ServiceRunner(Resource): - """A container for a managed identity to execute DevTest lab services. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The identifier of the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.devtestlabs.models.IdentityProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityProperties'}, - } - - def __init__(self, *, location: str=None, tags=None, identity=None, **kwargs) -> None: - super(ServiceRunner, self).__init__(location=location, tags=tags, **kwargs) - self.identity = identity diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration.py deleted file mode 100644 index c372a21093bd..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import 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.InboundNatRule] - """ - - _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, - } - - def __init__(self, **kwargs): - super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment.py deleted file mode 100644 index 48eef7b014cc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SharedPublicIpAddressConfigurationFragment(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] - """ - - _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, - } - - def __init__(self, **kwargs): - super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) - self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment_py3.py deleted file mode 100644 index d2121254c806..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_fragment_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SharedPublicIpAddressConfigurationFragment(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] - """ - - _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRuleFragment]'}, - } - - def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: - super(SharedPublicIpAddressConfigurationFragment, self).__init__(**kwargs) - self.inbound_nat_rules = inbound_nat_rules diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_py3.py deleted file mode 100644 index 13c9209e5140..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shared_public_ip_address_configuration_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import 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.InboundNatRule] - """ - - _attribute_map = { - 'inbound_nat_rules': {'key': 'inboundNatRules', 'type': '[InboundNatRule]'}, - } - - def __init__(self, *, inbound_nat_rules=None, **kwargs) -> None: - super(SharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.inbound_nat_rules = inbound_nat_rules diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content.py deleted file mode 100644 index 00b760315ab8..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ShutdownNotificationContent(Model): - """The contents of a shutdown notification. Webhooks can use this type to - deserialize the request body when they get notified of an imminent - shutdown. - - :param skip_url: The URL to skip auto-shutdown. - :type skip_url: str - :param delay_url60: The URL to delay shutdown by 60 minutes. - :type delay_url60: str - :param delay_url120: The URL to delay shutdown by 2 hours. - :type delay_url120: str - :param vm_name: The virtual machine to be shut down. - :type vm_name: str - :param guid: The GUID for the virtual machine to be shut down. - :type guid: str - :param owner: The owner of the virtual machine. - :type owner: str - :param vm_url: The URL of the virtual machine. - :type vm_url: str - :param minutes_until_shutdown: Minutes remaining until shutdown - :type minutes_until_shutdown: str - :param event_type: The event for which a notification will be sent. - :type event_type: str - :param text: The text for the notification. - :type text: str - :param subscription_id: The subscription ID for the schedule. - :type subscription_id: str - :param resource_group_name: The resource group name for the schedule. - :type resource_group_name: str - :param lab_name: The lab for the schedule. - :type lab_name: str - """ - - _attribute_map = { - 'skip_url': {'key': 'skipUrl', 'type': 'str'}, - 'delay_url60': {'key': 'delayUrl60', 'type': 'str'}, - 'delay_url120': {'key': 'delayUrl120', 'type': 'str'}, - 'vm_name': {'key': 'vmName', 'type': 'str'}, - 'guid': {'key': 'guid', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'}, - 'vm_url': {'key': 'vmUrl', 'type': 'str'}, - 'minutes_until_shutdown': {'key': 'minutesUntilShutdown', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'lab_name': {'key': 'labName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ShutdownNotificationContent, self).__init__(**kwargs) - self.skip_url = kwargs.get('skip_url', None) - self.delay_url60 = kwargs.get('delay_url60', None) - self.delay_url120 = kwargs.get('delay_url120', None) - self.vm_name = kwargs.get('vm_name', None) - self.guid = kwargs.get('guid', None) - self.owner = kwargs.get('owner', None) - self.vm_url = kwargs.get('vm_url', None) - self.minutes_until_shutdown = kwargs.get('minutes_until_shutdown', None) - self.event_type = kwargs.get('event_type', None) - self.text = kwargs.get('text', None) - self.subscription_id = kwargs.get('subscription_id', None) - self.resource_group_name = kwargs.get('resource_group_name', None) - self.lab_name = kwargs.get('lab_name', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content_py3.py deleted file mode 100644 index 47242c6a1816..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/shutdown_notification_content_py3.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ShutdownNotificationContent(Model): - """The contents of a shutdown notification. Webhooks can use this type to - deserialize the request body when they get notified of an imminent - shutdown. - - :param skip_url: The URL to skip auto-shutdown. - :type skip_url: str - :param delay_url60: The URL to delay shutdown by 60 minutes. - :type delay_url60: str - :param delay_url120: The URL to delay shutdown by 2 hours. - :type delay_url120: str - :param vm_name: The virtual machine to be shut down. - :type vm_name: str - :param guid: The GUID for the virtual machine to be shut down. - :type guid: str - :param owner: The owner of the virtual machine. - :type owner: str - :param vm_url: The URL of the virtual machine. - :type vm_url: str - :param minutes_until_shutdown: Minutes remaining until shutdown - :type minutes_until_shutdown: str - :param event_type: The event for which a notification will be sent. - :type event_type: str - :param text: The text for the notification. - :type text: str - :param subscription_id: The subscription ID for the schedule. - :type subscription_id: str - :param resource_group_name: The resource group name for the schedule. - :type resource_group_name: str - :param lab_name: The lab for the schedule. - :type lab_name: str - """ - - _attribute_map = { - 'skip_url': {'key': 'skipUrl', 'type': 'str'}, - 'delay_url60': {'key': 'delayUrl60', 'type': 'str'}, - 'delay_url120': {'key': 'delayUrl120', 'type': 'str'}, - 'vm_name': {'key': 'vmName', 'type': 'str'}, - 'guid': {'key': 'guid', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'}, - 'vm_url': {'key': 'vmUrl', 'type': 'str'}, - 'minutes_until_shutdown': {'key': 'minutesUntilShutdown', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'lab_name': {'key': 'labName', 'type': 'str'}, - } - - def __init__(self, *, skip_url: str=None, delay_url60: str=None, delay_url120: str=None, vm_name: str=None, guid: str=None, owner: str=None, vm_url: str=None, minutes_until_shutdown: str=None, event_type: str=None, text: str=None, subscription_id: str=None, resource_group_name: str=None, lab_name: str=None, **kwargs) -> None: - super(ShutdownNotificationContent, self).__init__(**kwargs) - self.skip_url = skip_url - self.delay_url60 = delay_url60 - self.delay_url120 = delay_url120 - self.vm_name = vm_name - self.guid = guid - self.owner = owner - self.vm_url = vm_url - self.minutes_until_shutdown = minutes_until_shutdown - self.event_type = event_type - self.text = text - self.subscription_id = subscription_id - self.resource_group_name = resource_group_name - self.lab_name = lab_name diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet.py deleted file mode 100644 index 520ea0b84c0b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subnet(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(Subnet, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment.py deleted file mode 100644 index db484aef5efc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment_py3.py deleted file mode 100644 index bdca8f51fc58..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_fragment_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override.py deleted file mode 100644 index c091e516241d..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubnetOverride(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.SubnetSharedPublicIpAddressConfiguration - :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': 'SubnetSharedPublicIpAddressConfiguration'}, - 'virtual_network_pool_name': {'key': 'virtualNetworkPoolName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubnetOverride, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment.py deleted file mode 100644 index 839368724e6a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment_py3.py deleted file mode 100644 index a48b90a27c65..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_fragment_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_py3.py deleted file mode 100644 index 30ddcbe9a971..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_override_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubnetOverride(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.SubnetSharedPublicIpAddressConfiguration - :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': 'SubnetSharedPublicIpAddressConfiguration'}, - '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(SubnetOverride, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_py3.py deleted file mode 100644 index 6faba11229c2..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subnet(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(Subnet, self).__init__(**kwargs) - self.resource_id = resource_id - self.lab_subnet_name = lab_subnet_name - self.allow_public_ip = allow_public_ip diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration.py deleted file mode 100644 index c300efe3e12a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubnetSharedPublicIpAddressConfiguration(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.Port] - """ - - _attribute_map = { - 'allowed_ports': {'key': 'allowedPorts', 'type': '[Port]'}, - } - - def __init__(self, **kwargs): - super(SubnetSharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.allowed_ports = kwargs.get('allowed_ports', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.py deleted file mode 100644 index 737aba0c3385..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment_py3.py deleted file mode 100644 index b108414e8db0..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_py3.py deleted file mode 100644 index b0149a863f64..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/subnet_shared_public_ip_address_configuration_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubnetSharedPublicIpAddressConfiguration(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.Port] - """ - - _attribute_map = { - 'allowed_ports': {'key': 'allowedPorts', 'type': '[Port]'}, - } - - def __init__(self, *, allowed_ports=None, **kwargs) -> None: - super(SubnetSharedPublicIpAddressConfiguration, self).__init__(**kwargs) - self.allowed_ports = allowed_ports diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties.py deleted file mode 100644 index d6eca3dfd40e..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetCostProperties(Model): - """Properties of a cost target. - - :param status: Target cost status. Possible values include: 'Enabled', - 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.TargetCostStatus - :param target: Lab target cost - :type target: int - :param cost_thresholds: Cost thresholds. - :type cost_thresholds: - list[~azure.mgmt.devtestlabs.models.CostThresholdProperties] - :param cycle_start_date_time: Reporting cycle start date. - :type cycle_start_date_time: datetime - :param cycle_end_date_time: Reporting cycle end date. - :type cycle_end_date_time: datetime - :param cycle_type: Reporting cycle type. Possible values include: - 'CalendarMonth', 'Custom' - :type cycle_type: str or ~azure.mgmt.devtestlabs.models.ReportingCycleType - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'int'}, - 'cost_thresholds': {'key': 'costThresholds', 'type': '[CostThresholdProperties]'}, - 'cycle_start_date_time': {'key': 'cycleStartDateTime', 'type': 'iso-8601'}, - 'cycle_end_date_time': {'key': 'cycleEndDateTime', 'type': 'iso-8601'}, - 'cycle_type': {'key': 'cycleType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetCostProperties, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.target = kwargs.get('target', None) - self.cost_thresholds = kwargs.get('cost_thresholds', None) - self.cycle_start_date_time = kwargs.get('cycle_start_date_time', None) - self.cycle_end_date_time = kwargs.get('cycle_end_date_time', None) - self.cycle_type = kwargs.get('cycle_type', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties_py3.py deleted file mode 100644 index 8e79d34b0ed9..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetCostProperties(Model): - """Properties of a cost target. - - :param status: Target cost status. Possible values include: 'Enabled', - 'Disabled' - :type status: str or ~azure.mgmt.devtestlabs.models.TargetCostStatus - :param target: Lab target cost - :type target: int - :param cost_thresholds: Cost thresholds. - :type cost_thresholds: - list[~azure.mgmt.devtestlabs.models.CostThresholdProperties] - :param cycle_start_date_time: Reporting cycle start date. - :type cycle_start_date_time: datetime - :param cycle_end_date_time: Reporting cycle end date. - :type cycle_end_date_time: datetime - :param cycle_type: Reporting cycle type. Possible values include: - 'CalendarMonth', 'Custom' - :type cycle_type: str or ~azure.mgmt.devtestlabs.models.ReportingCycleType - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'int'}, - 'cost_thresholds': {'key': 'costThresholds', 'type': '[CostThresholdProperties]'}, - 'cycle_start_date_time': {'key': 'cycleStartDateTime', 'type': 'iso-8601'}, - 'cycle_end_date_time': {'key': 'cycleEndDateTime', 'type': 'iso-8601'}, - 'cycle_type': {'key': 'cycleType', 'type': 'str'}, - } - - def __init__(self, *, status=None, target: int=None, cost_thresholds=None, cycle_start_date_time=None, cycle_end_date_time=None, cycle_type=None, **kwargs) -> None: - super(TargetCostProperties, self).__init__(**kwargs) - self.status = status - self.target = target - self.cost_thresholds = cost_thresholds - self.cycle_start_date_time = cycle_start_date_time - self.cycle_end_date_time = cycle_end_date_time - self.cycle_type = cycle_type diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource.py deleted file mode 100644 index 4849be7f6102..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateResource(Model): - """Represents an update resource. - - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(UpdateResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource_py3.py deleted file mode 100644 index 62a3c23c2164..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/update_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateResource(Model): - """Represents an update resource. - - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, tags=None, **kwargs) -> None: - super(UpdateResource, self).__init__(**kwargs) - self.tags = tags diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user.py deleted file mode 100644 index 28099b85f900..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class User(Resource): - """Profile of a lab user. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.UserIdentity - :param secret_store: The secret store of the user. - :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStore - :ivar created_date: The creation date of the user profile. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'properties.identity', 'type': 'UserIdentity'}, - 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStore'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(User, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.secret_store = kwargs.get('secret_store', None) - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment.py deleted file mode 100644 index cd9a685bdbbe..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class UserFragment(UpdateResource): - """Profile of a lab user. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment_py3.py deleted file mode 100644 index 357a81712e45..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_fragment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class UserFragment(UpdateResource): - """Profile of a lab user. - - :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: - super(UserFragment, self).__init__(tags=tags, **kwargs) - self.identity = identity - self.secret_store = secret_store diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity.py deleted file mode 100644 index 557f65e2b82f..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UserIdentity(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(UserIdentity, 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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment.py deleted file mode 100644 index 0783b56f47b3..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment_py3.py deleted file mode 100644 index 3c2fdb6e005b..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_fragment_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_py3.py deleted file mode 100644 index 03615a6e15b7..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_identity_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UserIdentity(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(UserIdentity, 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_paged.py deleted file mode 100644 index b48ce5901d56..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class UserPaged(Paged): - """ - A paging container for iterating over a list of :class:`User ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[User]'} - } - - def __init__(self, *args, **kwargs): - - super(UserPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_py3.py deleted file mode 100644 index 96d981829827..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class User(Resource): - """Profile of a lab user. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.UserIdentity - :param secret_store: The secret store of the user. - :type secret_store: ~azure.mgmt.devtestlabs.models.UserSecretStore - :ivar created_date: The creation date of the user profile. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'properties.identity', 'type': 'UserIdentity'}, - 'secret_store': {'key': 'properties.secretStore', 'type': 'UserSecretStore'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, identity=None, secret_store=None, **kwargs) -> None: - super(User, self).__init__(location=location, tags=tags, **kwargs) - self.identity = identity - self.secret_store = secret_store - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store.py deleted file mode 100644 index de4ee5cb6447..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UserSecretStore(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(UserSecretStore, self).__init__(**kwargs) - self.key_vault_uri = kwargs.get('key_vault_uri', None) - self.key_vault_id = kwargs.get('key_vault_id', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment.py deleted file mode 100644 index 7789bff72056..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment_py3.py deleted file mode 100644 index 241c44664e06..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_fragment_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_py3.py deleted file mode 100644 index ad56603f7926..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/user_secret_store_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UserSecretStore(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(UserSecretStore, self).__init__(**kwargs) - self.key_vault_uri = key_vault_uri - self.key_vault_id = key_vault_id diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network.py deleted file mode 100644 index 460ae9a78af0..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class VirtualNetwork(Resource): - """A virtual network. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Subnet] - :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 - :ivar external_subnets: The external subnet properties. - :vartype external_subnets: - list[~azure.mgmt.devtestlabs.models.ExternalSubnet] - :param subnet_overrides: The subnet overrides of the virtual network. - :type subnet_overrides: - list[~azure.mgmt.devtestlabs.models.SubnetOverride] - :ivar created_date: The creation date of the virtual network. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'external_subnets': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[Subnet]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, - 'external_subnets': {'key': 'properties.externalSubnets', 'type': '[ExternalSubnet]'}, - 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverride]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNetwork, 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.external_subnets = None - self.subnet_overrides = kwargs.get('subnet_overrides', None) - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment.py deleted file mode 100644 index 4840d07f21bb..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource import UpdateResource - - -class VirtualNetworkFragment(UpdateResource): - """A virtual network. - - :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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment_py3.py deleted file mode 100644 index bdc572018008..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_fragment_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .update_resource_py3 import UpdateResource - - -class VirtualNetworkFragment(UpdateResource): - """A virtual network. - - :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: - 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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_paged.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_paged.py deleted file mode 100644 index c4a6bac12054..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class VirtualNetworkPaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualNetwork ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualNetworkPaged, self).__init__(*args, **kwargs) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_py3.py deleted file mode 100644 index 4af05c325513..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/virtual_network_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class VirtualNetwork(Resource): - """A virtual network. - - 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 - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The location of the resource. - :type location: str - :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.Subnet] - :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 - :ivar external_subnets: The external subnet properties. - :vartype external_subnets: - list[~azure.mgmt.devtestlabs.models.ExternalSubnet] - :param subnet_overrides: The subnet overrides of the virtual network. - :type subnet_overrides: - list[~azure.mgmt.devtestlabs.models.SubnetOverride] - :ivar created_date: The creation date of the virtual network. - :vartype created_date: datetime - :ivar provisioning_state: The provisioning status of the resource. - :vartype provisioning_state: str - :ivar unique_identifier: The unique immutable identifier of a resource - (Guid). - :vartype unique_identifier: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'external_subnets': {'readonly': True}, - 'created_date': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'unique_identifier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[Subnet]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, - 'external_subnets': {'key': 'properties.externalSubnets', 'type': '[ExternalSubnet]'}, - 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverride]'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, allowed_subnets=None, description: str=None, external_provider_resource_id: str=None, subnet_overrides=None, **kwargs) -> None: - super(VirtualNetwork, self).__init__(location=location, tags=tags, **kwargs) - self.allowed_subnets = allowed_subnets - self.description = description - self.external_provider_resource_id = external_provider_resource_id - self.external_subnets = None - self.subnet_overrides = subnet_overrides - self.created_date = None - self.provisioning_state = None - self.unique_identifier = None diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details.py deleted file mode 100644 index 92d7a61279c1..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeekDetails(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(WeekDetails, self).__init__(**kwargs) - self.weekdays = kwargs.get('weekdays', None) - self.time = kwargs.get('time', None) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment.py deleted file mode 100644 index f40c5e26d54a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment_py3.py deleted file mode 100644 index 4521250deffc..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_fragment_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_py3.py deleted file mode 100644 index d3bdddf6f4e4..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/week_details_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeekDetails(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(WeekDetails, self).__init__(**kwargs) - self.weekdays = weekdays - self.time = time diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info.py deleted file mode 100644 index 377c585b9162..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WindowsOsInfo(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(WindowsOsInfo, 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/windows_os_info_fragment.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment.py deleted file mode 100644 index c54bfea8922a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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/windows_os_info_fragment_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment_py3.py deleted file mode 100644 index e2009eab0094..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_fragment_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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/models/windows_os_info_py3.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_py3.py deleted file mode 100644 index 6c59c08b3f5a..000000000000 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/windows_os_info_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WindowsOsInfo(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(WindowsOsInfo, self).__init__(**kwargs) - self.windows_os_state = windows_os_state diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/__init__.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/__init__.py index 89d5496052a3..659acdca2a6c 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/__init__.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/__init__.py @@ -9,31 +9,31 @@ # regenerated. # -------------------------------------------------------------------------- -from .provider_operations import ProviderOperations -from .labs_operations import LabsOperations -from .operations import Operations -from .global_schedules_operations import GlobalSchedulesOperations -from .artifact_sources_operations import ArtifactSourcesOperations -from .arm_templates_operations import ArmTemplatesOperations -from .artifacts_operations import ArtifactsOperations -from .costs_operations import CostsOperations -from .custom_images_operations import CustomImagesOperations -from .formulas_operations import FormulasOperations -from .gallery_images_operations import GalleryImagesOperations -from .notification_channels_operations import NotificationChannelsOperations -from .policy_sets_operations import PolicySetsOperations -from .policies_operations import PoliciesOperations -from .schedules_operations import SchedulesOperations -from .service_runners_operations import ServiceRunnersOperations -from .users_operations import UsersOperations -from .disks_operations import DisksOperations -from .environments_operations import EnvironmentsOperations -from .secrets_operations import SecretsOperations -from .service_fabrics_operations import ServiceFabricsOperations -from .service_fabric_schedules_operations import ServiceFabricSchedulesOperations -from .virtual_machines_operations import VirtualMachinesOperations -from .virtual_machine_schedules_operations import VirtualMachineSchedulesOperations -from .virtual_networks_operations import VirtualNetworksOperations +from ._provider_operations import ProviderOperations +from ._labs_operations import LabsOperations +from ._operations import Operations +from ._global_schedules_operations import GlobalSchedulesOperations +from ._artifact_sources_operations import ArtifactSourcesOperations +from ._arm_templates_operations import ArmTemplatesOperations +from ._artifacts_operations import ArtifactsOperations +from ._costs_operations import CostsOperations +from ._custom_images_operations import CustomImagesOperations +from ._formulas_operations import FormulasOperations +from ._gallery_images_operations import GalleryImagesOperations +from ._notification_channels_operations import NotificationChannelsOperations +from ._policy_sets_operations import PolicySetsOperations +from ._policies_operations import PoliciesOperations +from ._schedules_operations import SchedulesOperations +from ._service_runners_operations import ServiceRunnersOperations +from ._users_operations import UsersOperations +from ._disks_operations import DisksOperations +from ._environments_operations import EnvironmentsOperations +from ._secrets_operations import SecretsOperations +from ._service_fabrics_operations import ServiceFabricsOperations +from ._service_fabric_schedules_operations import ServiceFabricSchedulesOperations +from ._virtual_machines_operations import VirtualMachinesOperations +from ._virtual_machine_schedules_operations import VirtualMachineSchedulesOperations +from ._virtual_networks_operations import VirtualNetworksOperations __all__ = [ 'ProviderOperations', diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/arm_templates_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_arm_templates_operations.py similarity index 95% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/arm_templates_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_arm_templates_operations.py index fd4567544366..245a750452de 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/arm_templates_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_arm_templates_operations.py @@ -19,6 +19,8 @@ class ArmTemplatesOperations(object): """ArmTemplatesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.ArmTemplatePaged[~azure.mgmt.devtestlabs.models.ArmTemplate] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -110,6 +111,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -120,12 +126,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ArmTemplatePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ArmTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ArmTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates'} @@ -140,7 +144,7 @@ def get( :type lab_name: str :param artifact_source_name: The name of the artifact source. :type artifact_source_name: str - :param name: The name of the azure Resource Manager template. + :param name: The name of the azure resource manager template. :type name: str :param expand: Specify the $expand query. Example: 'properties($select=displayName)' @@ -192,7 +196,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArmTemplate', response) 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/artifact_sources_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifact_sources_operations.py index 67f75d5d6079..6ec87de82fc0 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 @@ -19,6 +19,8 @@ class ArtifactSourcesOperations(object): """ArtifactSourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( ~azure.mgmt.devtestlabs.models.ArtifactSourcePaged[~azure.mgmt.devtestlabs.models.ArtifactSource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -107,6 +108,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -117,12 +123,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ArtifactSourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ArtifactSourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ArtifactSourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources'} @@ -186,7 +190,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArtifactSource', response) @@ -257,7 +260,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArtifactSource', response) if response.status_code == 201: @@ -328,7 +330,8 @@ def delete( def update( self, resource_group_name, lab_name, name, artifact_source, custom_headers=None, raw=False, **operation_config): - """Modify properties of artifact sources. + """Allows modifying tags of artifact sources. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -387,7 +390,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArtifactSource', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/artifacts_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifacts_operations.py similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/artifacts_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifacts_operations.py index d036a6026f51..e4a5d9693cd5 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/artifacts_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_artifacts_operations.py @@ -19,6 +19,8 @@ class ArtifactsOperations(object): """ArtifactsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.ArtifactPaged[~azure.mgmt.devtestlabs.models.Artifact] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -110,6 +111,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -120,12 +126,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ArtifactPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ArtifactPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ArtifactPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts'} @@ -192,7 +196,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Artifact', response) @@ -269,7 +272,6 @@ def generate_arm_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArmTemplateInfo', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/costs_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_costs_operations.py similarity index 98% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/costs_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_costs_operations.py index b63651cdcedc..b0f9ccc59db7 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/costs_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_costs_operations.py @@ -19,6 +19,8 @@ class CostsOperations(object): """CostsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -96,7 +98,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabCost', response) @@ -167,7 +168,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabCost', response) if response.status_code == 201: 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/custom_images_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_custom_images_operations.py index 4471269a40a5..06d30d912df6 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 @@ -21,6 +21,8 @@ class CustomImagesOperations(object): """CustomImagesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.CustomImagePaged[~azure.mgmt.devtestlabs.models.CustomImage] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.CustomImagePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.CustomImagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.CustomImagePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CustomImage', response) @@ -391,7 +394,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, name, custom_image, custom_headers=None, raw=False, **operation_config): - """Modify properties of custom images. + """Allows modifying tags of custom images. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -449,7 +453,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CustomImage', response) 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 similarity index 98% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/disks_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_disks_operations.py index 3fbe8eac7cb0..5e5fea17acdd 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 @@ -21,6 +21,8 @@ class DisksOperations(object): """DisksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -71,8 +73,7 @@ def list( ~azure.mgmt.devtestlabs.models.DiskPaged[~azure.mgmt.devtestlabs.models.Disk] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -112,6 +113,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -122,12 +128,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DiskPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DiskPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DiskPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks'} @@ -194,7 +198,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Disk', response) @@ -405,7 +408,7 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, user_name, name, disk, custom_headers=None, raw=False, **operation_config): - """Modify properties of disks. + """Allows modifying tags of disks. All other properties will be ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -466,7 +469,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Disk', response) 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/environments_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_environments_operations.py index 61947381c66d..5805df9f86c1 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 @@ -21,6 +21,8 @@ class EnvironmentsOperations(object): """EnvironmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -71,8 +73,7 @@ def list( ~azure.mgmt.devtestlabs.models.DtlEnvironmentPaged[~azure.mgmt.devtestlabs.models.DtlEnvironment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -112,6 +113,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -122,12 +128,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DtlEnvironmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DtlEnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DtlEnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments'} @@ -194,7 +198,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DtlEnvironment', response) @@ -406,7 +409,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers=None, raw=False, **operation_config): - """Modify properties of environments. + """Allows modifying tags of environments. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -469,7 +473,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DtlEnvironment', response) 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/formulas_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_formulas_operations.py index 366a1a2a129e..1c0665356f52 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 @@ -21,6 +21,8 @@ class FormulasOperations(object): """FormulasOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.FormulaPaged[~azure.mgmt.devtestlabs.models.Formula] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FormulaPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FormulaPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FormulaPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Formula', response) @@ -254,7 +257,7 @@ def _create_or_update_initial( def create_or_update( self, resource_group_name, lab_name, name, formula, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or replace an existing Formula. This operation can take a while + """Create or replace an existing formula. This operation can take a while to complete. :param resource_group_name: The name of the resource group. @@ -365,7 +368,8 @@ def delete( def update( self, resource_group_name, lab_name, name, formula, custom_headers=None, raw=False, **operation_config): - """Modify properties of formulas. + """Allows modifying tags of formulas. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -424,7 +428,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Formula', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/gallery_images_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_gallery_images_operations.py similarity index 93% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/gallery_images_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_gallery_images_operations.py index 849946066b15..97c3cf13e2c0 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/gallery_images_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_gallery_images_operations.py @@ -19,6 +19,8 @@ class GalleryImagesOperations(object): """GalleryImagesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( ~azure.mgmt.devtestlabs.models.GalleryImagePaged[~azure.mgmt.devtestlabs.models.GalleryImage] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -107,6 +108,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -117,12 +123,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GalleryImagePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GalleryImagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GalleryImagePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages'} 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/global_schedules_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_global_schedules_operations.py index 736efa3c0cea..c05fe0f1308e 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 @@ -21,6 +21,8 @@ class GlobalSchedulesOperations(object): """GlobalSchedulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -65,8 +67,7 @@ def list_by_subscription( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] @@ -103,6 +104,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/schedules'} @@ -151,8 +155,7 @@ def list_by_resource_group( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -190,6 +193,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -200,12 +208,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules'} @@ -266,7 +272,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -334,7 +339,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) if response.status_code == 201: @@ -402,7 +406,8 @@ def delete( def update( self, resource_group_name, name, schedule, custom_headers=None, raw=False, **operation_config): - """Modify properties of schedules. + """Allows modifying tags of schedules. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -457,7 +462,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) 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 similarity index 98% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/labs_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_labs_operations.py index d6ce7c62635f..a0b03f5a0c53 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 @@ -21,6 +21,8 @@ class LabsOperations(object): """LabsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -65,8 +67,7 @@ def list_by_subscription( ~azure.mgmt.devtestlabs.models.LabPaged[~azure.mgmt.devtestlabs.models.Lab] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] @@ -103,6 +104,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs'} @@ -151,8 +155,7 @@ def list_by_resource_group( ~azure.mgmt.devtestlabs.models.LabPaged[~azure.mgmt.devtestlabs.models.Lab] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -190,6 +193,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -200,12 +208,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs'} @@ -266,7 +272,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Lab', response) @@ -461,7 +466,7 @@ def get_long_running_output(response): def update( self, resource_group_name, name, lab, custom_headers=None, raw=False, **operation_config): - """Modify properties of labs. + """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 @@ -516,7 +521,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Lab', response) @@ -850,7 +854,6 @@ def generate_upload_uri( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenerateUploadUriResponse', response) @@ -973,8 +976,7 @@ def list_vhds( ~azure.mgmt.devtestlabs.models.LabVhdPaged[~azure.mgmt.devtestlabs.models.LabVhd] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_vhds.metadata['url'] @@ -1005,6 +1007,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.post(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -1015,12 +1022,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabVhdPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabVhdPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabVhdPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_vhds.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/listVhds'} 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 similarity index 96% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/notification_channels_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_notification_channels_operations.py index 0c19dd07462e..d0f4de2d054b 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 @@ -19,6 +19,8 @@ class NotificationChannelsOperations(object): """NotificationChannelsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( ~azure.mgmt.devtestlabs.models.NotificationChannelPaged[~azure.mgmt.devtestlabs.models.NotificationChannel] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -107,6 +108,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -117,12 +123,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.NotificationChannelPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.NotificationChannelPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.NotificationChannelPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels'} @@ -135,7 +139,7 @@ def get( :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str - :param name: The name of the notificationChannel. + :param name: The name of the notification channel. :type name: str :param expand: Specify the $expand query. Example: 'properties($select=webHookUrl)' @@ -186,7 +190,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NotificationChannel', response) @@ -199,13 +202,13 @@ def get( def create_or_update( self, resource_group_name, lab_name, name, notification_channel, custom_headers=None, raw=False, **operation_config): - """Create or replace an existing notificationChannel. + """Create or replace an existing notification channel. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str - :param name: The name of the notificationChannel. + :param name: The name of the notification channel. :type name: str :param notification_channel: A notification. :type notification_channel: @@ -258,7 +261,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NotificationChannel', response) if response.status_code == 201: @@ -279,7 +281,7 @@ def delete( :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str - :param name: The name of the notificationChannel. + :param name: The name of the notification channel. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -329,13 +331,14 @@ def delete( def update( self, resource_group_name, lab_name, name, notification_channel, custom_headers=None, raw=False, **operation_config): - """Modify properties of notification channels. + """Allows modifying tags of notification channels. All other properties + will be ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str - :param name: The name of the notificationChannel. + :param name: The name of the notification channel. :type name: str :param notification_channel: A notification. :type notification_channel: @@ -388,7 +391,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NotificationChannel', response) @@ -407,7 +409,7 @@ def notify( :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str - :param name: The name of the notificationChannel. + :param name: The name of the notification channel. :type name: str :param event_name: The type of event (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' 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 similarity index 96% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_operations.py index 2f0636e39f26..5576b0e6fc0f 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 @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -88,7 +90,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationResult', 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/policies_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policies_operations.py index da02489f324b..90b956a0d88c 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 @@ -19,6 +19,8 @@ class PoliciesOperations(object): """PoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.PolicyPaged[~azure.mgmt.devtestlabs.models.Policy] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -110,6 +111,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -120,12 +126,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies'} @@ -192,7 +196,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Policy', response) @@ -266,7 +269,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Policy', response) if response.status_code == 201: @@ -340,7 +342,8 @@ def delete( def update( self, resource_group_name, lab_name, policy_set_name, name, policy, custom_headers=None, raw=False, **operation_config): - """Modify properties of policies. + """Allows modifying tags of policies. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -401,7 +404,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Policy', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/policy_sets_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policy_sets_operations.py similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/policy_sets_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policy_sets_operations.py index ed602a5ba340..66acd3ffb5e6 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/policy_sets_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_policy_sets_operations.py @@ -19,6 +19,8 @@ class PolicySetsOperations(object): """PolicySetsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -100,7 +102,6 @@ def evaluate_policies( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('EvaluatePoliciesResponse', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/provider_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_provider_operations.py similarity index 90% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/provider_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_provider_operations.py index 3597edb7fa87..5b12492d4b39 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/provider_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_provider_operations.py @@ -19,6 +19,8 @@ class ProviderOperations(object): """ProviderOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.devtestlabs.models.OperationMetadataPaged[~azure.mgmt.devtestlabs.models.OperationMetadata] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationMetadataPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.DevTestLab/operations'} 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/schedules_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_schedules_operations.py index 5f4e9429e3a1..996b11b9e6d4 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 @@ -21,6 +21,8 @@ class SchedulesOperations(object): """SchedulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -259,7 +262,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) if response.status_code == 201: @@ -330,7 +332,8 @@ def delete( def update( self, resource_group_name, lab_name, name, schedule, custom_headers=None, raw=False, **operation_config): - """Modify properties of schedules. + """Allows modifying tags of schedules. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -388,7 +391,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -502,8 +504,7 @@ def list_applicable( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_applicable.metadata['url'] @@ -535,6 +536,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.post(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -545,12 +551,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_applicable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/listApplicable'} 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/secrets_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_secrets_operations.py index 46e2a62a2b88..aa04f243c68c 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 @@ -21,6 +21,8 @@ class SecretsOperations(object): """SecretsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -71,8 +73,7 @@ def list( ~azure.mgmt.devtestlabs.models.SecretPaged[~azure.mgmt.devtestlabs.models.Secret] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -112,6 +113,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -122,12 +128,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SecretPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SecretPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SecretPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets'} @@ -194,7 +198,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Secret', response) @@ -377,7 +380,7 @@ def delete( def update( self, resource_group_name, lab_name, user_name, name, tags=None, value=None, custom_headers=None, raw=False, **operation_config): - """Modify properties of secrets. + """Allows modifying tags of secrets. All other properties will be ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -442,7 +445,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Secret', response) 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 similarity index 96% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/service_fabric_schedules_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabric_schedules_operations.py index 892b9b3fb50b..62ac4ca15eb1 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 @@ -21,6 +21,8 @@ class ServiceFabricSchedulesOperations(object): """ServiceFabricSchedulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -49,7 +51,7 @@ def list( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param expand: Specify the $expand query. Example: 'properties($select=status)' @@ -73,8 +75,7 @@ def list( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -115,6 +116,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -125,12 +131,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules'} @@ -145,7 +149,7 @@ def get( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param name: The name of the schedule. :type name: str @@ -200,7 +204,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -221,7 +224,7 @@ def create_or_update( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param name: The name of the schedule. :type name: str @@ -277,7 +280,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) if response.status_code == 201: @@ -300,7 +302,7 @@ def delete( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param name: The name of the schedule. :type name: str @@ -354,7 +356,8 @@ def delete( def update( self, resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers=None, raw=False, **operation_config): - """Modify properties of schedules. + """Allows modifying tags of schedules. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -362,7 +365,7 @@ def update( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param name: The name of the schedule. :type name: str @@ -418,7 +421,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -480,7 +482,7 @@ def execute( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param service_fabric_name: The name of the service Fabric. + :param service_fabric_name: The name of the service fabric. :type service_fabric_name: str :param name: The name of the schedule. :type name: str 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/service_fabrics_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_fabrics_operations.py index 076aa87a7963..f3ef18b8584e 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 @@ -21,6 +21,8 @@ class ServiceFabricsOperations(object): """ServiceFabricsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -71,8 +73,7 @@ def list( ~azure.mgmt.devtestlabs.models.ServiceFabricPaged[~azure.mgmt.devtestlabs.models.ServiceFabric] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -112,6 +113,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -122,12 +128,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServiceFabricPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ServiceFabricPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ServiceFabricPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics'} @@ -142,7 +146,7 @@ def get( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param expand: Specify the $expand query. Example: 'properties($expand=applicableSchedule)' @@ -194,7 +198,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceFabric', response) @@ -261,7 +264,7 @@ def _create_or_update_initial( def create_or_update( self, resource_group_name, lab_name, user_name, name, service_fabric, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or replace an existing Service Fabric. This operation can take a + """Create or replace an existing service fabric. This operation can take a while to complete. :param resource_group_name: The name of the resource group. @@ -270,7 +273,7 @@ def create_or_update( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param service_fabric: A Service Fabric. :type service_fabric: ~azure.mgmt.devtestlabs.models.ServiceFabric @@ -366,7 +369,7 @@ def delete( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the @@ -405,7 +408,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, user_name, name, service_fabric, custom_headers=None, raw=False, **operation_config): - """Modify properties of service fabrics. + """Allows modifying tags of service fabrics. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -413,7 +417,7 @@ def update( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param service_fabric: A Service Fabric. :type service_fabric: @@ -467,7 +471,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceFabric', response) @@ -488,7 +491,7 @@ def list_applicable_schedules( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -535,7 +538,6 @@ def list_applicable_schedules( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicableSchedule', response) @@ -596,7 +598,7 @@ def start( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the @@ -683,7 +685,7 @@ def stop( :type lab_name: str :param user_name: The name of the user profile. :type user_name: str - :param name: The name of the service Fabric. + :param name: The name of the service fabric. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/service_runners_operations.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_runners_operations.py similarity index 71% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/service_runners_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_runners_operations.py index 83b4e9dae88c..aa464691b2fd 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/service_runners_operations.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_service_runners_operations.py @@ -19,6 +19,8 @@ class ServiceRunnersOperations(object): """ServiceRunnersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -37,91 +39,6 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def list( - self, resource_group_name, lab_name, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config): - """List service runners in a given lab. - - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param lab_name: The name of the lab. - :type lab_name: str - :param filter: The filter to apply to the operation. Example: - '$filter=contains(name,'myName') - :type filter: str - :param top: The maximum number of resources to return from the - operation. Example: '$top=10' - :type top: int - :param orderby: The ordering expression for the results, using OData - notation. Example: '$orderby=name desc' - :type orderby: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ServiceRunner - :rtype: - ~azure.mgmt.devtestlabs.models.ServiceRunnerPaged[~azure.mgmt.devtestlabs.models.ServiceRunner] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'labName': self._serialize.url("lab_name", lab_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServiceRunnerPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServiceRunnerPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners'} - def get( self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config): """Get service runner. @@ -176,7 +93,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceRunner', response) @@ -189,7 +105,7 @@ def get( def create_or_update( self, resource_group_name, lab_name, name, service_runner, custom_headers=None, raw=False, **operation_config): - """Create or replace an existing Service runner. + """Create or replace an existing service runner. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -248,7 +164,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceRunner', response) if response.status_code == 201: 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/users_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_users_operations.py index 5f68155fece3..7e4d74c46fab 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 @@ -21,6 +21,8 @@ class UsersOperations(object): """UsersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.UserPaged[~azure.mgmt.devtestlabs.models.User] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.UserPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.UserPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.UserPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('User', response) @@ -391,7 +394,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, name, user, custom_headers=None, raw=False, **operation_config): - """Modify properties of user profiles. + """Allows modifying tags of user profiles. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -449,7 +453,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('User', response) 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 similarity index 98% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/virtual_machine_schedules_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machine_schedules_operations.py index dadb93a7e064..080a6514a343 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 @@ -21,6 +21,8 @@ class VirtualMachineSchedulesOperations(object): """VirtualMachineSchedulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -71,8 +73,7 @@ def list( ~azure.mgmt.devtestlabs.models.SchedulePaged[~azure.mgmt.devtestlabs.models.Schedule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -112,6 +113,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -122,12 +128,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SchedulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules'} @@ -194,7 +198,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) @@ -268,7 +271,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) if response.status_code == 201: @@ -342,7 +344,8 @@ def delete( def update( self, resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers=None, raw=False, **operation_config): - """Modify properties of schedules. + """Allows modifying tags of schedules. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -403,7 +406,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Schedule', response) 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 similarity index 99% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/virtual_machines_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_machines_operations.py index 16c7762bfc04..32c51685fb71 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 @@ -21,6 +21,8 @@ class VirtualMachinesOperations(object): """VirtualMachinesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.LabVirtualMachinePaged[~azure.mgmt.devtestlabs.models.LabVirtualMachine] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabVirtualMachinePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabVirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabVirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabVirtualMachine', response) @@ -254,7 +257,7 @@ def _create_or_update_initial( def create_or_update( self, resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or replace an existing Virtual machine. This operation can take + """Create or replace an existing virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. @@ -392,7 +395,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config): - """Modify properties of virtual machines. + """Allows modifying tags of virtual machines. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -451,7 +455,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabVirtualMachine', response) @@ -882,7 +885,6 @@ def get_rdp_file_contents( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('RdpConnection', response) @@ -947,7 +949,6 @@ def list_applicable_schedules( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicableSchedule', response) 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 similarity index 97% rename from sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/virtual_networks_operations.py rename to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/operations/_virtual_networks_operations.py index 12ee56cd36ad..659a7cc31b2f 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 @@ -21,6 +21,8 @@ class VirtualNetworksOperations(object): """VirtualNetworksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,8 +71,7 @@ def list( ~azure.mgmt.devtestlabs.models.VirtualNetworkPaged[~azure.mgmt.devtestlabs.models.VirtualNetwork] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -109,6 +110,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -119,12 +125,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks'} @@ -188,7 +192,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VirtualNetwork', response) @@ -391,7 +394,8 @@ def get_long_running_output(response): def update( self, resource_group_name, lab_name, name, virtual_network, custom_headers=None, raw=False, **operation_config): - """Modify properties of virtual networks. + """Allows modifying tags of virtual networks. All other properties will be + ignored. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -450,7 +454,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VirtualNetwork', response) diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/setup.py b/sdk/devtestlabs/azure-mgmt-devtestlabs/setup.py index c74bcc7d5281..b136f9c8d9bf 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/setup.py +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', @@ -63,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',