From 9fd72f5c37727a1ff8e79d6bbe62afb10deac8cb Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 1 Nov 2019 06:18:42 +0000 Subject: [PATCH] Generated from 27d5fcbffb59163e5aeda0e779ecd92fff5ae415 add clear-output-folder in resource-manager readme.typescript.md to fix js sdk build failure --- .../azure/mgmt/labservices/__init__.py | 7 +- .../azure/mgmt/labservices/_configuration.py | 48 + ...labs_client.py => _managed_labs_client.py} | 54 +- .../azure/mgmt/labservices/models/__init__.py | 304 +-- ...enums.py => _managed_labs_client_enums.py} | 2 +- .../azure/mgmt/labservices/models/_models.py | 2320 +++++++++++++++++ .../mgmt/labservices/models/_models_py3.py | 2320 +++++++++++++++++ .../mgmt/labservices/models/_paged_models.py | 105 + .../labservices/models/add_users_payload.py | 35 - .../models/add_users_payload_py3.py | 35 - .../models/create_lab_properties.py | 55 - .../models/create_lab_properties_py3.py | 55 - .../mgmt/labservices/models/environment.py | 114 - .../labservices/models/environment_details.py | 82 - .../models/environment_details_py3.py | 82 - .../models/environment_fragment.py | 62 - .../models/environment_fragment_py3.py | 62 - .../models/environment_operations_payload.py | 35 - .../environment_operations_payload_py3.py | 35 - .../labservices/models/environment_paged.py | 27 - .../labservices/models/environment_py3.py | 114 - .../labservices/models/environment_setting.py | 107 - ...environment_setting_creation_parameters.py | 36 - ...ronment_setting_creation_parameters_py3.py | 36 - .../models/environment_setting_fragment.py | 79 - .../environment_setting_fragment_py3.py | 79 - .../models/environment_setting_paged.py | 27 - .../models/environment_setting_py3.py | 107 - .../labservices/models/environment_size.py | 61 - .../models/environment_size_fragment.py | 35 - .../models/environment_size_fragment_py3.py | 35 - .../models/environment_size_py3.py | 61 - .../mgmt/labservices/models/gallery_image.py | 109 - .../models/gallery_image_fragment.py | 71 - .../models/gallery_image_fragment_py3.py | 71 - .../labservices/models/gallery_image_paged.py | 27 - .../labservices/models/gallery_image_py3.py | 109 - .../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/get_environment_response.py | 35 - .../models/get_environment_response_py3.py | 35 - .../get_personal_preferences_response.py | 32 - .../get_personal_preferences_response_py3.py | 32 - .../get_regional_availability_response.py | 30 - .../get_regional_availability_response_py3.py | 30 - .../azure/mgmt/labservices/models/lab.py | 105 - .../mgmt/labservices/models/lab_account.py | 75 - .../models/lab_account_fragment.py | 61 - .../models/lab_account_fragment_py3.py | 61 - .../labservices/models/lab_account_paged.py | 27 - .../labservices/models/lab_account_py3.py | 75 - .../models/lab_creation_parameters.py | 28 - .../models/lab_creation_parameters_py3.py | 28 - .../mgmt/labservices/models/lab_details.py | 47 - .../labservices/models/lab_details_py3.py | 47 - .../mgmt/labservices/models/lab_fragment.py | 72 - .../labservices/models/lab_fragment_py3.py | 72 - .../mgmt/labservices/models/lab_paged.py | 27 - .../azure/mgmt/labservices/models/lab_py3.py | 105 - .../models/latest_operation_result.py | 60 - .../models/latest_operation_result_py3.py | 60 - .../models/list_environments_payload.py | 28 - .../models/list_environments_payload_py3.py | 28 - .../models/list_environments_response.py | 29 - .../models/list_environments_response_py3.py | 29 - .../labservices/models/list_labs_response.py | 28 - .../models/list_labs_response_py3.py | 28 - .../labservices/models/network_interface.py | 50 - .../models/network_interface_py3.py | 50 - .../models/operation_batch_status_payload.py | 34 - .../operation_batch_status_payload_py3.py | 34 - .../models/operation_batch_status_response.py | 37 - .../operation_batch_status_response_item.py | 41 - ...peration_batch_status_response_item_py3.py | 41 - .../operation_batch_status_response_py3.py | 37 - .../labservices/models/operation_error.py | 32 - .../labservices/models/operation_error_py3.py | 32 - .../labservices/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 - .../labservices/models/operation_result.py | 32 - .../models/operation_result_py3.py | 32 - .../models/operation_status_payload.py | 35 - .../models/operation_status_payload_py3.py | 35 - .../models/operation_status_response.py | 35 - .../models/operation_status_response_py3.py | 35 - ...personal_preferences_operations_payload.py | 39 - ...onal_preferences_operations_payload_py3.py | 39 - .../labservices/models/publish_payload.py | 29 - .../labservices/models/publish_payload_py3.py | 29 - .../mgmt/labservices/models/reference_vm.py | 53 - .../reference_vm_creation_parameters.py | 39 - .../reference_vm_creation_parameters_py3.py | 39 - .../models/reference_vm_fragment.py | 33 - .../models/reference_vm_fragment_py3.py | 33 - .../labservices/models/reference_vm_py3.py | 53 - .../models/regional_availability.py | 34 - .../models/regional_availability_py3.py | 34 - .../labservices/models/register_payload.py | 28 - .../models/register_payload_py3.py | 28 - .../models/reset_password_payload.py | 42 - .../models/reset_password_payload_py3.py | 42 - .../azure/mgmt/labservices/models/resource.py | 53 - .../mgmt/labservices/models/resource_py3.py | 53 - .../mgmt/labservices/models/resource_set.py | 32 - .../models/resource_set_fragment.py | 32 - .../models/resource_set_fragment_py3.py | 32 - .../labservices/models/resource_set_py3.py | 32 - .../resource_setting_creation_parameters.py | 55 - ...esource_setting_creation_parameters_py3.py | 55 - .../labservices/models/resource_settings.py | 63 - .../models/resource_settings_fragment.py | 38 - .../models/resource_settings_fragment_py3.py | 38 - .../models/resource_settings_py3.py | 63 - .../labservices/models/size_availability.py | 34 - .../models/size_availability_py3.py | 34 - .../models/size_configuration_properties.py | 30 - .../size_configuration_properties_fragment.py | 30 - ...e_configuration_properties_fragment_py3.py | 30 - .../size_configuration_properties_py3.py | 30 - .../mgmt/labservices/models/size_info.py | 43 - .../labservices/models/size_info_fragment.py | 43 - .../models/size_info_fragment_py3.py | 43 - .../mgmt/labservices/models/size_info_py3.py | 43 - .../azure/mgmt/labservices/models/user.py | 93 - .../mgmt/labservices/models/user_fragment.py | 57 - .../labservices/models/user_fragment_py3.py | 57 - .../mgmt/labservices/models/user_paged.py | 27 - .../azure/mgmt/labservices/models/user_py3.py | 93 - .../models/virtual_machine_details.py | 61 - .../models/virtual_machine_details_py3.py | 61 - .../labservices/models/vm_state_details.py | 54 - .../models/vm_state_details_py3.py | 54 - .../mgmt/labservices/operations/__init__.py | 18 +- ...py => _environment_settings_operations.py} | 18 +- ...rations.py => _environments_operations.py} | 19 +- ...tions.py => _gallery_images_operations.py} | 19 +- ...rations.py => _global_users_operations.py} | 8 +- ...rations.py => _lab_accounts_operations.py} | 34 +- ...labs_operations.py => _labs_operations.py} | 19 +- .../{operations.py => _operations.py} | 3 +- ..._operations.py => _provider_operations.py} | 16 +- ...ers_operations.py => _users_operations.py} | 19 +- 147 files changed, 5052 insertions(+), 6436 deletions(-) create mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_configuration.py rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/{managed_labs_client.py => _managed_labs_client.py} (67%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/{managed_labs_client_enums.py => _managed_labs_client_enums.py} (95%) create mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models.py create mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models_py3.py create mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_paged_models.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_paged.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details_py3.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details.py delete mode 100644 sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details_py3.py rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{environment_settings_operations.py => _environment_settings_operations.py} (99%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{environments_operations.py => _environments_operations.py} (99%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{gallery_images_operations.py => _gallery_images_operations.py} (98%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{global_users_operations.py => _global_users_operations.py} (99%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{lab_accounts_operations.py => _lab_accounts_operations.py} (97%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{labs_operations.py => _labs_operations.py} (98%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{operations.py => _operations.py} (96%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{provider_operations.py => _provider_operations.py} (90%) rename sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/{users_operations.py => _users_operations.py} (98%) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/__init__.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/__init__.py index cb64fb511499..a3cf1222a94e 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/__init__.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .managed_labs_client import ManagedLabsClient -from .version import VERSION +from ._configuration import ManagedLabsClientConfiguration +from ._managed_labs_client import ManagedLabsClient +__all__ = ['ManagedLabsClient', 'ManagedLabsClientConfiguration'] -__all__ = ['ManagedLabsClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_configuration.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_configuration.py new file mode 100644 index 000000000000..49018cad107c --- /dev/null +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_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 ManagedLabsClientConfiguration(AzureConfiguration): + """Configuration for ManagedLabsClient + 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(ManagedLabsClientConfiguration, 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-labservices/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/managed_labs_client.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_managed_labs_client.py similarity index 67% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/managed_labs_client.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_managed_labs_client.py index b02920e5e5be..64e90dcc5975 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/managed_labs_client.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/_managed_labs_client.py @@ -11,50 +11,18 @@ 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.global_users_operations import GlobalUsersOperations -from .operations.lab_accounts_operations import LabAccountsOperations -from .operations.operations import Operations -from .operations.gallery_images_operations import GalleryImagesOperations -from .operations.labs_operations import LabsOperations -from .operations.environment_settings_operations import EnvironmentSettingsOperations -from .operations.environments_operations import EnvironmentsOperations -from .operations.users_operations import UsersOperations -from . import models - - -class ManagedLabsClientConfiguration(AzureConfiguration): - """Configuration for ManagedLabsClient - 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(ManagedLabsClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-labservices/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ManagedLabsClientConfiguration +from .operations import ProviderOperations +from .operations import GlobalUsersOperations +from .operations import LabAccountsOperations +from .operations import Operations +from .operations import GalleryImagesOperations +from .operations import LabsOperations +from .operations import EnvironmentSettingsOperations +from .operations import EnvironmentsOperations +from .operations import UsersOperations +from . import models class ManagedLabsClient(SDKClient): diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/__init__.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/__init__.py index 7dd69743ea0e..ab9d66f94f1f 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/__init__.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/__init__.py @@ -10,137 +10,137 @@ # -------------------------------------------------------------------------- try: - from .add_users_payload_py3 import AddUsersPayload - from .reference_vm_creation_parameters_py3 import ReferenceVmCreationParameters - from .resource_setting_creation_parameters_py3 import ResourceSettingCreationParameters - from .environment_setting_creation_parameters_py3 import EnvironmentSettingCreationParameters - from .lab_creation_parameters_py3 import LabCreationParameters - from .create_lab_properties_py3 import CreateLabProperties - from .resource_set_py3 import ResourceSet - from .network_interface_py3 import NetworkInterface - from .latest_operation_result_py3 import LatestOperationResult - from .environment_py3 import Environment - from .virtual_machine_details_py3 import VirtualMachineDetails - from .environment_details_py3 import EnvironmentDetails - from .resource_set_fragment_py3 import ResourceSetFragment - from .environment_fragment_py3 import EnvironmentFragment - from .environment_operations_payload_py3 import EnvironmentOperationsPayload - from .vm_state_details_py3 import VmStateDetails - from .reference_vm_py3 import ReferenceVm - from .resource_settings_py3 import ResourceSettings - from .environment_setting_py3 import EnvironmentSetting - from .reference_vm_fragment_py3 import ReferenceVmFragment - from .resource_settings_fragment_py3 import ResourceSettingsFragment - from .environment_setting_fragment_py3 import EnvironmentSettingFragment - from .size_info_py3 import SizeInfo - from .environment_size_py3 import EnvironmentSize - from .size_info_fragment_py3 import SizeInfoFragment - from .environment_size_fragment_py3 import EnvironmentSizeFragment - from .gallery_image_reference_py3 import GalleryImageReference - from .gallery_image_py3 import GalleryImage - from .gallery_image_fragment_py3 import GalleryImageFragment - from .gallery_image_reference_fragment_py3 import GalleryImageReferenceFragment - from .get_environment_response_py3 import GetEnvironmentResponse - from .get_personal_preferences_response_py3 import GetPersonalPreferencesResponse - from .size_availability_py3 import SizeAvailability - from .regional_availability_py3 import RegionalAvailability - from .get_regional_availability_response_py3 import GetRegionalAvailabilityResponse - from .lab_py3 import Lab - from .size_configuration_properties_py3 import SizeConfigurationProperties - from .lab_account_py3 import LabAccount - from .lab_account_fragment_py3 import LabAccountFragment - from .lab_details_py3 import LabDetails - from .lab_fragment_py3 import LabFragment - from .list_environments_payload_py3 import ListEnvironmentsPayload - from .list_environments_response_py3 import ListEnvironmentsResponse - from .list_labs_response_py3 import ListLabsResponse - from .operation_batch_status_payload_py3 import OperationBatchStatusPayload - from .operation_batch_status_response_item_py3 import OperationBatchStatusResponseItem - from .operation_batch_status_response_py3 import OperationBatchStatusResponse - 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 .operation_status_payload_py3 import OperationStatusPayload - from .operation_status_response_py3 import OperationStatusResponse - from .personal_preferences_operations_payload_py3 import PersonalPreferencesOperationsPayload - from .publish_payload_py3 import PublishPayload - from .register_payload_py3 import RegisterPayload - from .reset_password_payload_py3 import ResetPasswordPayload - from .resource_py3 import Resource - from .size_configuration_properties_fragment_py3 import SizeConfigurationPropertiesFragment - from .user_py3 import User - from .user_fragment_py3 import UserFragment + from ._models_py3 import AddUsersPayload + from ._models_py3 import CreateLabProperties + from ._models_py3 import Environment + from ._models_py3 import EnvironmentDetails + from ._models_py3 import EnvironmentFragment + from ._models_py3 import EnvironmentOperationsPayload + from ._models_py3 import EnvironmentSetting + from ._models_py3 import EnvironmentSettingCreationParameters + from ._models_py3 import EnvironmentSettingFragment + from ._models_py3 import EnvironmentSize + from ._models_py3 import EnvironmentSizeFragment + from ._models_py3 import GalleryImage + from ._models_py3 import GalleryImageFragment + from ._models_py3 import GalleryImageReference + from ._models_py3 import GalleryImageReferenceFragment + from ._models_py3 import GetEnvironmentResponse + from ._models_py3 import GetPersonalPreferencesResponse + from ._models_py3 import GetRegionalAvailabilityResponse + from ._models_py3 import Lab + from ._models_py3 import LabAccount + from ._models_py3 import LabAccountFragment + from ._models_py3 import LabCreationParameters + from ._models_py3 import LabDetails + from ._models_py3 import LabFragment + from ._models_py3 import LatestOperationResult + from ._models_py3 import ListEnvironmentsPayload + from ._models_py3 import ListEnvironmentsResponse + from ._models_py3 import ListLabsResponse + from ._models_py3 import NetworkInterface + from ._models_py3 import OperationBatchStatusPayload + from ._models_py3 import OperationBatchStatusResponse + from ._models_py3 import OperationBatchStatusResponseItem + from ._models_py3 import OperationError + from ._models_py3 import OperationMetadata + from ._models_py3 import OperationMetadataDisplay + from ._models_py3 import OperationResult + from ._models_py3 import OperationStatusPayload + from ._models_py3 import OperationStatusResponse + from ._models_py3 import PersonalPreferencesOperationsPayload + from ._models_py3 import PublishPayload + from ._models_py3 import ReferenceVm + from ._models_py3 import ReferenceVmCreationParameters + from ._models_py3 import ReferenceVmFragment + from ._models_py3 import RegionalAvailability + from ._models_py3 import RegisterPayload + from ._models_py3 import ResetPasswordPayload + from ._models_py3 import Resource + from ._models_py3 import ResourceSet + from ._models_py3 import ResourceSetFragment + from ._models_py3 import ResourceSettingCreationParameters + from ._models_py3 import ResourceSettings + from ._models_py3 import ResourceSettingsFragment + from ._models_py3 import SizeAvailability + from ._models_py3 import SizeConfigurationProperties + from ._models_py3 import SizeConfigurationPropertiesFragment + from ._models_py3 import SizeInfo + from ._models_py3 import SizeInfoFragment + from ._models_py3 import User + from ._models_py3 import UserFragment + from ._models_py3 import VirtualMachineDetails + from ._models_py3 import VmStateDetails except (SyntaxError, ImportError): - from .add_users_payload import AddUsersPayload - from .reference_vm_creation_parameters import ReferenceVmCreationParameters - from .resource_setting_creation_parameters import ResourceSettingCreationParameters - from .environment_setting_creation_parameters import EnvironmentSettingCreationParameters - from .lab_creation_parameters import LabCreationParameters - from .create_lab_properties import CreateLabProperties - from .resource_set import ResourceSet - from .network_interface import NetworkInterface - from .latest_operation_result import LatestOperationResult - from .environment import Environment - from .virtual_machine_details import VirtualMachineDetails - from .environment_details import EnvironmentDetails - from .resource_set_fragment import ResourceSetFragment - from .environment_fragment import EnvironmentFragment - from .environment_operations_payload import EnvironmentOperationsPayload - from .vm_state_details import VmStateDetails - from .reference_vm import ReferenceVm - from .resource_settings import ResourceSettings - from .environment_setting import EnvironmentSetting - from .reference_vm_fragment import ReferenceVmFragment - from .resource_settings_fragment import ResourceSettingsFragment - from .environment_setting_fragment import EnvironmentSettingFragment - from .size_info import SizeInfo - from .environment_size import EnvironmentSize - from .size_info_fragment import SizeInfoFragment - from .environment_size_fragment import EnvironmentSizeFragment - from .gallery_image_reference import GalleryImageReference - from .gallery_image import GalleryImage - from .gallery_image_fragment import GalleryImageFragment - from .gallery_image_reference_fragment import GalleryImageReferenceFragment - from .get_environment_response import GetEnvironmentResponse - from .get_personal_preferences_response import GetPersonalPreferencesResponse - from .size_availability import SizeAvailability - from .regional_availability import RegionalAvailability - from .get_regional_availability_response import GetRegionalAvailabilityResponse - from .lab import Lab - from .size_configuration_properties import SizeConfigurationProperties - from .lab_account import LabAccount - from .lab_account_fragment import LabAccountFragment - from .lab_details import LabDetails - from .lab_fragment import LabFragment - from .list_environments_payload import ListEnvironmentsPayload - from .list_environments_response import ListEnvironmentsResponse - from .list_labs_response import ListLabsResponse - from .operation_batch_status_payload import OperationBatchStatusPayload - from .operation_batch_status_response_item import OperationBatchStatusResponseItem - from .operation_batch_status_response import OperationBatchStatusResponse - from .operation_error import OperationError - from .operation_metadata_display import OperationMetadataDisplay - from .operation_metadata import OperationMetadata - from .operation_result import OperationResult - from .operation_status_payload import OperationStatusPayload - from .operation_status_response import OperationStatusResponse - from .personal_preferences_operations_payload import PersonalPreferencesOperationsPayload - from .publish_payload import PublishPayload - from .register_payload import RegisterPayload - from .reset_password_payload import ResetPasswordPayload - from .resource import Resource - from .size_configuration_properties_fragment import SizeConfigurationPropertiesFragment - from .user import User - from .user_fragment import UserFragment -from .operation_metadata_paged import OperationMetadataPaged -from .lab_account_paged import LabAccountPaged -from .gallery_image_paged import GalleryImagePaged -from .lab_paged import LabPaged -from .environment_setting_paged import EnvironmentSettingPaged -from .environment_paged import EnvironmentPaged -from .user_paged import UserPaged -from .managed_labs_client_enums import ( + from ._models import AddUsersPayload + from ._models import CreateLabProperties + from ._models import Environment + from ._models import EnvironmentDetails + from ._models import EnvironmentFragment + from ._models import EnvironmentOperationsPayload + from ._models import EnvironmentSetting + from ._models import EnvironmentSettingCreationParameters + from ._models import EnvironmentSettingFragment + from ._models import EnvironmentSize + from ._models import EnvironmentSizeFragment + from ._models import GalleryImage + from ._models import GalleryImageFragment + from ._models import GalleryImageReference + from ._models import GalleryImageReferenceFragment + from ._models import GetEnvironmentResponse + from ._models import GetPersonalPreferencesResponse + from ._models import GetRegionalAvailabilityResponse + from ._models import Lab + from ._models import LabAccount + from ._models import LabAccountFragment + from ._models import LabCreationParameters + from ._models import LabDetails + from ._models import LabFragment + from ._models import LatestOperationResult + from ._models import ListEnvironmentsPayload + from ._models import ListEnvironmentsResponse + from ._models import ListLabsResponse + from ._models import NetworkInterface + from ._models import OperationBatchStatusPayload + from ._models import OperationBatchStatusResponse + from ._models import OperationBatchStatusResponseItem + from ._models import OperationError + from ._models import OperationMetadata + from ._models import OperationMetadataDisplay + from ._models import OperationResult + from ._models import OperationStatusPayload + from ._models import OperationStatusResponse + from ._models import PersonalPreferencesOperationsPayload + from ._models import PublishPayload + from ._models import ReferenceVm + from ._models import ReferenceVmCreationParameters + from ._models import ReferenceVmFragment + from ._models import RegionalAvailability + from ._models import RegisterPayload + from ._models import ResetPasswordPayload + from ._models import Resource + from ._models import ResourceSet + from ._models import ResourceSetFragment + from ._models import ResourceSettingCreationParameters + from ._models import ResourceSettings + from ._models import ResourceSettingsFragment + from ._models import SizeAvailability + from ._models import SizeConfigurationProperties + from ._models import SizeConfigurationPropertiesFragment + from ._models import SizeInfo + from ._models import SizeInfoFragment + from ._models import User + from ._models import UserFragment + from ._models import VirtualMachineDetails + from ._models import VmStateDetails +from ._paged_models import EnvironmentPaged +from ._paged_models import EnvironmentSettingPaged +from ._paged_models import GalleryImagePaged +from ._paged_models import LabAccountPaged +from ._paged_models import LabPaged +from ._paged_models import OperationMetadataPaged +from ._paged_models import UserPaged +from ._managed_labs_client_enums import ( ManagedLabVmSize, PublishingState, ConfigurationState, @@ -150,66 +150,66 @@ __all__ = [ 'AddUsersPayload', - 'ReferenceVmCreationParameters', - 'ResourceSettingCreationParameters', - 'EnvironmentSettingCreationParameters', - 'LabCreationParameters', 'CreateLabProperties', - 'ResourceSet', - 'NetworkInterface', - 'LatestOperationResult', 'Environment', - 'VirtualMachineDetails', 'EnvironmentDetails', - 'ResourceSetFragment', 'EnvironmentFragment', 'EnvironmentOperationsPayload', - 'VmStateDetails', - 'ReferenceVm', - 'ResourceSettings', 'EnvironmentSetting', - 'ReferenceVmFragment', - 'ResourceSettingsFragment', + 'EnvironmentSettingCreationParameters', 'EnvironmentSettingFragment', - 'SizeInfo', 'EnvironmentSize', - 'SizeInfoFragment', 'EnvironmentSizeFragment', - 'GalleryImageReference', 'GalleryImage', 'GalleryImageFragment', + 'GalleryImageReference', 'GalleryImageReferenceFragment', 'GetEnvironmentResponse', 'GetPersonalPreferencesResponse', - 'SizeAvailability', - 'RegionalAvailability', 'GetRegionalAvailabilityResponse', 'Lab', - 'SizeConfigurationProperties', 'LabAccount', 'LabAccountFragment', + 'LabCreationParameters', 'LabDetails', 'LabFragment', + 'LatestOperationResult', 'ListEnvironmentsPayload', 'ListEnvironmentsResponse', 'ListLabsResponse', + 'NetworkInterface', 'OperationBatchStatusPayload', - 'OperationBatchStatusResponseItem', 'OperationBatchStatusResponse', + 'OperationBatchStatusResponseItem', 'OperationError', - 'OperationMetadataDisplay', 'OperationMetadata', + 'OperationMetadataDisplay', 'OperationResult', 'OperationStatusPayload', 'OperationStatusResponse', 'PersonalPreferencesOperationsPayload', 'PublishPayload', + 'ReferenceVm', + 'ReferenceVmCreationParameters', + 'ReferenceVmFragment', + 'RegionalAvailability', 'RegisterPayload', 'ResetPasswordPayload', 'Resource', + 'ResourceSet', + 'ResourceSetFragment', + 'ResourceSettingCreationParameters', + 'ResourceSettings', + 'ResourceSettingsFragment', + 'SizeAvailability', + 'SizeConfigurationProperties', 'SizeConfigurationPropertiesFragment', + 'SizeInfo', + 'SizeInfoFragment', 'User', 'UserFragment', + 'VirtualMachineDetails', + 'VmStateDetails', 'OperationMetadataPaged', 'LabAccountPaged', 'GalleryImagePaged', diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_managed_labs_client_enums.py similarity index 95% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_managed_labs_client_enums.py index 770f1caf6ccd..f0c7fd76a295 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_managed_labs_client_enums.py @@ -30,7 +30,7 @@ class PublishingState(str, Enum): class ConfigurationState(str, Enum): - not_applicable = "NotApplicable" #: User either hasn't started configuring their template or they haven't started the configuration process. + not_applicable = "NotApplicable" #: User either hasn't started configuring their template or they haven't started the configuration process. completed = "Completed" #: User is finished modifying the template. diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models.py new file mode 100644 index 000000000000..bbb5c176254e --- /dev/null +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models.py @@ -0,0 +1,2320 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AddUsersPayload(Model): + """Payload for Add Users operation on a Lab. + + All required parameters must be populated in order to send to Azure. + + :param email_addresses: Required. List of user emails addresses to add to + the lab. + :type email_addresses: list[str] + """ + + _validation = { + 'email_addresses': {'required': True}, + } + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AddUsersPayload, self).__init__(**kwargs) + self.email_addresses = kwargs.get('email_addresses', None) + + +class CloudError(Model): + """Error from a REST request. + + :param error: + :type error: ~azure.mgmt.labservices.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: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: Inner errors. + :type details: list[~azure.mgmt.labservices.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 CreateLabProperties(Model): + """Properties for creating a managed lab and a default environment setting. + + All required parameters must be populated in order to send to Azure. + + :param environment_setting_creation_parameters: Settings related to + creating an environment setting + :type environment_setting_creation_parameters: + ~azure.mgmt.labservices.models.EnvironmentSettingCreationParameters + :param lab_creation_parameters: Required. Settings related to creating a + lab + :type lab_creation_parameters: + ~azure.mgmt.labservices.models.LabCreationParameters + :param name: Required. The name of the resource + :type name: str + :param location: The location of the resource + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _validation = { + 'lab_creation_parameters': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'environment_setting_creation_parameters': {'key': 'environmentSettingCreationParameters', 'type': 'EnvironmentSettingCreationParameters'}, + 'lab_creation_parameters': {'key': 'labCreationParameters', 'type': 'LabCreationParameters'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(CreateLabProperties, self).__init__(**kwargs) + self.environment_setting_creation_parameters = kwargs.get('environment_setting_creation_parameters', None) + self.lab_creation_parameters = kwargs.get('lab_creation_parameters', None) + self.name = kwargs.get('name', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +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 Environment(Resource): + """Represents an environment instance. + + 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 resource_sets: The set of a VM and the setting id it was created + for + :type resource_sets: ~azure.mgmt.labservices.models.ResourceSet + :ivar claimed_by_user_object_id: The AAD object Id of the user who has + claimed the environment + :vartype claimed_by_user_object_id: str + :ivar claimed_by_user_principal_id: The user principal Id of the user who + has claimed the environment + :vartype claimed_by_user_principal_id: str + :ivar claimed_by_user_name: The name or email address of the user who has + claimed the environment + :vartype claimed_by_user_name: str + :ivar is_claimed: Is the environment claimed or not + :vartype is_claimed: bool + :ivar last_known_power_state: Last known power state of the environment + :vartype last_known_power_state: str + :ivar network_interface: Network details of the environment + :vartype network_interface: + ~azure.mgmt.labservices.models.NetworkInterface + :ivar total_usage: How long the environment has been used by a lab user + :vartype total_usage: timedelta + :ivar password_last_reset: When the password was last reset on the + environment. + :vartype password_last_reset: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'claimed_by_user_object_id': {'readonly': True}, + 'claimed_by_user_principal_id': {'readonly': True}, + 'claimed_by_user_name': {'readonly': True}, + 'is_claimed': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + 'network_interface': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'password_last_reset': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSet'}, + 'claimed_by_user_object_id': {'key': 'properties.claimedByUserObjectId', 'type': 'str'}, + 'claimed_by_user_principal_id': {'key': 'properties.claimedByUserPrincipalId', 'type': 'str'}, + 'claimed_by_user_name': {'key': 'properties.claimedByUserName', 'type': 'str'}, + 'is_claimed': {'key': 'properties.isClaimed', 'type': 'bool'}, + 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterface'}, + 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, + 'password_last_reset': {'key': 'properties.passwordLastReset', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(Environment, self).__init__(**kwargs) + self.resource_sets = kwargs.get('resource_sets', None) + self.claimed_by_user_object_id = None + self.claimed_by_user_principal_id = None + self.claimed_by_user_name = None + self.is_claimed = None + self.last_known_power_state = None + self.network_interface = None + self.total_usage = None + self.password_last_reset = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class EnvironmentDetails(Model): + """This represents the details about a User's environment and its state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the Environment + :vartype name: str + :ivar description: Description of the Environment + :vartype description: str + :ivar id: Resource Id of the environment + :vartype id: str + :ivar provisioning_state: The provisioning state of the environment. This + also includes LabIsFull and NotYetProvisioned status. + :vartype provisioning_state: str + :ivar virtual_machine_details: Details of backing DTL virtual machine with + compute and network details. + :vartype virtual_machine_details: + ~azure.mgmt.labservices.models.VirtualMachineDetails + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + :ivar environment_state: Publishing state of the environment setting + Possible values are Creating, Created, Failed + :vartype environment_state: str + :ivar total_usage: How long the environment has been used by a lab user + :vartype total_usage: timedelta + :ivar password_last_reset: When the password was last reset on the + environment. + :vartype password_last_reset: datetime + """ + + _validation = { + 'name': {'readonly': True}, + 'description': {'readonly': True}, + 'id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_machine_details': {'readonly': True}, + 'latest_operation_result': {'readonly': True}, + 'environment_state': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'password_last_reset': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'virtual_machine_details': {'key': 'virtualMachineDetails', 'type': 'VirtualMachineDetails'}, + 'latest_operation_result': {'key': 'latestOperationResult', 'type': 'LatestOperationResult'}, + 'environment_state': {'key': 'environmentState', 'type': 'str'}, + 'total_usage': {'key': 'totalUsage', 'type': 'duration'}, + 'password_last_reset': {'key': 'passwordLastReset', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(EnvironmentDetails, self).__init__(**kwargs) + self.name = None + self.description = None + self.id = None + self.provisioning_state = None + self.virtual_machine_details = None + self.latest_operation_result = None + self.environment_state = None + self.total_usage = None + self.password_last_reset = None + + +class EnvironmentFragment(Resource): + """Represents an environment instance. + + 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 resource_sets: The set of a VM and the setting id it was created + for + :type resource_sets: ~azure.mgmt.labservices.models.ResourceSetFragment + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSetFragment'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvironmentFragment, self).__init__(**kwargs) + self.resource_sets = kwargs.get('resource_sets', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + + +class EnvironmentOperationsPayload(Model): + """Represents payload for any Environment operations like get, start, stop, + connect. + + All required parameters must be populated in order to send to Azure. + + :param environment_id: Required. The resourceId of the environment + :type environment_id: str + """ + + _validation = { + 'environment_id': {'required': True}, + } + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvironmentOperationsPayload, self).__init__(**kwargs) + self.environment_id = kwargs.get('environment_id', None) + + +class EnvironmentSetting(Resource): + """Represents settings of an environment, from which environment instances + would be created. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 publishing_state: Describes the readiness of this environment + setting. Possible values include: 'Draft', 'Publishing', 'Published', + 'PublishFailed', 'Scaling' + :vartype publishing_state: str or + ~azure.mgmt.labservices.models.PublishingState + :param configuration_state: Describes the user's progress in configuring + their environment setting. Possible values include: 'NotApplicable', + 'Completed' + :type configuration_state: str or + ~azure.mgmt.labservices.models.ConfigurationState + :param description: Describes the environment and its resource settings + :type description: str + :param title: Brief title describing the environment and its resource + settings + :type title: str + :param resource_settings: Required. The resource specific settings + :type resource_settings: ~azure.mgmt.labservices.models.ResourceSettings + :ivar last_changed: Time when the template VM was last changed. + :vartype last_changed: datetime + :ivar last_published: Time when the template VM was last sent for + publishing. + :vartype last_published: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'publishing_state': {'readonly': True}, + 'resource_settings': {'required': True}, + 'last_changed': {'readonly': True}, + 'last_published': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'publishing_state': {'key': 'properties.publishingState', 'type': 'str'}, + 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettings'}, + 'last_changed': {'key': 'properties.lastChanged', 'type': 'iso-8601'}, + 'last_published': {'key': 'properties.lastPublished', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(EnvironmentSetting, self).__init__(**kwargs) + self.publishing_state = None + self.configuration_state = kwargs.get('configuration_state', None) + self.description = kwargs.get('description', None) + self.title = kwargs.get('title', None) + self.resource_settings = kwargs.get('resource_settings', None) + self.last_changed = None + self.last_published = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class EnvironmentSettingCreationParameters(Model): + """Settings related to creating an environment setting. + + All required parameters must be populated in order to send to Azure. + + :param resource_setting_creation_parameters: Required. The resource + specific settings + :type resource_setting_creation_parameters: + ~azure.mgmt.labservices.models.ResourceSettingCreationParameters + """ + + _validation = { + 'resource_setting_creation_parameters': {'required': True}, + } + + _attribute_map = { + 'resource_setting_creation_parameters': {'key': 'resourceSettingCreationParameters', 'type': 'ResourceSettingCreationParameters'}, + } + + def __init__(self, **kwargs): + super(EnvironmentSettingCreationParameters, self).__init__(**kwargs) + self.resource_setting_creation_parameters = kwargs.get('resource_setting_creation_parameters', None) + + +class EnvironmentSettingFragment(Resource): + """Represents settings of an environment, from which environment instances + would be created. + + 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 configuration_state: Describes the user's progress in configuring + their environment setting. Possible values include: 'NotApplicable', + 'Completed' + :type configuration_state: str or + ~azure.mgmt.labservices.models.ConfigurationState + :param description: Describes the environment and its resource settings + :type description: str + :param title: Brief title describing the environment and its resource + settings + :type title: str + :param resource_settings: The resource specific settings + :type resource_settings: + ~azure.mgmt.labservices.models.ResourceSettingsFragment + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettingsFragment'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvironmentSettingFragment, self).__init__(**kwargs) + self.configuration_state = kwargs.get('configuration_state', None) + self.description = kwargs.get('description', None) + self.title = kwargs.get('title', None) + self.resource_settings = kwargs.get('resource_settings', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + + +class EnvironmentSize(Model): + """Represents a size category supported by this Lab Account (small, medium or + large). + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: The size category. Possible values include: 'Basic', + 'Standard', 'Performance' + :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param vm_sizes: Represents a set of compute sizes that can serve this + given size type + :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfo] + :ivar max_price: The pay-as-you-go dollar price per hour this size will + cost. It does not include discounts and may not reflect the actual price + the size will cost. This is the maximum price of all prices within this + tier. + :vartype max_price: decimal.Decimal + :ivar min_number_of_cores: The number of cores a VM of this size has. This + is the minimum number of cores within this tier. + :vartype min_number_of_cores: int + :ivar min_memory: The amount of memory available (in GB). This is the + minimum amount of memory within this tier. + :vartype min_memory: float + """ + + _validation = { + 'max_price': {'readonly': True}, + 'min_number_of_cores': {'readonly': True}, + 'min_memory': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfo]'}, + 'max_price': {'key': 'maxPrice', 'type': 'decimal'}, + 'min_number_of_cores': {'key': 'minNumberOfCores', 'type': 'int'}, + 'min_memory': {'key': 'minMemory', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(EnvironmentSize, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.vm_sizes = kwargs.get('vm_sizes', None) + self.max_price = None + self.min_number_of_cores = None + self.min_memory = None + + +class EnvironmentSizeFragment(Model): + """Represents a size category supported by this Lab Account (small, medium or + large). + + :param name: The size category. Possible values include: 'Basic', + 'Standard', 'Performance' + :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param vm_sizes: Represents a set of compute sizes that can serve this + given size type + :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfoFragment] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfoFragment]'}, + } + + def __init__(self, **kwargs): + super(EnvironmentSizeFragment, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.vm_sizes = kwargs.get('vm_sizes', None) + + +class GalleryImage(Resource): + """Represents an image from the Azure Marketplace. + + 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 author: The author of the gallery image. + :vartype author: str + :ivar created_date: The creation date of the gallery image. + :vartype created_date: datetime + :ivar description: The description of the gallery image. + :vartype description: str + :ivar image_reference: The image reference of the gallery image. + :vartype image_reference: + ~azure.mgmt.labservices.models.GalleryImageReference + :ivar icon: The icon of the gallery image. + :vartype icon: str + :param is_enabled: Indicates whether this gallery image is enabled. + :type is_enabled: bool + :param is_override: Indicates whether this gallery has been overridden for + this lab account + :type is_override: bool + :ivar plan_id: The third party plan that applies to this image + :vartype plan_id: str + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'author': {'readonly': True}, + 'created_date': {'readonly': True}, + 'description': {'readonly': True}, + 'image_reference': {'readonly': True}, + 'icon': {'readonly': True}, + 'plan_id': {'readonly': True}, + 'latest_operation_result': {'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'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, + 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(GalleryImage, self).__init__(**kwargs) + self.author = None + self.created_date = None + self.description = None + self.image_reference = None + self.icon = None + self.is_enabled = kwargs.get('is_enabled', None) + self.is_override = kwargs.get('is_override', None) + self.plan_id = None + self.is_plan_authorized = kwargs.get('is_plan_authorized', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class GalleryImageFragment(Resource): + """Represents an image from the Azure Marketplace. + + 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 is_enabled: Indicates whether this gallery image is enabled. + :type is_enabled: bool + :param is_override: Indicates whether this gallery has been overridden for + this lab account + :type is_override: bool + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, + 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, + '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(GalleryImageFragment, self).__init__(**kwargs) + self.is_enabled = kwargs.get('is_enabled', None) + self.is_override = kwargs.get('is_override', None) + self.is_plan_authorized = kwargs.get('is_plan_authorized', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', 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 GetEnvironmentResponse(Model): + """Represents the environments details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar environment: Details of the environment + :vartype environment: ~azure.mgmt.labservices.models.EnvironmentDetails + """ + + _validation = { + 'environment': {'readonly': True}, + } + + _attribute_map = { + 'environment': {'key': 'environment', 'type': 'EnvironmentDetails'}, + } + + def __init__(self, **kwargs): + super(GetEnvironmentResponse, self).__init__(**kwargs) + self.environment = None + + +class GetPersonalPreferencesResponse(Model): + """Represents the PersonalPreferences for the user. + + :param id: Id to be used by the cache orchestrator + :type id: str + :param favorite_lab_resource_ids: Array of favorite lab resource ids + :type favorite_lab_resource_ids: list[str] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'favorite_lab_resource_ids': {'key': 'favoriteLabResourceIds', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(GetPersonalPreferencesResponse, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.favorite_lab_resource_ids = kwargs.get('favorite_lab_resource_ids', None) + + +class GetRegionalAvailabilityResponse(Model): + """The response model from the GetRegionalAvailability action. + + :param regional_availability: Availability information for different size + categories per region + :type regional_availability: + list[~azure.mgmt.labservices.models.RegionalAvailability] + """ + + _attribute_map = { + 'regional_availability': {'key': 'regionalAvailability', 'type': '[RegionalAvailability]'}, + } + + def __init__(self, **kwargs): + super(GetRegionalAvailabilityResponse, self).__init__(**kwargs) + self.regional_availability = kwargs.get('regional_availability', None) + + +class Lab(Resource): + """Represents 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] + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + :ivar user_quota: Maximum value MaxUsersInLab can be set to, as specified + by the service + :vartype user_quota: int + :ivar invitation_code: Invitation code that users can use to join a lab. + :vartype invitation_code: str + :ivar created_by_object_id: Object id of the user that created the lab. + :vartype created_by_object_id: str + :param usage_quota: Maximum duration a user can use an environment for in + the lab. + :type usage_quota: timedelta + :param user_access_mode: Lab user access mode (open to all vs. restricted + to those listed on the lab). Possible values include: 'Restricted', 'Open' + :type user_access_mode: str or + ~azure.mgmt.labservices.models.LabUserAccessMode + :ivar created_by_user_principal_name: Lab creator name + :vartype created_by_user_principal_name: str + :ivar created_date: Creation date for the lab + :vartype created_date: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'user_quota': {'readonly': True}, + 'invitation_code': {'readonly': True}, + 'created_by_object_id': {'readonly': True}, + 'created_by_user_principal_name': {'readonly': True}, + 'created_date': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, + 'user_quota': {'key': 'properties.userQuota', 'type': 'int'}, + 'invitation_code': {'key': 'properties.invitationCode', 'type': 'str'}, + 'created_by_object_id': {'key': 'properties.createdByObjectId', 'type': 'str'}, + 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, + 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, + 'created_by_user_principal_name': {'key': 'properties.createdByUserPrincipalName', 'type': 'str'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(Lab, self).__init__(**kwargs) + self.max_users_in_lab = kwargs.get('max_users_in_lab', None) + self.user_quota = None + self.invitation_code = None + self.created_by_object_id = None + self.usage_quota = kwargs.get('usage_quota', None) + self.user_access_mode = kwargs.get('user_access_mode', None) + self.created_by_user_principal_name = None + self.created_date = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class LabAccount(Resource): + """Represents a lab account. + + 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 size_configuration: Represents the size configuration under the lab + account + :vartype size_configuration: + ~azure.mgmt.labservices.models.SizeConfigurationProperties + :param enabled_region_selection: Represents if region selection is enabled + :type enabled_region_selection: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'size_configuration': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'size_configuration': {'key': 'properties.sizeConfiguration', 'type': 'SizeConfigurationProperties'}, + 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(LabAccount, self).__init__(**kwargs) + self.size_configuration = None + self.enabled_region_selection = kwargs.get('enabled_region_selection', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class LabAccountFragment(Resource): + """Represents a lab account. + + 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 enabled_region_selection: Represents if region selection is enabled + :type enabled_region_selection: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabAccountFragment, self).__init__(**kwargs) + self.enabled_region_selection = kwargs.get('enabled_region_selection', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + + +class LabCreationParameters(Model): + """Settings related to creating a lab. + + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + """ + + _attribute_map = { + 'max_users_in_lab': {'key': 'maxUsersInLab', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(LabCreationParameters, self).__init__(**kwargs) + self.max_users_in_lab = kwargs.get('max_users_in_lab', None) + + +class LabDetails(Model): + """This represents the details about a lab that the User is in, and its state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: Name of the lab + :type name: str + :param provisioning_state: The provisioning state of the lab. + :type provisioning_state: str + :param id: The Id of the lab. + :type id: str + :ivar usage_quota: The maximum duration a user can use a VM in this lab. + :vartype usage_quota: timedelta + """ + + _validation = { + 'usage_quota': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'usage_quota': {'key': 'usageQuota', 'type': 'duration'}, + } + + def __init__(self, **kwargs): + super(LabDetails, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.id = kwargs.get('id', None) + self.usage_quota = None + + +class LabFragment(Resource): + """Represents 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] + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + :param usage_quota: Maximum duration a user can use an environment for in + the lab. + :type usage_quota: timedelta + :param user_access_mode: Lab user access mode (open to all vs. restricted + to those listed on the lab). Possible values include: 'Restricted', 'Open' + :type user_access_mode: str or + ~azure.mgmt.labservices.models.LabUserAccessMode + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, + 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, + 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LabFragment, self).__init__(**kwargs) + self.max_users_in_lab = kwargs.get('max_users_in_lab', None) + self.usage_quota = kwargs.get('usage_quota', None) + self.user_access_mode = kwargs.get('user_access_mode', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + + +class LatestOperationResult(Model): + """Details of the status of an operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The current status of the operation. + :vartype status: str + :ivar error_code: Error code on failure. + :vartype error_code: str + :ivar error_message: The error message. + :vartype error_message: str + :ivar request_uri: Request URI of the operation. + :vartype request_uri: str + :ivar http_method: The HttpMethod - PUT/POST/DELETE for the operation. + :vartype http_method: str + :ivar operation_url: The URL to use to check long-running operation status + :vartype operation_url: str + """ + + _validation = { + 'status': {'readonly': True}, + 'error_code': {'readonly': True}, + 'error_message': {'readonly': True}, + 'request_uri': {'readonly': True}, + 'http_method': {'readonly': True}, + 'operation_url': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'request_uri': {'key': 'requestUri', 'type': 'str'}, + 'http_method': {'key': 'httpMethod', 'type': 'str'}, + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LatestOperationResult, self).__init__(**kwargs) + self.status = None + self.error_code = None + self.error_message = None + self.request_uri = None + self.http_method = None + self.operation_url = None + + +class ListEnvironmentsPayload(Model): + """Represents the payload to list environments owned by a user. + + :param lab_id: The resource Id of the lab + :type lab_id: str + """ + + _attribute_map = { + 'lab_id': {'key': 'labId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ListEnvironmentsPayload, self).__init__(**kwargs) + self.lab_id = kwargs.get('lab_id', None) + + +class ListEnvironmentsResponse(Model): + """Represents the list of environments owned by a user. + + :param environments: List of all the environments + :type environments: + list[~azure.mgmt.labservices.models.EnvironmentDetails] + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[EnvironmentDetails]'}, + } + + def __init__(self, **kwargs): + super(ListEnvironmentsResponse, self).__init__(**kwargs) + self.environments = kwargs.get('environments', None) + + +class ListLabsResponse(Model): + """Lists the labs owned by a user. + + :param labs: List of all the labs + :type labs: list[~azure.mgmt.labservices.models.LabDetails] + """ + + _attribute_map = { + 'labs': {'key': 'labs', 'type': '[LabDetails]'}, + } + + def __init__(self, **kwargs): + super(ListLabsResponse, self).__init__(**kwargs) + self.labs = kwargs.get('labs', None) + + +class NetworkInterface(Model): + """Network details of the environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar private_ip_address: PrivateIp address of the Compute VM + :vartype private_ip_address: str + :ivar ssh_authority: Connection information for Linux + :vartype ssh_authority: str + :ivar rdp_authority: Connection information for Windows + :vartype rdp_authority: str + :ivar username: Username of the VM + :vartype username: str + """ + + _validation = { + 'private_ip_address': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'rdp_authority': {'readonly': True}, + 'username': {'readonly': True}, + } + + _attribute_map = { + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkInterface, self).__init__(**kwargs) + self.private_ip_address = None + self.ssh_authority = None + self.rdp_authority = None + self.username = None + + +class OperationBatchStatusPayload(Model): + """Payload to get the status of an operation. + + All required parameters must be populated in order to send to Azure. + + :param urls: Required. The operation url of long running operation + :type urls: list[str] + """ + + _validation = { + 'urls': {'required': True}, + } + + _attribute_map = { + 'urls': {'key': 'urls', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(OperationBatchStatusPayload, self).__init__(**kwargs) + self.urls = kwargs.get('urls', None) + + +class OperationBatchStatusResponse(Model): + """Status Details of the long running operation for an environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar items: Gets a collection of items that contain the operation url and + status. + :vartype items: + list[~azure.mgmt.labservices.models.OperationBatchStatusResponseItem] + """ + + _validation = { + 'items': {'readonly': True}, + } + + _attribute_map = { + 'items': {'key': 'items', 'type': '[OperationBatchStatusResponseItem]'}, + } + + def __init__(self, **kwargs): + super(OperationBatchStatusResponse, self).__init__(**kwargs) + self.items = None + + +class OperationBatchStatusResponseItem(Model): + """Represents the status of an operation that used the batch API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar operation_url: status of the long running operation for an + environment + :vartype operation_url: str + :ivar status: status of the long running operation for an environment + :vartype status: str + """ + + _validation = { + 'operation_url': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationBatchStatusResponseItem, self).__init__(**kwargs) + self.operation_url = None + self.status = 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 ManagedLab ResourceProvider. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that describes the operations + :type display: ~azure.mgmt.labservices.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 error: Error details for the operation in case of a failure. + :type error: ~azure.mgmt.labservices.models.OperationError + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'OperationError'}, + } + + def __init__(self, **kwargs): + super(OperationResult, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error = kwargs.get('error', None) + + +class OperationStatusPayload(Model): + """Payload to get the status of an operation. + + All required parameters must be populated in order to send to Azure. + + :param operation_url: Required. The operation url of long running + operation + :type operation_url: str + """ + + _validation = { + 'operation_url': {'required': True}, + } + + _attribute_map = { + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationStatusPayload, self).__init__(**kwargs) + self.operation_url = kwargs.get('operation_url', None) + + +class OperationStatusResponse(Model): + """Status Details of the long running operation for an environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: status of the long running operation for an environment + :vartype status: str + """ + + _validation = { + 'status': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationStatusResponse, self).__init__(**kwargs) + self.status = None + + +class PersonalPreferencesOperationsPayload(Model): + """Represents payload for any Environment operations like get, start, stop, + connect. + + :param lab_account_resource_id: Resource Id of the lab account + :type lab_account_resource_id: str + :param add_remove: Enum indicating if user is adding or removing a + favorite lab. Possible values include: 'Add', 'Remove' + :type add_remove: str or ~azure.mgmt.labservices.models.AddRemove + :param lab_resource_id: Resource Id of the lab to add/remove from the + favorites list + :type lab_resource_id: str + """ + + _attribute_map = { + 'lab_account_resource_id': {'key': 'labAccountResourceId', 'type': 'str'}, + 'add_remove': {'key': 'addRemove', 'type': 'str'}, + 'lab_resource_id': {'key': 'labResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PersonalPreferencesOperationsPayload, self).__init__(**kwargs) + self.lab_account_resource_id = kwargs.get('lab_account_resource_id', None) + self.add_remove = kwargs.get('add_remove', None) + self.lab_resource_id = kwargs.get('lab_resource_id', None) + + +class PublishPayload(Model): + """Payload for Publish operation on EnvironmentSetting. + + :param use_existing_image: Whether to use existing VM custom image when + publishing. + :type use_existing_image: bool + """ + + _attribute_map = { + 'use_existing_image': {'key': 'useExistingImage', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(PublishPayload, self).__init__(**kwargs) + self.use_existing_image = kwargs.get('use_existing_image', None) + + +class ReferenceVm(Model): + """Details of a Reference Vm. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The username of the virtual machine + :type user_name: str + :param password: The password of the virtual machine. This will be set to + null in GET resource API + :type password: str + :ivar vm_state_details: The state details for the reference virtual + machine. + :vartype vm_state_details: ~azure.mgmt.labservices.models.VmStateDetails + :ivar vm_resource_id: VM resource Id for the environment + :vartype vm_resource_id: str + """ + + _validation = { + 'user_name': {'required': True}, + 'vm_state_details': {'readonly': True}, + 'vm_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'vm_state_details': {'key': 'vmStateDetails', 'type': 'VmStateDetails'}, + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReferenceVm, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + self.vm_state_details = None + self.vm_resource_id = None + + +class ReferenceVmCreationParameters(Model): + """Creation parameters for Reference Vm. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The username of the virtual machine + :type user_name: str + :param password: Required. The password of the virtual machine. + :type password: str + """ + + _validation = { + 'user_name': {'required': True}, + 'password': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReferenceVmCreationParameters, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + + +class ReferenceVmFragment(Model): + """Details of a Reference Vm. + + :param user_name: The username of the virtual machine + :type user_name: str + :param password: The password of the virtual machine. This will be set to + null in GET resource API + :type password: str + """ + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReferenceVmFragment, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + + +class RegionalAvailability(Model): + """The availability information of sizes across regions. + + :param region: Corresponding region + :type region: str + :param size_availabilities: List of all the size information for the + region + :type size_availabilities: + list[~azure.mgmt.labservices.models.SizeAvailability] + """ + + _attribute_map = { + 'region': {'key': 'region', 'type': 'str'}, + 'size_availabilities': {'key': 'sizeAvailabilities', 'type': '[SizeAvailability]'}, + } + + def __init__(self, **kwargs): + super(RegionalAvailability, self).__init__(**kwargs) + self.region = kwargs.get('region', None) + self.size_availabilities = kwargs.get('size_availabilities', None) + + +class RegisterPayload(Model): + """Represents payload for Register action. + + :param registration_code: The registration code of the lab. + :type registration_code: str + """ + + _attribute_map = { + 'registration_code': {'key': 'registrationCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RegisterPayload, self).__init__(**kwargs) + self.registration_code = kwargs.get('registration_code', None) + + +class ResetPasswordPayload(Model): + """Represents the payload for resetting passwords. + + All required parameters must be populated in order to send to Azure. + + :param environment_id: Required. The resourceId of the environment + :type environment_id: str + :param username: The username for which the password will be reset. + :type username: str + :param password: The password to assign to the user specified in + :type password: str + """ + + _validation = { + 'environment_id': {'required': True}, + } + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResetPasswordPayload, self).__init__(**kwargs) + self.environment_id = kwargs.get('environment_id', None) + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) + + +class ResourceSet(Model): + """Represents a VM and the setting Id it was created for. + + :param vm_resource_id: VM resource Id for the environment + :type vm_resource_id: str + :param resource_setting_id: resourceSettingId for the environment + :type resource_setting_id: str + """ + + _attribute_map = { + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSet, self).__init__(**kwargs) + self.vm_resource_id = kwargs.get('vm_resource_id', None) + self.resource_setting_id = kwargs.get('resource_setting_id', None) + + +class ResourceSetFragment(Model): + """Represents a VM and the setting Id it was created for. + + :param vm_resource_id: VM resource Id for the environment + :type vm_resource_id: str + :param resource_setting_id: resourceSettingId for the environment + :type resource_setting_id: str + """ + + _attribute_map = { + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSetFragment, self).__init__(**kwargs) + self.vm_resource_id = kwargs.get('vm_resource_id', None) + self.resource_setting_id = kwargs.get('resource_setting_id', None) + + +class ResourceSettingCreationParameters(Model): + """Represents resource specific settings. + + All required parameters must be populated in order to send to Azure. + + :param location: The location where the virtual machine will live + :type location: str + :param name: The name of the resource setting + :type name: str + :param gallery_image_resource_id: Required. The resource id of the gallery + image used for creating the virtual machine + :type gallery_image_resource_id: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param reference_vm_creation_parameters: Required. Creation parameters for + Reference Vm + :type reference_vm_creation_parameters: + ~azure.mgmt.labservices.models.ReferenceVmCreationParameters + """ + + _validation = { + 'gallery_image_resource_id': {'required': True}, + 'reference_vm_creation_parameters': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'reference_vm_creation_parameters': {'key': 'referenceVmCreationParameters', 'type': 'ReferenceVmCreationParameters'}, + } + + def __init__(self, **kwargs): + super(ResourceSettingCreationParameters, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.name = kwargs.get('name', None) + self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) + self.size = kwargs.get('size', None) + self.reference_vm_creation_parameters = kwargs.get('reference_vm_creation_parameters', None) + + +class ResourceSettings(Model): + """Represents resource specific settings. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The unique id of the resource setting + :vartype id: str + :param gallery_image_resource_id: The resource id of the gallery image + used for creating the virtual machine + :type gallery_image_resource_id: str + :ivar image_name: The name of the image used to created the environment + setting + :vartype image_name: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :ivar cores: The translated compute cores of the virtual machine + :vartype cores: int + :param reference_vm: Required. Details specific to Reference Vm + :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVm + """ + + _validation = { + 'id': {'readonly': True}, + 'image_name': {'readonly': True}, + 'cores': {'readonly': True}, + 'reference_vm': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'image_name': {'key': 'imageName', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'cores': {'key': 'cores', 'type': 'int'}, + 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVm'}, + } + + def __init__(self, **kwargs): + super(ResourceSettings, self).__init__(**kwargs) + self.id = None + self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) + self.image_name = None + self.size = kwargs.get('size', None) + self.cores = None + self.reference_vm = kwargs.get('reference_vm', None) + + +class ResourceSettingsFragment(Model): + """Represents resource specific settings. + + :param gallery_image_resource_id: The resource id of the gallery image + used for creating the virtual machine + :type gallery_image_resource_id: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param reference_vm: Details specific to Reference Vm + :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVmFragment + """ + + _attribute_map = { + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVmFragment'}, + } + + def __init__(self, **kwargs): + super(ResourceSettingsFragment, self).__init__(**kwargs) + self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) + self.size = kwargs.get('size', None) + self.reference_vm = kwargs.get('reference_vm', None) + + +class SizeAvailability(Model): + """Represents the size information. + + :param size_category: The category of the size (Basic, Standard, + Performance). Possible values include: 'Basic', 'Standard', 'Performance' + :type size_category: str or + ~azure.mgmt.labservices.models.ManagedLabVmSize + :param is_available: Whether or not this size category is available + :type is_available: bool + """ + + _attribute_map = { + 'size_category': {'key': 'sizeCategory', 'type': 'str'}, + 'is_available': {'key': 'isAvailable', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(SizeAvailability, self).__init__(**kwargs) + self.size_category = kwargs.get('size_category', None) + self.is_available = kwargs.get('is_available', None) + + +class SizeConfigurationProperties(Model): + """Represents the size configuration under the lab account. + + :param environment_sizes: Represents a list of size categories supported + by this Lab Account (Small, Medium, Large) + :type environment_sizes: + list[~azure.mgmt.labservices.models.EnvironmentSize] + """ + + _attribute_map = { + 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSize]'}, + } + + def __init__(self, **kwargs): + super(SizeConfigurationProperties, self).__init__(**kwargs) + self.environment_sizes = kwargs.get('environment_sizes', None) + + +class SizeConfigurationPropertiesFragment(Model): + """Represents the size configuration under the lab account. + + :param environment_sizes: Represents a list of size categories supported + by this Lab Account (Small, Medium, Large) + :type environment_sizes: + list[~azure.mgmt.labservices.models.EnvironmentSizeFragment] + """ + + _attribute_map = { + 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSizeFragment]'}, + } + + def __init__(self, **kwargs): + super(SizeConfigurationPropertiesFragment, self).__init__(**kwargs) + self.environment_sizes = kwargs.get('environment_sizes', None) + + +class SizeInfo(Model): + """Contains detailed information about a size. + + :param compute_size: Represents the actual compute size, e.g. + Standard_A2_v2. + :type compute_size: str + :param price: The pay-as-you-go price per hour this size will cost. It + does not include discounts and may not reflect the actual price the size + will cost. + :type price: decimal.Decimal + :param number_of_cores: The number of cores a VM of this size has. + :type number_of_cores: int + :param memory: The amount of memory available (in GB). + :type memory: float + """ + + _attribute_map = { + 'compute_size': {'key': 'computeSize', 'type': 'str'}, + 'price': {'key': 'price', 'type': 'decimal'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'memory': {'key': 'memory', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(SizeInfo, self).__init__(**kwargs) + self.compute_size = kwargs.get('compute_size', None) + self.price = kwargs.get('price', None) + self.number_of_cores = kwargs.get('number_of_cores', None) + self.memory = kwargs.get('memory', None) + + +class SizeInfoFragment(Model): + """Contains detailed information about a size. + + :param compute_size: Represents the actual compute size, e.g. + Standard_A2_v2. + :type compute_size: str + :param price: The pay-as-you-go price per hour this size will cost. It + does not include discounts and may not reflect the actual price the size + will cost. + :type price: decimal.Decimal + :param number_of_cores: The number of cores a VM of this size has. + :type number_of_cores: int + :param memory: The amount of memory available (in GB). + :type memory: float + """ + + _attribute_map = { + 'compute_size': {'key': 'computeSize', 'type': 'str'}, + 'price': {'key': 'price', 'type': 'decimal'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'memory': {'key': 'memory', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(SizeInfoFragment, self).__init__(**kwargs) + self.compute_size = kwargs.get('compute_size', None) + self.price = kwargs.get('price', None) + self.number_of_cores = kwargs.get('number_of_cores', None) + self.memory = kwargs.get('memory', None) + + +class User(Resource): + """The User registered to 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 email: The user email address, as it was specified during + registration. + :vartype email: str + :ivar family_name: The user family name, as it was specified during + registration. + :vartype family_name: str + :ivar given_name: The user given name, as it was specified during + registration. + :vartype given_name: str + :ivar tenant_id: The user tenant ID, as it was specified during + registration. + :vartype tenant_id: str + :ivar total_usage: How long the user has used his VMs in this lab + :vartype total_usage: timedelta + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'email': {'readonly': True}, + 'family_name': {'readonly': True}, + 'given_name': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'email': {'key': 'properties.email', 'type': 'str'}, + 'family_name': {'key': 'properties.familyName', 'type': 'str'}, + 'given_name': {'key': 'properties.givenName', 'type': 'str'}, + 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, + 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, **kwargs): + super(User, self).__init__(**kwargs) + self.email = None + self.family_name = None + self.given_name = None + self.tenant_id = None + self.total_usage = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + self.latest_operation_result = None + + +class UserFragment(Resource): + """The User registered to 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] + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UserFragment, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.unique_identifier = kwargs.get('unique_identifier', None) + + +class VirtualMachineDetails(Model): + """Details of the backing virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Provisioning state of the Dtl VM + :vartype provisioning_state: str + :ivar rdp_authority: Connection information for Windows + :vartype rdp_authority: str + :ivar ssh_authority: Connection information for Linux + :vartype ssh_authority: str + :ivar private_ip_address: PrivateIp address of the compute VM + :vartype private_ip_address: str + :ivar user_name: Compute VM login user name + :vartype user_name: str + :ivar last_known_power_state: Last known compute power state captured in + DTL + :vartype last_known_power_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'rdp_authority': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'private_ip_address': {'readonly': True}, + 'user_name': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualMachineDetails, self).__init__(**kwargs) + self.provisioning_state = None + self.rdp_authority = None + self.ssh_authority = None + self.private_ip_address = None + self.user_name = None + self.last_known_power_state = None + + +class VmStateDetails(Model): + """Details about the state of the reference virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar 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). + :vartype rdp_authority: str + :ivar ssh_authority: The SshAuthority property is a server DNS host name + or IP address followed by the service port number for SSH. + :vartype ssh_authority: str + :ivar power_state: The power state of the reference virtual machine. + :vartype power_state: str + :ivar last_known_power_state: Last known compute power state captured in + DTL + :vartype last_known_power_state: str + """ + + _validation = { + 'rdp_authority': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'power_state': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + } + + _attribute_map = { + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'power_state': {'key': 'powerState', 'type': 'str'}, + 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VmStateDetails, self).__init__(**kwargs) + self.rdp_authority = None + self.ssh_authority = None + self.power_state = None + self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models_py3.py new file mode 100644 index 000000000000..855ef883c220 --- /dev/null +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_models_py3.py @@ -0,0 +1,2320 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AddUsersPayload(Model): + """Payload for Add Users operation on a Lab. + + All required parameters must be populated in order to send to Azure. + + :param email_addresses: Required. List of user emails addresses to add to + the lab. + :type email_addresses: list[str] + """ + + _validation = { + 'email_addresses': {'required': True}, + } + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + } + + def __init__(self, *, email_addresses, **kwargs) -> None: + super(AddUsersPayload, self).__init__(**kwargs) + self.email_addresses = email_addresses + + +class CloudError(Model): + """Error from a REST request. + + :param error: + :type error: ~azure.mgmt.labservices.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: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: Inner errors. + :type details: list[~azure.mgmt.labservices.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 CreateLabProperties(Model): + """Properties for creating a managed lab and a default environment setting. + + All required parameters must be populated in order to send to Azure. + + :param environment_setting_creation_parameters: Settings related to + creating an environment setting + :type environment_setting_creation_parameters: + ~azure.mgmt.labservices.models.EnvironmentSettingCreationParameters + :param lab_creation_parameters: Required. Settings related to creating a + lab + :type lab_creation_parameters: + ~azure.mgmt.labservices.models.LabCreationParameters + :param name: Required. The name of the resource + :type name: str + :param location: The location of the resource + :type location: str + :param tags: The tags of the resource. + :type tags: dict[str, str] + """ + + _validation = { + 'lab_creation_parameters': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'environment_setting_creation_parameters': {'key': 'environmentSettingCreationParameters', 'type': 'EnvironmentSettingCreationParameters'}, + 'lab_creation_parameters': {'key': 'labCreationParameters', 'type': 'LabCreationParameters'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, lab_creation_parameters, name: str, environment_setting_creation_parameters=None, location: str=None, tags=None, **kwargs) -> None: + super(CreateLabProperties, self).__init__(**kwargs) + self.environment_setting_creation_parameters = environment_setting_creation_parameters + self.lab_creation_parameters = lab_creation_parameters + self.name = name + self.location = location + self.tags = tags + + +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 Environment(Resource): + """Represents an environment instance. + + 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 resource_sets: The set of a VM and the setting id it was created + for + :type resource_sets: ~azure.mgmt.labservices.models.ResourceSet + :ivar claimed_by_user_object_id: The AAD object Id of the user who has + claimed the environment + :vartype claimed_by_user_object_id: str + :ivar claimed_by_user_principal_id: The user principal Id of the user who + has claimed the environment + :vartype claimed_by_user_principal_id: str + :ivar claimed_by_user_name: The name or email address of the user who has + claimed the environment + :vartype claimed_by_user_name: str + :ivar is_claimed: Is the environment claimed or not + :vartype is_claimed: bool + :ivar last_known_power_state: Last known power state of the environment + :vartype last_known_power_state: str + :ivar network_interface: Network details of the environment + :vartype network_interface: + ~azure.mgmt.labservices.models.NetworkInterface + :ivar total_usage: How long the environment has been used by a lab user + :vartype total_usage: timedelta + :ivar password_last_reset: When the password was last reset on the + environment. + :vartype password_last_reset: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'claimed_by_user_object_id': {'readonly': True}, + 'claimed_by_user_principal_id': {'readonly': True}, + 'claimed_by_user_name': {'readonly': True}, + 'is_claimed': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + 'network_interface': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'password_last_reset': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSet'}, + 'claimed_by_user_object_id': {'key': 'properties.claimedByUserObjectId', 'type': 'str'}, + 'claimed_by_user_principal_id': {'key': 'properties.claimedByUserPrincipalId', 'type': 'str'}, + 'claimed_by_user_name': {'key': 'properties.claimedByUserName', 'type': 'str'}, + 'is_claimed': {'key': 'properties.isClaimed', 'type': 'bool'}, + 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, + 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterface'}, + 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, + 'password_last_reset': {'key': 'properties.passwordLastReset', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, location: str=None, tags=None, resource_sets=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(Environment, self).__init__(location=location, tags=tags, **kwargs) + self.resource_sets = resource_sets + self.claimed_by_user_object_id = None + self.claimed_by_user_principal_id = None + self.claimed_by_user_name = None + self.is_claimed = None + self.last_known_power_state = None + self.network_interface = None + self.total_usage = None + self.password_last_reset = None + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class EnvironmentDetails(Model): + """This represents the details about a User's environment and its state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the Environment + :vartype name: str + :ivar description: Description of the Environment + :vartype description: str + :ivar id: Resource Id of the environment + :vartype id: str + :ivar provisioning_state: The provisioning state of the environment. This + also includes LabIsFull and NotYetProvisioned status. + :vartype provisioning_state: str + :ivar virtual_machine_details: Details of backing DTL virtual machine with + compute and network details. + :vartype virtual_machine_details: + ~azure.mgmt.labservices.models.VirtualMachineDetails + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + :ivar environment_state: Publishing state of the environment setting + Possible values are Creating, Created, Failed + :vartype environment_state: str + :ivar total_usage: How long the environment has been used by a lab user + :vartype total_usage: timedelta + :ivar password_last_reset: When the password was last reset on the + environment. + :vartype password_last_reset: datetime + """ + + _validation = { + 'name': {'readonly': True}, + 'description': {'readonly': True}, + 'id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_machine_details': {'readonly': True}, + 'latest_operation_result': {'readonly': True}, + 'environment_state': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'password_last_reset': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'virtual_machine_details': {'key': 'virtualMachineDetails', 'type': 'VirtualMachineDetails'}, + 'latest_operation_result': {'key': 'latestOperationResult', 'type': 'LatestOperationResult'}, + 'environment_state': {'key': 'environmentState', 'type': 'str'}, + 'total_usage': {'key': 'totalUsage', 'type': 'duration'}, + 'password_last_reset': {'key': 'passwordLastReset', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(EnvironmentDetails, self).__init__(**kwargs) + self.name = None + self.description = None + self.id = None + self.provisioning_state = None + self.virtual_machine_details = None + self.latest_operation_result = None + self.environment_state = None + self.total_usage = None + self.password_last_reset = None + + +class EnvironmentFragment(Resource): + """Represents an environment instance. + + 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 resource_sets: The set of a VM and the setting id it was created + for + :type resource_sets: ~azure.mgmt.labservices.models.ResourceSetFragment + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSetFragment'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, resource_sets=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(EnvironmentFragment, self).__init__(location=location, tags=tags, **kwargs) + self.resource_sets = resource_sets + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +class EnvironmentOperationsPayload(Model): + """Represents payload for any Environment operations like get, start, stop, + connect. + + All required parameters must be populated in order to send to Azure. + + :param environment_id: Required. The resourceId of the environment + :type environment_id: str + """ + + _validation = { + 'environment_id': {'required': True}, + } + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + } + + def __init__(self, *, environment_id: str, **kwargs) -> None: + super(EnvironmentOperationsPayload, self).__init__(**kwargs) + self.environment_id = environment_id + + +class EnvironmentSetting(Resource): + """Represents settings of an environment, from which environment instances + would be created. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 publishing_state: Describes the readiness of this environment + setting. Possible values include: 'Draft', 'Publishing', 'Published', + 'PublishFailed', 'Scaling' + :vartype publishing_state: str or + ~azure.mgmt.labservices.models.PublishingState + :param configuration_state: Describes the user's progress in configuring + their environment setting. Possible values include: 'NotApplicable', + 'Completed' + :type configuration_state: str or + ~azure.mgmt.labservices.models.ConfigurationState + :param description: Describes the environment and its resource settings + :type description: str + :param title: Brief title describing the environment and its resource + settings + :type title: str + :param resource_settings: Required. The resource specific settings + :type resource_settings: ~azure.mgmt.labservices.models.ResourceSettings + :ivar last_changed: Time when the template VM was last changed. + :vartype last_changed: datetime + :ivar last_published: Time when the template VM was last sent for + publishing. + :vartype last_published: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'publishing_state': {'readonly': True}, + 'resource_settings': {'required': True}, + 'last_changed': {'readonly': True}, + 'last_published': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'publishing_state': {'key': 'properties.publishingState', 'type': 'str'}, + 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettings'}, + 'last_changed': {'key': 'properties.lastChanged', 'type': 'iso-8601'}, + 'last_published': {'key': 'properties.lastPublished', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, resource_settings, location: str=None, tags=None, configuration_state=None, description: str=None, title: str=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(EnvironmentSetting, self).__init__(location=location, tags=tags, **kwargs) + self.publishing_state = None + self.configuration_state = configuration_state + self.description = description + self.title = title + self.resource_settings = resource_settings + self.last_changed = None + self.last_published = None + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class EnvironmentSettingCreationParameters(Model): + """Settings related to creating an environment setting. + + All required parameters must be populated in order to send to Azure. + + :param resource_setting_creation_parameters: Required. The resource + specific settings + :type resource_setting_creation_parameters: + ~azure.mgmt.labservices.models.ResourceSettingCreationParameters + """ + + _validation = { + 'resource_setting_creation_parameters': {'required': True}, + } + + _attribute_map = { + 'resource_setting_creation_parameters': {'key': 'resourceSettingCreationParameters', 'type': 'ResourceSettingCreationParameters'}, + } + + def __init__(self, *, resource_setting_creation_parameters, **kwargs) -> None: + super(EnvironmentSettingCreationParameters, self).__init__(**kwargs) + self.resource_setting_creation_parameters = resource_setting_creation_parameters + + +class EnvironmentSettingFragment(Resource): + """Represents settings of an environment, from which environment instances + would be created. + + 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 configuration_state: Describes the user's progress in configuring + their environment setting. Possible values include: 'NotApplicable', + 'Completed' + :type configuration_state: str or + ~azure.mgmt.labservices.models.ConfigurationState + :param description: Describes the environment and its resource settings + :type description: str + :param title: Brief title describing the environment and its resource + settings + :type title: str + :param resource_settings: The resource specific settings + :type resource_settings: + ~azure.mgmt.labservices.models.ResourceSettingsFragment + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'title': {'key': 'properties.title', 'type': 'str'}, + 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettingsFragment'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, configuration_state=None, description: str=None, title: str=None, resource_settings=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(EnvironmentSettingFragment, self).__init__(location=location, tags=tags, **kwargs) + self.configuration_state = configuration_state + self.description = description + self.title = title + self.resource_settings = resource_settings + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +class EnvironmentSize(Model): + """Represents a size category supported by this Lab Account (small, medium or + large). + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: The size category. Possible values include: 'Basic', + 'Standard', 'Performance' + :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param vm_sizes: Represents a set of compute sizes that can serve this + given size type + :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfo] + :ivar max_price: The pay-as-you-go dollar price per hour this size will + cost. It does not include discounts and may not reflect the actual price + the size will cost. This is the maximum price of all prices within this + tier. + :vartype max_price: decimal.Decimal + :ivar min_number_of_cores: The number of cores a VM of this size has. This + is the minimum number of cores within this tier. + :vartype min_number_of_cores: int + :ivar min_memory: The amount of memory available (in GB). This is the + minimum amount of memory within this tier. + :vartype min_memory: float + """ + + _validation = { + 'max_price': {'readonly': True}, + 'min_number_of_cores': {'readonly': True}, + 'min_memory': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfo]'}, + 'max_price': {'key': 'maxPrice', 'type': 'decimal'}, + 'min_number_of_cores': {'key': 'minNumberOfCores', 'type': 'int'}, + 'min_memory': {'key': 'minMemory', 'type': 'float'}, + } + + def __init__(self, *, name=None, vm_sizes=None, **kwargs) -> None: + super(EnvironmentSize, self).__init__(**kwargs) + self.name = name + self.vm_sizes = vm_sizes + self.max_price = None + self.min_number_of_cores = None + self.min_memory = None + + +class EnvironmentSizeFragment(Model): + """Represents a size category supported by this Lab Account (small, medium or + large). + + :param name: The size category. Possible values include: 'Basic', + 'Standard', 'Performance' + :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param vm_sizes: Represents a set of compute sizes that can serve this + given size type + :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfoFragment] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfoFragment]'}, + } + + def __init__(self, *, name=None, vm_sizes=None, **kwargs) -> None: + super(EnvironmentSizeFragment, self).__init__(**kwargs) + self.name = name + self.vm_sizes = vm_sizes + + +class GalleryImage(Resource): + """Represents an image from the Azure Marketplace. + + 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 author: The author of the gallery image. + :vartype author: str + :ivar created_date: The creation date of the gallery image. + :vartype created_date: datetime + :ivar description: The description of the gallery image. + :vartype description: str + :ivar image_reference: The image reference of the gallery image. + :vartype image_reference: + ~azure.mgmt.labservices.models.GalleryImageReference + :ivar icon: The icon of the gallery image. + :vartype icon: str + :param is_enabled: Indicates whether this gallery image is enabled. + :type is_enabled: bool + :param is_override: Indicates whether this gallery has been overridden for + this lab account + :type is_override: bool + :ivar plan_id: The third party plan that applies to this image + :vartype plan_id: str + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'author': {'readonly': True}, + 'created_date': {'readonly': True}, + 'description': {'readonly': True}, + 'image_reference': {'readonly': True}, + 'icon': {'readonly': True}, + 'plan_id': {'readonly': True}, + 'latest_operation_result': {'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'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, + 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, + 'plan_id': {'key': 'properties.planId', 'type': 'str'}, + 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, location: str=None, tags=None, is_enabled: bool=None, is_override: bool=None, is_plan_authorized: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(GalleryImage, self).__init__(location=location, tags=tags, **kwargs) + self.author = None + self.created_date = None + self.description = None + self.image_reference = None + self.icon = None + self.is_enabled = is_enabled + self.is_override = is_override + self.plan_id = None + self.is_plan_authorized = is_plan_authorized + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class GalleryImageFragment(Resource): + """Represents an image from the Azure Marketplace. + + 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 is_enabled: Indicates whether this gallery image is enabled. + :type is_enabled: bool + :param is_override: Indicates whether this gallery has been overridden for + this lab account + :type is_override: bool + :param is_plan_authorized: Indicates if the plan has been authorized for + programmatic deployment. + :type is_plan_authorized: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, + 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, + '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, is_enabled: bool=None, is_override: bool=None, is_plan_authorized: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(GalleryImageFragment, self).__init__(location=location, tags=tags, **kwargs) + self.is_enabled = is_enabled + self.is_override = is_override + self.is_plan_authorized = is_plan_authorized + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +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 GetEnvironmentResponse(Model): + """Represents the environments details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar environment: Details of the environment + :vartype environment: ~azure.mgmt.labservices.models.EnvironmentDetails + """ + + _validation = { + 'environment': {'readonly': True}, + } + + _attribute_map = { + 'environment': {'key': 'environment', 'type': 'EnvironmentDetails'}, + } + + def __init__(self, **kwargs) -> None: + super(GetEnvironmentResponse, self).__init__(**kwargs) + self.environment = None + + +class GetPersonalPreferencesResponse(Model): + """Represents the PersonalPreferences for the user. + + :param id: Id to be used by the cache orchestrator + :type id: str + :param favorite_lab_resource_ids: Array of favorite lab resource ids + :type favorite_lab_resource_ids: list[str] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'favorite_lab_resource_ids': {'key': 'favoriteLabResourceIds', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, favorite_lab_resource_ids=None, **kwargs) -> None: + super(GetPersonalPreferencesResponse, self).__init__(**kwargs) + self.id = id + self.favorite_lab_resource_ids = favorite_lab_resource_ids + + +class GetRegionalAvailabilityResponse(Model): + """The response model from the GetRegionalAvailability action. + + :param regional_availability: Availability information for different size + categories per region + :type regional_availability: + list[~azure.mgmt.labservices.models.RegionalAvailability] + """ + + _attribute_map = { + 'regional_availability': {'key': 'regionalAvailability', 'type': '[RegionalAvailability]'}, + } + + def __init__(self, *, regional_availability=None, **kwargs) -> None: + super(GetRegionalAvailabilityResponse, self).__init__(**kwargs) + self.regional_availability = regional_availability + + +class Lab(Resource): + """Represents 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] + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + :ivar user_quota: Maximum value MaxUsersInLab can be set to, as specified + by the service + :vartype user_quota: int + :ivar invitation_code: Invitation code that users can use to join a lab. + :vartype invitation_code: str + :ivar created_by_object_id: Object id of the user that created the lab. + :vartype created_by_object_id: str + :param usage_quota: Maximum duration a user can use an environment for in + the lab. + :type usage_quota: timedelta + :param user_access_mode: Lab user access mode (open to all vs. restricted + to those listed on the lab). Possible values include: 'Restricted', 'Open' + :type user_access_mode: str or + ~azure.mgmt.labservices.models.LabUserAccessMode + :ivar created_by_user_principal_name: Lab creator name + :vartype created_by_user_principal_name: str + :ivar created_date: Creation date for the lab + :vartype created_date: datetime + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'user_quota': {'readonly': True}, + 'invitation_code': {'readonly': True}, + 'created_by_object_id': {'readonly': True}, + 'created_by_user_principal_name': {'readonly': True}, + 'created_date': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, + 'user_quota': {'key': 'properties.userQuota', 'type': 'int'}, + 'invitation_code': {'key': 'properties.invitationCode', 'type': 'str'}, + 'created_by_object_id': {'key': 'properties.createdByObjectId', 'type': 'str'}, + 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, + 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, + 'created_by_user_principal_name': {'key': 'properties.createdByUserPrincipalName', 'type': 'str'}, + 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, location: str=None, tags=None, max_users_in_lab: int=None, usage_quota=None, user_access_mode=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(Lab, self).__init__(location=location, tags=tags, **kwargs) + self.max_users_in_lab = max_users_in_lab + self.user_quota = None + self.invitation_code = None + self.created_by_object_id = None + self.usage_quota = usage_quota + self.user_access_mode = user_access_mode + self.created_by_user_principal_name = None + self.created_date = None + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class LabAccount(Resource): + """Represents a lab account. + + 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 size_configuration: Represents the size configuration under the lab + account + :vartype size_configuration: + ~azure.mgmt.labservices.models.SizeConfigurationProperties + :param enabled_region_selection: Represents if region selection is enabled + :type enabled_region_selection: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'size_configuration': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'size_configuration': {'key': 'properties.sizeConfiguration', 'type': 'SizeConfigurationProperties'}, + 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, location: str=None, tags=None, enabled_region_selection: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(LabAccount, self).__init__(location=location, tags=tags, **kwargs) + self.size_configuration = None + self.enabled_region_selection = enabled_region_selection + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class LabAccountFragment(Resource): + """Represents a lab account. + + 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 enabled_region_selection: Represents if region selection is enabled + :type enabled_region_selection: bool + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, enabled_region_selection: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(LabAccountFragment, self).__init__(location=location, tags=tags, **kwargs) + self.enabled_region_selection = enabled_region_selection + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +class LabCreationParameters(Model): + """Settings related to creating a lab. + + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + """ + + _attribute_map = { + 'max_users_in_lab': {'key': 'maxUsersInLab', 'type': 'int'}, + } + + def __init__(self, *, max_users_in_lab: int=None, **kwargs) -> None: + super(LabCreationParameters, self).__init__(**kwargs) + self.max_users_in_lab = max_users_in_lab + + +class LabDetails(Model): + """This represents the details about a lab that the User is in, and its state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: Name of the lab + :type name: str + :param provisioning_state: The provisioning state of the lab. + :type provisioning_state: str + :param id: The Id of the lab. + :type id: str + :ivar usage_quota: The maximum duration a user can use a VM in this lab. + :vartype usage_quota: timedelta + """ + + _validation = { + 'usage_quota': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'usage_quota': {'key': 'usageQuota', 'type': 'duration'}, + } + + def __init__(self, *, name: str=None, provisioning_state: str=None, id: str=None, **kwargs) -> None: + super(LabDetails, self).__init__(**kwargs) + self.name = name + self.provisioning_state = provisioning_state + self.id = id + self.usage_quota = None + + +class LabFragment(Resource): + """Represents 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] + :param max_users_in_lab: Maximum number of users allowed in the lab. + :type max_users_in_lab: int + :param usage_quota: Maximum duration a user can use an environment for in + the lab. + :type usage_quota: timedelta + :param user_access_mode: Lab user access mode (open to all vs. restricted + to those listed on the lab). Possible values include: 'Restricted', 'Open' + :type user_access_mode: str or + ~azure.mgmt.labservices.models.LabUserAccessMode + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, + 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, + 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, max_users_in_lab: int=None, usage_quota=None, user_access_mode=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(LabFragment, self).__init__(location=location, tags=tags, **kwargs) + self.max_users_in_lab = max_users_in_lab + self.usage_quota = usage_quota + self.user_access_mode = user_access_mode + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +class LatestOperationResult(Model): + """Details of the status of an operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The current status of the operation. + :vartype status: str + :ivar error_code: Error code on failure. + :vartype error_code: str + :ivar error_message: The error message. + :vartype error_message: str + :ivar request_uri: Request URI of the operation. + :vartype request_uri: str + :ivar http_method: The HttpMethod - PUT/POST/DELETE for the operation. + :vartype http_method: str + :ivar operation_url: The URL to use to check long-running operation status + :vartype operation_url: str + """ + + _validation = { + 'status': {'readonly': True}, + 'error_code': {'readonly': True}, + 'error_message': {'readonly': True}, + 'request_uri': {'readonly': True}, + 'http_method': {'readonly': True}, + 'operation_url': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'request_uri': {'key': 'requestUri', 'type': 'str'}, + 'http_method': {'key': 'httpMethod', 'type': 'str'}, + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(LatestOperationResult, self).__init__(**kwargs) + self.status = None + self.error_code = None + self.error_message = None + self.request_uri = None + self.http_method = None + self.operation_url = None + + +class ListEnvironmentsPayload(Model): + """Represents the payload to list environments owned by a user. + + :param lab_id: The resource Id of the lab + :type lab_id: str + """ + + _attribute_map = { + 'lab_id': {'key': 'labId', 'type': 'str'}, + } + + def __init__(self, *, lab_id: str=None, **kwargs) -> None: + super(ListEnvironmentsPayload, self).__init__(**kwargs) + self.lab_id = lab_id + + +class ListEnvironmentsResponse(Model): + """Represents the list of environments owned by a user. + + :param environments: List of all the environments + :type environments: + list[~azure.mgmt.labservices.models.EnvironmentDetails] + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[EnvironmentDetails]'}, + } + + def __init__(self, *, environments=None, **kwargs) -> None: + super(ListEnvironmentsResponse, self).__init__(**kwargs) + self.environments = environments + + +class ListLabsResponse(Model): + """Lists the labs owned by a user. + + :param labs: List of all the labs + :type labs: list[~azure.mgmt.labservices.models.LabDetails] + """ + + _attribute_map = { + 'labs': {'key': 'labs', 'type': '[LabDetails]'}, + } + + def __init__(self, *, labs=None, **kwargs) -> None: + super(ListLabsResponse, self).__init__(**kwargs) + self.labs = labs + + +class NetworkInterface(Model): + """Network details of the environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar private_ip_address: PrivateIp address of the Compute VM + :vartype private_ip_address: str + :ivar ssh_authority: Connection information for Linux + :vartype ssh_authority: str + :ivar rdp_authority: Connection information for Windows + :vartype rdp_authority: str + :ivar username: Username of the VM + :vartype username: str + """ + + _validation = { + 'private_ip_address': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'rdp_authority': {'readonly': True}, + 'username': {'readonly': True}, + } + + _attribute_map = { + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(NetworkInterface, self).__init__(**kwargs) + self.private_ip_address = None + self.ssh_authority = None + self.rdp_authority = None + self.username = None + + +class OperationBatchStatusPayload(Model): + """Payload to get the status of an operation. + + All required parameters must be populated in order to send to Azure. + + :param urls: Required. The operation url of long running operation + :type urls: list[str] + """ + + _validation = { + 'urls': {'required': True}, + } + + _attribute_map = { + 'urls': {'key': 'urls', 'type': '[str]'}, + } + + def __init__(self, *, urls, **kwargs) -> None: + super(OperationBatchStatusPayload, self).__init__(**kwargs) + self.urls = urls + + +class OperationBatchStatusResponse(Model): + """Status Details of the long running operation for an environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar items: Gets a collection of items that contain the operation url and + status. + :vartype items: + list[~azure.mgmt.labservices.models.OperationBatchStatusResponseItem] + """ + + _validation = { + 'items': {'readonly': True}, + } + + _attribute_map = { + 'items': {'key': 'items', 'type': '[OperationBatchStatusResponseItem]'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationBatchStatusResponse, self).__init__(**kwargs) + self.items = None + + +class OperationBatchStatusResponseItem(Model): + """Represents the status of an operation that used the batch API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar operation_url: status of the long running operation for an + environment + :vartype operation_url: str + :ivar status: status of the long running operation for an environment + :vartype status: str + """ + + _validation = { + 'operation_url': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationBatchStatusResponseItem, self).__init__(**kwargs) + self.operation_url = None + self.status = 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, *, 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 ManagedLab ResourceProvider. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that describes the operations + :type display: ~azure.mgmt.labservices.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 error: Error details for the operation in case of a failure. + :type error: ~azure.mgmt.labservices.models.OperationError + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'OperationError'}, + } + + def __init__(self, *, status: str=None, error=None, **kwargs) -> None: + super(OperationResult, self).__init__(**kwargs) + self.status = status + self.error = error + + +class OperationStatusPayload(Model): + """Payload to get the status of an operation. + + All required parameters must be populated in order to send to Azure. + + :param operation_url: Required. The operation url of long running + operation + :type operation_url: str + """ + + _validation = { + 'operation_url': {'required': True}, + } + + _attribute_map = { + 'operation_url': {'key': 'operationUrl', 'type': 'str'}, + } + + def __init__(self, *, operation_url: str, **kwargs) -> None: + super(OperationStatusPayload, self).__init__(**kwargs) + self.operation_url = operation_url + + +class OperationStatusResponse(Model): + """Status Details of the long running operation for an environment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: status of the long running operation for an environment + :vartype status: str + """ + + _validation = { + 'status': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationStatusResponse, self).__init__(**kwargs) + self.status = None + + +class PersonalPreferencesOperationsPayload(Model): + """Represents payload for any Environment operations like get, start, stop, + connect. + + :param lab_account_resource_id: Resource Id of the lab account + :type lab_account_resource_id: str + :param add_remove: Enum indicating if user is adding or removing a + favorite lab. Possible values include: 'Add', 'Remove' + :type add_remove: str or ~azure.mgmt.labservices.models.AddRemove + :param lab_resource_id: Resource Id of the lab to add/remove from the + favorites list + :type lab_resource_id: str + """ + + _attribute_map = { + 'lab_account_resource_id': {'key': 'labAccountResourceId', 'type': 'str'}, + 'add_remove': {'key': 'addRemove', 'type': 'str'}, + 'lab_resource_id': {'key': 'labResourceId', 'type': 'str'}, + } + + def __init__(self, *, lab_account_resource_id: str=None, add_remove=None, lab_resource_id: str=None, **kwargs) -> None: + super(PersonalPreferencesOperationsPayload, self).__init__(**kwargs) + self.lab_account_resource_id = lab_account_resource_id + self.add_remove = add_remove + self.lab_resource_id = lab_resource_id + + +class PublishPayload(Model): + """Payload for Publish operation on EnvironmentSetting. + + :param use_existing_image: Whether to use existing VM custom image when + publishing. + :type use_existing_image: bool + """ + + _attribute_map = { + 'use_existing_image': {'key': 'useExistingImage', 'type': 'bool'}, + } + + def __init__(self, *, use_existing_image: bool=None, **kwargs) -> None: + super(PublishPayload, self).__init__(**kwargs) + self.use_existing_image = use_existing_image + + +class ReferenceVm(Model): + """Details of a Reference Vm. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The username of the virtual machine + :type user_name: str + :param password: The password of the virtual machine. This will be set to + null in GET resource API + :type password: str + :ivar vm_state_details: The state details for the reference virtual + machine. + :vartype vm_state_details: ~azure.mgmt.labservices.models.VmStateDetails + :ivar vm_resource_id: VM resource Id for the environment + :vartype vm_resource_id: str + """ + + _validation = { + 'user_name': {'required': True}, + 'vm_state_details': {'readonly': True}, + 'vm_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'vm_state_details': {'key': 'vmStateDetails', 'type': 'VmStateDetails'}, + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + } + + def __init__(self, *, user_name: str, password: str=None, **kwargs) -> None: + super(ReferenceVm, self).__init__(**kwargs) + self.user_name = user_name + self.password = password + self.vm_state_details = None + self.vm_resource_id = None + + +class ReferenceVmCreationParameters(Model): + """Creation parameters for Reference Vm. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The username of the virtual machine + :type user_name: str + :param password: Required. The password of the virtual machine. + :type password: str + """ + + _validation = { + 'user_name': {'required': True}, + 'password': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, user_name: str, password: str, **kwargs) -> None: + super(ReferenceVmCreationParameters, self).__init__(**kwargs) + self.user_name = user_name + self.password = password + + +class ReferenceVmFragment(Model): + """Details of a Reference Vm. + + :param user_name: The username of the virtual machine + :type user_name: str + :param password: The password of the virtual machine. This will be set to + null in GET resource API + :type password: str + """ + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, user_name: str=None, password: str=None, **kwargs) -> None: + super(ReferenceVmFragment, self).__init__(**kwargs) + self.user_name = user_name + self.password = password + + +class RegionalAvailability(Model): + """The availability information of sizes across regions. + + :param region: Corresponding region + :type region: str + :param size_availabilities: List of all the size information for the + region + :type size_availabilities: + list[~azure.mgmt.labservices.models.SizeAvailability] + """ + + _attribute_map = { + 'region': {'key': 'region', 'type': 'str'}, + 'size_availabilities': {'key': 'sizeAvailabilities', 'type': '[SizeAvailability]'}, + } + + def __init__(self, *, region: str=None, size_availabilities=None, **kwargs) -> None: + super(RegionalAvailability, self).__init__(**kwargs) + self.region = region + self.size_availabilities = size_availabilities + + +class RegisterPayload(Model): + """Represents payload for Register action. + + :param registration_code: The registration code of the lab. + :type registration_code: str + """ + + _attribute_map = { + 'registration_code': {'key': 'registrationCode', 'type': 'str'}, + } + + def __init__(self, *, registration_code: str=None, **kwargs) -> None: + super(RegisterPayload, self).__init__(**kwargs) + self.registration_code = registration_code + + +class ResetPasswordPayload(Model): + """Represents the payload for resetting passwords. + + All required parameters must be populated in order to send to Azure. + + :param environment_id: Required. The resourceId of the environment + :type environment_id: str + :param username: The username for which the password will be reset. + :type username: str + :param password: The password to assign to the user specified in + :type password: str + """ + + _validation = { + 'environment_id': {'required': True}, + } + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, environment_id: str, username: str=None, password: str=None, **kwargs) -> None: + super(ResetPasswordPayload, self).__init__(**kwargs) + self.environment_id = environment_id + self.username = username + self.password = password + + +class ResourceSet(Model): + """Represents a VM and the setting Id it was created for. + + :param vm_resource_id: VM resource Id for the environment + :type vm_resource_id: str + :param resource_setting_id: resourceSettingId for the environment + :type resource_setting_id: str + """ + + _attribute_map = { + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, + } + + def __init__(self, *, vm_resource_id: str=None, resource_setting_id: str=None, **kwargs) -> None: + super(ResourceSet, self).__init__(**kwargs) + self.vm_resource_id = vm_resource_id + self.resource_setting_id = resource_setting_id + + +class ResourceSetFragment(Model): + """Represents a VM and the setting Id it was created for. + + :param vm_resource_id: VM resource Id for the environment + :type vm_resource_id: str + :param resource_setting_id: resourceSettingId for the environment + :type resource_setting_id: str + """ + + _attribute_map = { + 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, + 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, + } + + def __init__(self, *, vm_resource_id: str=None, resource_setting_id: str=None, **kwargs) -> None: + super(ResourceSetFragment, self).__init__(**kwargs) + self.vm_resource_id = vm_resource_id + self.resource_setting_id = resource_setting_id + + +class ResourceSettingCreationParameters(Model): + """Represents resource specific settings. + + All required parameters must be populated in order to send to Azure. + + :param location: The location where the virtual machine will live + :type location: str + :param name: The name of the resource setting + :type name: str + :param gallery_image_resource_id: Required. The resource id of the gallery + image used for creating the virtual machine + :type gallery_image_resource_id: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param reference_vm_creation_parameters: Required. Creation parameters for + Reference Vm + :type reference_vm_creation_parameters: + ~azure.mgmt.labservices.models.ReferenceVmCreationParameters + """ + + _validation = { + 'gallery_image_resource_id': {'required': True}, + 'reference_vm_creation_parameters': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'reference_vm_creation_parameters': {'key': 'referenceVmCreationParameters', 'type': 'ReferenceVmCreationParameters'}, + } + + def __init__(self, *, gallery_image_resource_id: str, reference_vm_creation_parameters, location: str=None, name: str=None, size=None, **kwargs) -> None: + super(ResourceSettingCreationParameters, self).__init__(**kwargs) + self.location = location + self.name = name + self.gallery_image_resource_id = gallery_image_resource_id + self.size = size + self.reference_vm_creation_parameters = reference_vm_creation_parameters + + +class ResourceSettings(Model): + """Represents resource specific settings. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The unique id of the resource setting + :vartype id: str + :param gallery_image_resource_id: The resource id of the gallery image + used for creating the virtual machine + :type gallery_image_resource_id: str + :ivar image_name: The name of the image used to created the environment + setting + :vartype image_name: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :ivar cores: The translated compute cores of the virtual machine + :vartype cores: int + :param reference_vm: Required. Details specific to Reference Vm + :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVm + """ + + _validation = { + 'id': {'readonly': True}, + 'image_name': {'readonly': True}, + 'cores': {'readonly': True}, + 'reference_vm': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'image_name': {'key': 'imageName', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'cores': {'key': 'cores', 'type': 'int'}, + 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVm'}, + } + + def __init__(self, *, reference_vm, gallery_image_resource_id: str=None, size=None, **kwargs) -> None: + super(ResourceSettings, self).__init__(**kwargs) + self.id = None + self.gallery_image_resource_id = gallery_image_resource_id + self.image_name = None + self.size = size + self.cores = None + self.reference_vm = reference_vm + + +class ResourceSettingsFragment(Model): + """Represents resource specific settings. + + :param gallery_image_resource_id: The resource id of the gallery image + used for creating the virtual machine + :type gallery_image_resource_id: str + :param size: The size of the virtual machine. Possible values include: + 'Basic', 'Standard', 'Performance' + :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize + :param reference_vm: Details specific to Reference Vm + :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVmFragment + """ + + _attribute_map = { + 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVmFragment'}, + } + + def __init__(self, *, gallery_image_resource_id: str=None, size=None, reference_vm=None, **kwargs) -> None: + super(ResourceSettingsFragment, self).__init__(**kwargs) + self.gallery_image_resource_id = gallery_image_resource_id + self.size = size + self.reference_vm = reference_vm + + +class SizeAvailability(Model): + """Represents the size information. + + :param size_category: The category of the size (Basic, Standard, + Performance). Possible values include: 'Basic', 'Standard', 'Performance' + :type size_category: str or + ~azure.mgmt.labservices.models.ManagedLabVmSize + :param is_available: Whether or not this size category is available + :type is_available: bool + """ + + _attribute_map = { + 'size_category': {'key': 'sizeCategory', 'type': 'str'}, + 'is_available': {'key': 'isAvailable', 'type': 'bool'}, + } + + def __init__(self, *, size_category=None, is_available: bool=None, **kwargs) -> None: + super(SizeAvailability, self).__init__(**kwargs) + self.size_category = size_category + self.is_available = is_available + + +class SizeConfigurationProperties(Model): + """Represents the size configuration under the lab account. + + :param environment_sizes: Represents a list of size categories supported + by this Lab Account (Small, Medium, Large) + :type environment_sizes: + list[~azure.mgmt.labservices.models.EnvironmentSize] + """ + + _attribute_map = { + 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSize]'}, + } + + def __init__(self, *, environment_sizes=None, **kwargs) -> None: + super(SizeConfigurationProperties, self).__init__(**kwargs) + self.environment_sizes = environment_sizes + + +class SizeConfigurationPropertiesFragment(Model): + """Represents the size configuration under the lab account. + + :param environment_sizes: Represents a list of size categories supported + by this Lab Account (Small, Medium, Large) + :type environment_sizes: + list[~azure.mgmt.labservices.models.EnvironmentSizeFragment] + """ + + _attribute_map = { + 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSizeFragment]'}, + } + + def __init__(self, *, environment_sizes=None, **kwargs) -> None: + super(SizeConfigurationPropertiesFragment, self).__init__(**kwargs) + self.environment_sizes = environment_sizes + + +class SizeInfo(Model): + """Contains detailed information about a size. + + :param compute_size: Represents the actual compute size, e.g. + Standard_A2_v2. + :type compute_size: str + :param price: The pay-as-you-go price per hour this size will cost. It + does not include discounts and may not reflect the actual price the size + will cost. + :type price: decimal.Decimal + :param number_of_cores: The number of cores a VM of this size has. + :type number_of_cores: int + :param memory: The amount of memory available (in GB). + :type memory: float + """ + + _attribute_map = { + 'compute_size': {'key': 'computeSize', 'type': 'str'}, + 'price': {'key': 'price', 'type': 'decimal'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'memory': {'key': 'memory', 'type': 'float'}, + } + + def __init__(self, *, compute_size: str=None, price=None, number_of_cores: int=None, memory: float=None, **kwargs) -> None: + super(SizeInfo, self).__init__(**kwargs) + self.compute_size = compute_size + self.price = price + self.number_of_cores = number_of_cores + self.memory = memory + + +class SizeInfoFragment(Model): + """Contains detailed information about a size. + + :param compute_size: Represents the actual compute size, e.g. + Standard_A2_v2. + :type compute_size: str + :param price: The pay-as-you-go price per hour this size will cost. It + does not include discounts and may not reflect the actual price the size + will cost. + :type price: decimal.Decimal + :param number_of_cores: The number of cores a VM of this size has. + :type number_of_cores: int + :param memory: The amount of memory available (in GB). + :type memory: float + """ + + _attribute_map = { + 'compute_size': {'key': 'computeSize', 'type': 'str'}, + 'price': {'key': 'price', 'type': 'decimal'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'memory': {'key': 'memory', 'type': 'float'}, + } + + def __init__(self, *, compute_size: str=None, price=None, number_of_cores: int=None, memory: float=None, **kwargs) -> None: + super(SizeInfoFragment, self).__init__(**kwargs) + self.compute_size = compute_size + self.price = price + self.number_of_cores = number_of_cores + self.memory = memory + + +class User(Resource): + """The User registered to 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 email: The user email address, as it was specified during + registration. + :vartype email: str + :ivar family_name: The user family name, as it was specified during + registration. + :vartype family_name: str + :ivar given_name: The user given name, as it was specified during + registration. + :vartype given_name: str + :ivar tenant_id: The user tenant ID, as it was specified during + registration. + :vartype tenant_id: str + :ivar total_usage: How long the user has used his VMs in this lab + :vartype total_usage: timedelta + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: str + :ivar latest_operation_result: The details of the latest operation. ex: + status, error + :vartype latest_operation_result: + ~azure.mgmt.labservices.models.LatestOperationResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'email': {'readonly': True}, + 'family_name': {'readonly': True}, + 'given_name': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'total_usage': {'readonly': True}, + 'latest_operation_result': {'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}'}, + 'email': {'key': 'properties.email', 'type': 'str'}, + 'family_name': {'key': 'properties.familyName', 'type': 'str'}, + 'given_name': {'key': 'properties.givenName', 'type': 'str'}, + 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, + 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, + } + + def __init__(self, *, location: str=None, tags=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(User, self).__init__(location=location, tags=tags, **kwargs) + self.email = None + self.family_name = None + self.given_name = None + self.tenant_id = None + self.total_usage = None + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + self.latest_operation_result = None + + +class UserFragment(Resource): + """The User registered to 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] + :param provisioning_state: The provisioning status of the resource. + :type provisioning_state: str + :param unique_identifier: The unique immutable identifier of a resource + (Guid). + :type unique_identifier: 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}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: + super(UserFragment, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = provisioning_state + self.unique_identifier = unique_identifier + + +class VirtualMachineDetails(Model): + """Details of the backing virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Provisioning state of the Dtl VM + :vartype provisioning_state: str + :ivar rdp_authority: Connection information for Windows + :vartype rdp_authority: str + :ivar ssh_authority: Connection information for Linux + :vartype ssh_authority: str + :ivar private_ip_address: PrivateIp address of the compute VM + :vartype private_ip_address: str + :ivar user_name: Compute VM login user name + :vartype user_name: str + :ivar last_known_power_state: Last known compute power state captured in + DTL + :vartype last_known_power_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'rdp_authority': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'private_ip_address': {'readonly': True}, + 'user_name': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualMachineDetails, self).__init__(**kwargs) + self.provisioning_state = None + self.rdp_authority = None + self.ssh_authority = None + self.private_ip_address = None + self.user_name = None + self.last_known_power_state = None + + +class VmStateDetails(Model): + """Details about the state of the reference virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar 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). + :vartype rdp_authority: str + :ivar ssh_authority: The SshAuthority property is a server DNS host name + or IP address followed by the service port number for SSH. + :vartype ssh_authority: str + :ivar power_state: The power state of the reference virtual machine. + :vartype power_state: str + :ivar last_known_power_state: Last known compute power state captured in + DTL + :vartype last_known_power_state: str + """ + + _validation = { + 'rdp_authority': {'readonly': True}, + 'ssh_authority': {'readonly': True}, + 'power_state': {'readonly': True}, + 'last_known_power_state': {'readonly': True}, + } + + _attribute_map = { + 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, + 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, + 'power_state': {'key': 'powerState', 'type': 'str'}, + 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VmStateDetails, self).__init__(**kwargs) + self.rdp_authority = None + self.ssh_authority = None + self.power_state = None + self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_paged_models.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_paged_models.py new file mode 100644 index 000000000000..3deb33f9f25d --- /dev/null +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/_paged_models.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 LabAccountPaged(Paged): + """ + A paging container for iterating over a list of :class:`LabAccount ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LabAccount]'} + } + + def __init__(self, *args, **kwargs): + + super(LabAccountPaged, 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 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 EnvironmentSettingPaged(Paged): + """ + A paging container for iterating over a list of :class:`EnvironmentSetting ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[EnvironmentSetting]'} + } + + def __init__(self, *args, **kwargs): + + super(EnvironmentSettingPaged, self).__init__(*args, **kwargs) +class EnvironmentPaged(Paged): + """ + A paging container for iterating over a list of :class:`Environment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Environment]'} + } + + def __init__(self, *args, **kwargs): + + super(EnvironmentPaged, 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) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload.py deleted file mode 100644 index 8bf385a4f6a4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload.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 AddUsersPayload(Model): - """Payload for Add Users operation on a Lab. - - All required parameters must be populated in order to send to Azure. - - :param email_addresses: Required. List of user emails addresses to add to - the lab. - :type email_addresses: list[str] - """ - - _validation = { - 'email_addresses': {'required': True}, - } - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AddUsersPayload, self).__init__(**kwargs) - self.email_addresses = kwargs.get('email_addresses', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload_py3.py deleted file mode 100644 index 142c59932d55..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/add_users_payload_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 AddUsersPayload(Model): - """Payload for Add Users operation on a Lab. - - All required parameters must be populated in order to send to Azure. - - :param email_addresses: Required. List of user emails addresses to add to - the lab. - :type email_addresses: list[str] - """ - - _validation = { - 'email_addresses': {'required': True}, - } - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - } - - def __init__(self, *, email_addresses, **kwargs) -> None: - super(AddUsersPayload, self).__init__(**kwargs) - self.email_addresses = email_addresses diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties.py deleted file mode 100644 index 7b009374229f..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_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 CreateLabProperties(Model): - """Properties for creating a managed lab and a default environment setting. - - All required parameters must be populated in order to send to Azure. - - :param environment_setting_creation_parameters: Settings related to - creating an environment setting - :type environment_setting_creation_parameters: - ~azure.mgmt.labservices.models.EnvironmentSettingCreationParameters - :param lab_creation_parameters: Required. Settings related to creating a - lab - :type lab_creation_parameters: - ~azure.mgmt.labservices.models.LabCreationParameters - :param name: Required. The name of the resource - :type name: str - :param location: The location of the resource - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _validation = { - 'lab_creation_parameters': {'required': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'environment_setting_creation_parameters': {'key': 'environmentSettingCreationParameters', 'type': 'EnvironmentSettingCreationParameters'}, - 'lab_creation_parameters': {'key': 'labCreationParameters', 'type': 'LabCreationParameters'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(CreateLabProperties, self).__init__(**kwargs) - self.environment_setting_creation_parameters = kwargs.get('environment_setting_creation_parameters', None) - self.lab_creation_parameters = kwargs.get('lab_creation_parameters', None) - self.name = kwargs.get('name', None) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_properties_py3.py deleted file mode 100644 index 74aeccad66e0..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/create_lab_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 CreateLabProperties(Model): - """Properties for creating a managed lab and a default environment setting. - - All required parameters must be populated in order to send to Azure. - - :param environment_setting_creation_parameters: Settings related to - creating an environment setting - :type environment_setting_creation_parameters: - ~azure.mgmt.labservices.models.EnvironmentSettingCreationParameters - :param lab_creation_parameters: Required. Settings related to creating a - lab - :type lab_creation_parameters: - ~azure.mgmt.labservices.models.LabCreationParameters - :param name: Required. The name of the resource - :type name: str - :param location: The location of the resource - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] - """ - - _validation = { - 'lab_creation_parameters': {'required': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'environment_setting_creation_parameters': {'key': 'environmentSettingCreationParameters', 'type': 'EnvironmentSettingCreationParameters'}, - 'lab_creation_parameters': {'key': 'labCreationParameters', 'type': 'LabCreationParameters'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, lab_creation_parameters, name: str, environment_setting_creation_parameters=None, location: str=None, tags=None, **kwargs) -> None: - super(CreateLabProperties, self).__init__(**kwargs) - self.environment_setting_creation_parameters = environment_setting_creation_parameters - self.lab_creation_parameters = lab_creation_parameters - self.name = name - self.location = location - self.tags = tags diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment.py deleted file mode 100644 index 4f7a2fa05b07..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 Environment(Resource): - """Represents an environment instance. - - 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 resource_sets: The set of a VM and the setting id it was created - for - :type resource_sets: ~azure.mgmt.labservices.models.ResourceSet - :ivar claimed_by_user_object_id: The AAD object Id of the user who has - claimed the environment - :vartype claimed_by_user_object_id: str - :ivar claimed_by_user_principal_id: The user principal Id of the user who - has claimed the environment - :vartype claimed_by_user_principal_id: str - :ivar claimed_by_user_name: The name or email address of the user who has - claimed the environment - :vartype claimed_by_user_name: str - :ivar is_claimed: Is the environment claimed or not - :vartype is_claimed: bool - :ivar last_known_power_state: Last known power state of the environment - :vartype last_known_power_state: str - :ivar network_interface: Network details of the environment - :vartype network_interface: - ~azure.mgmt.labservices.models.NetworkInterface - :ivar total_usage: How long the environment has been used by a lab user - :vartype total_usage: timedelta - :ivar password_last_reset: When the password was last reset on the - environment. - :vartype password_last_reset: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'claimed_by_user_object_id': {'readonly': True}, - 'claimed_by_user_principal_id': {'readonly': True}, - 'claimed_by_user_name': {'readonly': True}, - 'is_claimed': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - 'network_interface': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'password_last_reset': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSet'}, - 'claimed_by_user_object_id': {'key': 'properties.claimedByUserObjectId', 'type': 'str'}, - 'claimed_by_user_principal_id': {'key': 'properties.claimedByUserPrincipalId', 'type': 'str'}, - 'claimed_by_user_name': {'key': 'properties.claimedByUserName', 'type': 'str'}, - 'is_claimed': {'key': 'properties.isClaimed', 'type': 'bool'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterface'}, - 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, - 'password_last_reset': {'key': 'properties.passwordLastReset', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(Environment, self).__init__(**kwargs) - self.resource_sets = kwargs.get('resource_sets', None) - self.claimed_by_user_object_id = None - self.claimed_by_user_principal_id = None - self.claimed_by_user_name = None - self.is_claimed = None - self.last_known_power_state = None - self.network_interface = None - self.total_usage = None - self.password_last_reset = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details.py deleted file mode 100644 index 078f494dd450..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentDetails(Model): - """This represents the details about a User's environment and its state. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the Environment - :vartype name: str - :ivar description: Description of the Environment - :vartype description: str - :ivar id: Resource Id of the environment - :vartype id: str - :ivar provisioning_state: The provisioning state of the environment. This - also includes LabIsFull and NotYetProvisioned status. - :vartype provisioning_state: str - :ivar virtual_machine_details: Details of backing DTL virtual machine with - compute and network details. - :vartype virtual_machine_details: - ~azure.mgmt.labservices.models.VirtualMachineDetails - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - :ivar environment_state: Publishing state of the environment setting - Possible values are Creating, Created, Failed - :vartype environment_state: str - :ivar total_usage: How long the environment has been used by a lab user - :vartype total_usage: timedelta - :ivar password_last_reset: When the password was last reset on the - environment. - :vartype password_last_reset: datetime - """ - - _validation = { - 'name': {'readonly': True}, - 'description': {'readonly': True}, - 'id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'virtual_machine_details': {'readonly': True}, - 'latest_operation_result': {'readonly': True}, - 'environment_state': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'password_last_reset': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'virtual_machine_details': {'key': 'virtualMachineDetails', 'type': 'VirtualMachineDetails'}, - 'latest_operation_result': {'key': 'latestOperationResult', 'type': 'LatestOperationResult'}, - 'environment_state': {'key': 'environmentState', 'type': 'str'}, - 'total_usage': {'key': 'totalUsage', 'type': 'duration'}, - 'password_last_reset': {'key': 'passwordLastReset', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(EnvironmentDetails, self).__init__(**kwargs) - self.name = None - self.description = None - self.id = None - self.provisioning_state = None - self.virtual_machine_details = None - self.latest_operation_result = None - self.environment_state = None - self.total_usage = None - self.password_last_reset = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details_py3.py deleted file mode 100644 index 6487145edf0a..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_details_py3.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentDetails(Model): - """This represents the details about a User's environment and its state. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the Environment - :vartype name: str - :ivar description: Description of the Environment - :vartype description: str - :ivar id: Resource Id of the environment - :vartype id: str - :ivar provisioning_state: The provisioning state of the environment. This - also includes LabIsFull and NotYetProvisioned status. - :vartype provisioning_state: str - :ivar virtual_machine_details: Details of backing DTL virtual machine with - compute and network details. - :vartype virtual_machine_details: - ~azure.mgmt.labservices.models.VirtualMachineDetails - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - :ivar environment_state: Publishing state of the environment setting - Possible values are Creating, Created, Failed - :vartype environment_state: str - :ivar total_usage: How long the environment has been used by a lab user - :vartype total_usage: timedelta - :ivar password_last_reset: When the password was last reset on the - environment. - :vartype password_last_reset: datetime - """ - - _validation = { - 'name': {'readonly': True}, - 'description': {'readonly': True}, - 'id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'virtual_machine_details': {'readonly': True}, - 'latest_operation_result': {'readonly': True}, - 'environment_state': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'password_last_reset': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'virtual_machine_details': {'key': 'virtualMachineDetails', 'type': 'VirtualMachineDetails'}, - 'latest_operation_result': {'key': 'latestOperationResult', 'type': 'LatestOperationResult'}, - 'environment_state': {'key': 'environmentState', 'type': 'str'}, - 'total_usage': {'key': 'totalUsage', 'type': 'duration'}, - 'password_last_reset': {'key': 'passwordLastReset', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs) -> None: - super(EnvironmentDetails, self).__init__(**kwargs) - self.name = None - self.description = None - self.id = None - self.provisioning_state = None - self.virtual_machine_details = None - self.latest_operation_result = None - self.environment_state = None - self.total_usage = None - self.password_last_reset = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment.py deleted file mode 100644 index 49ea0c34b195..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentFragment(Resource): - """Represents an environment instance. - - 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 resource_sets: The set of a VM and the setting id it was created - for - :type resource_sets: ~azure.mgmt.labservices.models.ResourceSetFragment - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSetFragment'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnvironmentFragment, self).__init__(**kwargs) - self.resource_sets = kwargs.get('resource_sets', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment_py3.py deleted file mode 100644 index 42786e4c0662..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_fragment_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentFragment(Resource): - """Represents an environment instance. - - 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 resource_sets: The set of a VM and the setting id it was created - for - :type resource_sets: ~azure.mgmt.labservices.models.ResourceSetFragment - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSetFragment'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, resource_sets=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(EnvironmentFragment, self).__init__(location=location, tags=tags, **kwargs) - self.resource_sets = resource_sets - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload.py deleted file mode 100644 index 863d2103fcc0..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload.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 EnvironmentOperationsPayload(Model): - """Represents payload for any Environment operations like get, start, stop, - connect. - - All required parameters must be populated in order to send to Azure. - - :param environment_id: Required. The resourceId of the environment - :type environment_id: str - """ - - _validation = { - 'environment_id': {'required': True}, - } - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnvironmentOperationsPayload, self).__init__(**kwargs) - self.environment_id = kwargs.get('environment_id', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload_py3.py deleted file mode 100644 index 30b0c38f6da2..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_operations_payload_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 EnvironmentOperationsPayload(Model): - """Represents payload for any Environment operations like get, start, stop, - connect. - - All required parameters must be populated in order to send to Azure. - - :param environment_id: Required. The resourceId of the environment - :type environment_id: str - """ - - _validation = { - 'environment_id': {'required': True}, - } - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - } - - def __init__(self, *, environment_id: str, **kwargs) -> None: - super(EnvironmentOperationsPayload, self).__init__(**kwargs) - self.environment_id = environment_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_paged.py deleted file mode 100644 index af729b0d945c..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/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 EnvironmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`Environment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Environment]'} - } - - def __init__(self, *args, **kwargs): - - super(EnvironmentPaged, self).__init__(*args, **kwargs) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_py3.py deleted file mode 100644 index 0546ef4e9c66..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_py3.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 Environment(Resource): - """Represents an environment instance. - - 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 resource_sets: The set of a VM and the setting id it was created - for - :type resource_sets: ~azure.mgmt.labservices.models.ResourceSet - :ivar claimed_by_user_object_id: The AAD object Id of the user who has - claimed the environment - :vartype claimed_by_user_object_id: str - :ivar claimed_by_user_principal_id: The user principal Id of the user who - has claimed the environment - :vartype claimed_by_user_principal_id: str - :ivar claimed_by_user_name: The name or email address of the user who has - claimed the environment - :vartype claimed_by_user_name: str - :ivar is_claimed: Is the environment claimed or not - :vartype is_claimed: bool - :ivar last_known_power_state: Last known power state of the environment - :vartype last_known_power_state: str - :ivar network_interface: Network details of the environment - :vartype network_interface: - ~azure.mgmt.labservices.models.NetworkInterface - :ivar total_usage: How long the environment has been used by a lab user - :vartype total_usage: timedelta - :ivar password_last_reset: When the password was last reset on the - environment. - :vartype password_last_reset: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'claimed_by_user_object_id': {'readonly': True}, - 'claimed_by_user_principal_id': {'readonly': True}, - 'claimed_by_user_name': {'readonly': True}, - 'is_claimed': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - 'network_interface': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'password_last_reset': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'resource_sets': {'key': 'properties.resourceSets', 'type': 'ResourceSet'}, - 'claimed_by_user_object_id': {'key': 'properties.claimedByUserObjectId', 'type': 'str'}, - 'claimed_by_user_principal_id': {'key': 'properties.claimedByUserPrincipalId', 'type': 'str'}, - 'claimed_by_user_name': {'key': 'properties.claimedByUserName', 'type': 'str'}, - 'is_claimed': {'key': 'properties.isClaimed', 'type': 'bool'}, - 'last_known_power_state': {'key': 'properties.lastKnownPowerState', 'type': 'str'}, - 'network_interface': {'key': 'properties.networkInterface', 'type': 'NetworkInterface'}, - 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, - 'password_last_reset': {'key': 'properties.passwordLastReset', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, location: str=None, tags=None, resource_sets=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(Environment, self).__init__(location=location, tags=tags, **kwargs) - self.resource_sets = resource_sets - self.claimed_by_user_object_id = None - self.claimed_by_user_principal_id = None - self.claimed_by_user_name = None - self.is_claimed = None - self.last_known_power_state = None - self.network_interface = None - self.total_usage = None - self.password_last_reset = None - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting.py deleted file mode 100644 index 4707f0531a14..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSetting(Resource): - """Represents settings of an environment, from which environment instances - would be created. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 publishing_state: Describes the readiness of this environment - setting. Possible values include: 'Draft', 'Publishing', 'Published', - 'PublishFailed', 'Scaling' - :vartype publishing_state: str or - ~azure.mgmt.labservices.models.PublishingState - :param configuration_state: Describes the user's progress in configuring - their environment setting. Possible values include: 'NotApplicable', - 'Completed' - :type configuration_state: str or - ~azure.mgmt.labservices.models.ConfigurationState - :param description: Describes the environment and its resource settings - :type description: str - :param title: Brief title describing the environment and its resource - settings - :type title: str - :param resource_settings: Required. The resource specific settings - :type resource_settings: ~azure.mgmt.labservices.models.ResourceSettings - :ivar last_changed: Time when the template VM was last changed. - :vartype last_changed: datetime - :ivar last_published: Time when the template VM was last sent for - publishing. - :vartype last_published: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'publishing_state': {'readonly': True}, - 'resource_settings': {'required': True}, - 'last_changed': {'readonly': True}, - 'last_published': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'publishing_state': {'key': 'properties.publishingState', 'type': 'str'}, - 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettings'}, - 'last_changed': {'key': 'properties.lastChanged', 'type': 'iso-8601'}, - 'last_published': {'key': 'properties.lastPublished', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(EnvironmentSetting, self).__init__(**kwargs) - self.publishing_state = None - self.configuration_state = kwargs.get('configuration_state', None) - self.description = kwargs.get('description', None) - self.title = kwargs.get('title', None) - self.resource_settings = kwargs.get('resource_settings', None) - self.last_changed = None - self.last_published = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters.py deleted file mode 100644 index 64af9f7e7006..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters.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 EnvironmentSettingCreationParameters(Model): - """Settings related to creating an environment setting. - - All required parameters must be populated in order to send to Azure. - - :param resource_setting_creation_parameters: Required. The resource - specific settings - :type resource_setting_creation_parameters: - ~azure.mgmt.labservices.models.ResourceSettingCreationParameters - """ - - _validation = { - 'resource_setting_creation_parameters': {'required': True}, - } - - _attribute_map = { - 'resource_setting_creation_parameters': {'key': 'resourceSettingCreationParameters', 'type': 'ResourceSettingCreationParameters'}, - } - - def __init__(self, **kwargs): - super(EnvironmentSettingCreationParameters, self).__init__(**kwargs) - self.resource_setting_creation_parameters = kwargs.get('resource_setting_creation_parameters', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters_py3.py deleted file mode 100644 index 27e58933f77b..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_creation_parameters_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 EnvironmentSettingCreationParameters(Model): - """Settings related to creating an environment setting. - - All required parameters must be populated in order to send to Azure. - - :param resource_setting_creation_parameters: Required. The resource - specific settings - :type resource_setting_creation_parameters: - ~azure.mgmt.labservices.models.ResourceSettingCreationParameters - """ - - _validation = { - 'resource_setting_creation_parameters': {'required': True}, - } - - _attribute_map = { - 'resource_setting_creation_parameters': {'key': 'resourceSettingCreationParameters', 'type': 'ResourceSettingCreationParameters'}, - } - - def __init__(self, *, resource_setting_creation_parameters, **kwargs) -> None: - super(EnvironmentSettingCreationParameters, self).__init__(**kwargs) - self.resource_setting_creation_parameters = resource_setting_creation_parameters diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment.py deleted file mode 100644 index 4c0d874ef2e2..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSettingFragment(Resource): - """Represents settings of an environment, from which environment instances - would be created. - - 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 configuration_state: Describes the user's progress in configuring - their environment setting. Possible values include: 'NotApplicable', - 'Completed' - :type configuration_state: str or - ~azure.mgmt.labservices.models.ConfigurationState - :param description: Describes the environment and its resource settings - :type description: str - :param title: Brief title describing the environment and its resource - settings - :type title: str - :param resource_settings: The resource specific settings - :type resource_settings: - ~azure.mgmt.labservices.models.ResourceSettingsFragment - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettingsFragment'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnvironmentSettingFragment, self).__init__(**kwargs) - self.configuration_state = kwargs.get('configuration_state', None) - self.description = kwargs.get('description', None) - self.title = kwargs.get('title', None) - self.resource_settings = kwargs.get('resource_settings', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment_py3.py deleted file mode 100644 index c7d3c076bda1..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSettingFragment(Resource): - """Represents settings of an environment, from which environment instances - would be created. - - 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 configuration_state: Describes the user's progress in configuring - their environment setting. Possible values include: 'NotApplicable', - 'Completed' - :type configuration_state: str or - ~azure.mgmt.labservices.models.ConfigurationState - :param description: Describes the environment and its resource settings - :type description: str - :param title: Brief title describing the environment and its resource - settings - :type title: str - :param resource_settings: The resource specific settings - :type resource_settings: - ~azure.mgmt.labservices.models.ResourceSettingsFragment - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettingsFragment'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, configuration_state=None, description: str=None, title: str=None, resource_settings=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(EnvironmentSettingFragment, self).__init__(location=location, tags=tags, **kwargs) - self.configuration_state = configuration_state - self.description = description - self.title = title - self.resource_settings = resource_settings - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_paged.py deleted file mode 100644 index 3bd929e6f0a6..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_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 EnvironmentSettingPaged(Paged): - """ - A paging container for iterating over a list of :class:`EnvironmentSetting ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[EnvironmentSetting]'} - } - - def __init__(self, *args, **kwargs): - - super(EnvironmentSettingPaged, self).__init__(*args, **kwargs) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_py3.py deleted file mode 100644 index 13dbc93757a5..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_py3.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSetting(Resource): - """Represents settings of an environment, from which environment instances - would be created. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 publishing_state: Describes the readiness of this environment - setting. Possible values include: 'Draft', 'Publishing', 'Published', - 'PublishFailed', 'Scaling' - :vartype publishing_state: str or - ~azure.mgmt.labservices.models.PublishingState - :param configuration_state: Describes the user's progress in configuring - their environment setting. Possible values include: 'NotApplicable', - 'Completed' - :type configuration_state: str or - ~azure.mgmt.labservices.models.ConfigurationState - :param description: Describes the environment and its resource settings - :type description: str - :param title: Brief title describing the environment and its resource - settings - :type title: str - :param resource_settings: Required. The resource specific settings - :type resource_settings: ~azure.mgmt.labservices.models.ResourceSettings - :ivar last_changed: Time when the template VM was last changed. - :vartype last_changed: datetime - :ivar last_published: Time when the template VM was last sent for - publishing. - :vartype last_published: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'publishing_state': {'readonly': True}, - 'resource_settings': {'required': True}, - 'last_changed': {'readonly': True}, - 'last_published': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'publishing_state': {'key': 'properties.publishingState', 'type': 'str'}, - 'configuration_state': {'key': 'properties.configurationState', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'title': {'key': 'properties.title', 'type': 'str'}, - 'resource_settings': {'key': 'properties.resourceSettings', 'type': 'ResourceSettings'}, - 'last_changed': {'key': 'properties.lastChanged', 'type': 'iso-8601'}, - 'last_published': {'key': 'properties.lastPublished', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, resource_settings, location: str=None, tags=None, configuration_state=None, description: str=None, title: str=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(EnvironmentSetting, self).__init__(location=location, tags=tags, **kwargs) - self.publishing_state = None - self.configuration_state = configuration_state - self.description = description - self.title = title - self.resource_settings = resource_settings - self.last_changed = None - self.last_published = None - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size.py deleted file mode 100644 index f6df57028796..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSize(Model): - """Represents a size category supported by this Lab Account (small, medium or - large). - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: The size category. Possible values include: 'Basic', - 'Standard', 'Performance' - :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param vm_sizes: Represents a set of compute sizes that can serve this - given size type - :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfo] - :ivar max_price: The pay-as-you-go dollar price per hour this size will - cost. It does not include discounts and may not reflect the actual price - the size will cost. This is the maximum price of all prices within this - tier. - :vartype max_price: decimal.Decimal - :ivar min_number_of_cores: The number of cores a VM of this size has. This - is the minimum number of cores within this tier. - :vartype min_number_of_cores: int - :ivar min_memory: The amount of memory available (in GB). This is the - minimum amount of memory within this tier. - :vartype min_memory: float - """ - - _validation = { - 'max_price': {'readonly': True}, - 'min_number_of_cores': {'readonly': True}, - 'min_memory': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfo]'}, - 'max_price': {'key': 'maxPrice', 'type': 'decimal'}, - 'min_number_of_cores': {'key': 'minNumberOfCores', 'type': 'int'}, - 'min_memory': {'key': 'minMemory', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(EnvironmentSize, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.vm_sizes = kwargs.get('vm_sizes', None) - self.max_price = None - self.min_number_of_cores = None - self.min_memory = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment.py deleted file mode 100644 index 2835e0451103..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_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 msrest.serialization import Model - - -class EnvironmentSizeFragment(Model): - """Represents a size category supported by this Lab Account (small, medium or - large). - - :param name: The size category. Possible values include: 'Basic', - 'Standard', 'Performance' - :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param vm_sizes: Represents a set of compute sizes that can serve this - given size type - :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfoFragment] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfoFragment]'}, - } - - def __init__(self, **kwargs): - super(EnvironmentSizeFragment, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.vm_sizes = kwargs.get('vm_sizes', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_fragment_py3.py deleted file mode 100644 index 766bc95f2f4e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_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 msrest.serialization import Model - - -class EnvironmentSizeFragment(Model): - """Represents a size category supported by this Lab Account (small, medium or - large). - - :param name: The size category. Possible values include: 'Basic', - 'Standard', 'Performance' - :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param vm_sizes: Represents a set of compute sizes that can serve this - given size type - :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfoFragment] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfoFragment]'}, - } - - def __init__(self, *, name=None, vm_sizes=None, **kwargs) -> None: - super(EnvironmentSizeFragment, self).__init__(**kwargs) - self.name = name - self.vm_sizes = vm_sizes diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_py3.py deleted file mode 100644 index 9fe59ae52aa4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_size_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 EnvironmentSize(Model): - """Represents a size category supported by this Lab Account (small, medium or - large). - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: The size category. Possible values include: 'Basic', - 'Standard', 'Performance' - :type name: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param vm_sizes: Represents a set of compute sizes that can serve this - given size type - :type vm_sizes: list[~azure.mgmt.labservices.models.SizeInfo] - :ivar max_price: The pay-as-you-go dollar price per hour this size will - cost. It does not include discounts and may not reflect the actual price - the size will cost. This is the maximum price of all prices within this - tier. - :vartype max_price: decimal.Decimal - :ivar min_number_of_cores: The number of cores a VM of this size has. This - is the minimum number of cores within this tier. - :vartype min_number_of_cores: int - :ivar min_memory: The amount of memory available (in GB). This is the - minimum amount of memory within this tier. - :vartype min_memory: float - """ - - _validation = { - 'max_price': {'readonly': True}, - 'min_number_of_cores': {'readonly': True}, - 'min_memory': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '[SizeInfo]'}, - 'max_price': {'key': 'maxPrice', 'type': 'decimal'}, - 'min_number_of_cores': {'key': 'minNumberOfCores', 'type': 'int'}, - 'min_memory': {'key': 'minMemory', 'type': 'float'}, - } - - def __init__(self, *, name=None, vm_sizes=None, **kwargs) -> None: - super(EnvironmentSize, self).__init__(**kwargs) - self.name = name - self.vm_sizes = vm_sizes - self.max_price = None - self.min_number_of_cores = None - self.min_memory = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image.py deleted file mode 100644 index 0ba1e179ecda..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """Represents an image from the Azure Marketplace. - - 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 author: The author of the gallery image. - :vartype author: str - :ivar created_date: The creation date of the gallery image. - :vartype created_date: datetime - :ivar description: The description of the gallery image. - :vartype description: str - :ivar image_reference: The image reference of the gallery image. - :vartype image_reference: - ~azure.mgmt.labservices.models.GalleryImageReference - :ivar icon: The icon of the gallery image. - :vartype icon: str - :param is_enabled: Indicates whether this gallery image is enabled. - :type is_enabled: bool - :param is_override: Indicates whether this gallery has been overridden for - this lab account - :type is_override: bool - :ivar plan_id: The third party plan that applies to this image - :vartype plan_id: str - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'author': {'readonly': True}, - 'created_date': {'readonly': True}, - 'description': {'readonly': True}, - 'image_reference': {'readonly': True}, - 'icon': {'readonly': True}, - 'plan_id': {'readonly': True}, - 'latest_operation_result': {'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'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, - 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(GalleryImage, self).__init__(**kwargs) - self.author = None - self.created_date = None - self.description = None - self.image_reference = None - self.icon = None - self.is_enabled = kwargs.get('is_enabled', None) - self.is_override = kwargs.get('is_override', None) - self.plan_id = None - self.is_plan_authorized = kwargs.get('is_plan_authorized', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment.py deleted file mode 100644 index 2d41f4c4edf5..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_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 .resource import Resource - - -class GalleryImageFragment(Resource): - """Represents an image from the Azure Marketplace. - - 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 is_enabled: Indicates whether this gallery image is enabled. - :type is_enabled: bool - :param is_override: Indicates whether this gallery has been overridden for - this lab account - :type is_override: bool - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, - 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, - '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(GalleryImageFragment, self).__init__(**kwargs) - self.is_enabled = kwargs.get('is_enabled', None) - self.is_override = kwargs.get('is_override', None) - self.is_plan_authorized = kwargs.get('is_plan_authorized', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_fragment_py3.py deleted file mode 100644 index a58ba7b04c72..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_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 .resource_py3 import Resource - - -class GalleryImageFragment(Resource): - """Represents an image from the Azure Marketplace. - - 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 is_enabled: Indicates whether this gallery image is enabled. - :type is_enabled: bool - :param is_override: Indicates whether this gallery has been overridden for - this lab account - :type is_override: bool - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, - 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, - '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, is_enabled: bool=None, is_override: bool=None, is_plan_authorized: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(GalleryImageFragment, self).__init__(location=location, tags=tags, **kwargs) - self.is_enabled = is_enabled - self.is_override = is_override - self.is_plan_authorized = is_plan_authorized - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_paged.py deleted file mode 100644 index 11d7722be5cc..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_py3.py deleted file mode 100644 index 9af22442c2d1..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_py3.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """Represents an image from the Azure Marketplace. - - 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 author: The author of the gallery image. - :vartype author: str - :ivar created_date: The creation date of the gallery image. - :vartype created_date: datetime - :ivar description: The description of the gallery image. - :vartype description: str - :ivar image_reference: The image reference of the gallery image. - :vartype image_reference: - ~azure.mgmt.labservices.models.GalleryImageReference - :ivar icon: The icon of the gallery image. - :vartype icon: str - :param is_enabled: Indicates whether this gallery image is enabled. - :type is_enabled: bool - :param is_override: Indicates whether this gallery has been overridden for - this lab account - :type is_override: bool - :ivar plan_id: The third party plan that applies to this image - :vartype plan_id: str - :param is_plan_authorized: Indicates if the plan has been authorized for - programmatic deployment. - :type is_plan_authorized: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'author': {'readonly': True}, - 'created_date': {'readonly': True}, - 'description': {'readonly': True}, - 'image_reference': {'readonly': True}, - 'icon': {'readonly': True}, - 'plan_id': {'readonly': True}, - 'latest_operation_result': {'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'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, - 'is_override': {'key': 'properties.isOverride', 'type': 'bool'}, - 'plan_id': {'key': 'properties.planId', 'type': 'str'}, - 'is_plan_authorized': {'key': 'properties.isPlanAuthorized', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, location: str=None, tags=None, is_enabled: bool=None, is_override: bool=None, is_plan_authorized: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(GalleryImage, self).__init__(location=location, tags=tags, **kwargs) - self.author = None - self.created_date = None - self.description = None - self.image_reference = None - self.icon = None - self.is_enabled = is_enabled - self.is_override = is_override - self.plan_id = None - self.is_plan_authorized = is_plan_authorized - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference.py deleted file mode 100644 index c896911316fd..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment.py deleted file mode 100644 index 6bd266dbfbd8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_fragment_py3.py deleted file mode 100644 index 3ebbfa4662f7..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/gallery_image_reference_py3.py deleted file mode 100644 index 2541dc5b63e9..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response.py deleted file mode 100644 index 0e722691b6f9..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response.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 GetEnvironmentResponse(Model): - """Represents the environments details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar environment: Details of the environment - :vartype environment: ~azure.mgmt.labservices.models.EnvironmentDetails - """ - - _validation = { - 'environment': {'readonly': True}, - } - - _attribute_map = { - 'environment': {'key': 'environment', 'type': 'EnvironmentDetails'}, - } - - def __init__(self, **kwargs): - super(GetEnvironmentResponse, self).__init__(**kwargs) - self.environment = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response_py3.py deleted file mode 100644 index 63c18c5eee2e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_environment_response_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 GetEnvironmentResponse(Model): - """Represents the environments details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar environment: Details of the environment - :vartype environment: ~azure.mgmt.labservices.models.EnvironmentDetails - """ - - _validation = { - 'environment': {'readonly': True}, - } - - _attribute_map = { - 'environment': {'key': 'environment', 'type': 'EnvironmentDetails'}, - } - - def __init__(self, **kwargs) -> None: - super(GetEnvironmentResponse, self).__init__(**kwargs) - self.environment = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response.py deleted file mode 100644 index f710508ef545..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response.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 GetPersonalPreferencesResponse(Model): - """Represents the PersonalPreferences for the user. - - :param id: Id to be used by the cache orchestrator - :type id: str - :param favorite_lab_resource_ids: Array of favorite lab resource ids - :type favorite_lab_resource_ids: list[str] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'favorite_lab_resource_ids': {'key': 'favoriteLabResourceIds', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(GetPersonalPreferencesResponse, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.favorite_lab_resource_ids = kwargs.get('favorite_lab_resource_ids', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response_py3.py deleted file mode 100644 index a3beb9def352..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_personal_preferences_response_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 GetPersonalPreferencesResponse(Model): - """Represents the PersonalPreferences for the user. - - :param id: Id to be used by the cache orchestrator - :type id: str - :param favorite_lab_resource_ids: Array of favorite lab resource ids - :type favorite_lab_resource_ids: list[str] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'favorite_lab_resource_ids': {'key': 'favoriteLabResourceIds', 'type': '[str]'}, - } - - def __init__(self, *, id: str=None, favorite_lab_resource_ids=None, **kwargs) -> None: - super(GetPersonalPreferencesResponse, self).__init__(**kwargs) - self.id = id - self.favorite_lab_resource_ids = favorite_lab_resource_ids diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response.py deleted file mode 100644 index 8d69b07b19a4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response.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 GetRegionalAvailabilityResponse(Model): - """The response model from the GetRegionalAvailability action. - - :param regional_availability: Availability information for different size - categories per region - :type regional_availability: - list[~azure.mgmt.labservices.models.RegionalAvailability] - """ - - _attribute_map = { - 'regional_availability': {'key': 'regionalAvailability', 'type': '[RegionalAvailability]'}, - } - - def __init__(self, **kwargs): - super(GetRegionalAvailabilityResponse, self).__init__(**kwargs) - self.regional_availability = kwargs.get('regional_availability', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response_py3.py deleted file mode 100644 index 06aaa2a30358..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/get_regional_availability_response_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 GetRegionalAvailabilityResponse(Model): - """The response model from the GetRegionalAvailability action. - - :param regional_availability: Availability information for different size - categories per region - :type regional_availability: - list[~azure.mgmt.labservices.models.RegionalAvailability] - """ - - _attribute_map = { - 'regional_availability': {'key': 'regionalAvailability', 'type': '[RegionalAvailability]'}, - } - - def __init__(self, *, regional_availability=None, **kwargs) -> None: - super(GetRegionalAvailabilityResponse, self).__init__(**kwargs) - self.regional_availability = regional_availability diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab.py deleted file mode 100644 index a9cc33b0ae91..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """Represents 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] - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - :ivar user_quota: Maximum value MaxUsersInLab can be set to, as specified - by the service - :vartype user_quota: int - :ivar invitation_code: Invitation code that users can use to join a lab. - :vartype invitation_code: str - :ivar created_by_object_id: Object id of the user that created the lab. - :vartype created_by_object_id: str - :param usage_quota: Maximum duration a user can use an environment for in - the lab. - :type usage_quota: timedelta - :param user_access_mode: Lab user access mode (open to all vs. restricted - to those listed on the lab). Possible values include: 'Restricted', 'Open' - :type user_access_mode: str or - ~azure.mgmt.labservices.models.LabUserAccessMode - :ivar created_by_user_principal_name: Lab creator name - :vartype created_by_user_principal_name: str - :ivar created_date: Creation date for the lab - :vartype created_date: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'user_quota': {'readonly': True}, - 'invitation_code': {'readonly': True}, - 'created_by_object_id': {'readonly': True}, - 'created_by_user_principal_name': {'readonly': True}, - 'created_date': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, - 'user_quota': {'key': 'properties.userQuota', 'type': 'int'}, - 'invitation_code': {'key': 'properties.invitationCode', 'type': 'str'}, - 'created_by_object_id': {'key': 'properties.createdByObjectId', 'type': 'str'}, - 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, - 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, - 'created_by_user_principal_name': {'key': 'properties.createdByUserPrincipalName', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(Lab, self).__init__(**kwargs) - self.max_users_in_lab = kwargs.get('max_users_in_lab', None) - self.user_quota = None - self.invitation_code = None - self.created_by_object_id = None - self.usage_quota = kwargs.get('usage_quota', None) - self.user_access_mode = kwargs.get('user_access_mode', None) - self.created_by_user_principal_name = None - self.created_date = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account.py deleted file mode 100644 index 537d5c688c09..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 LabAccount(Resource): - """Represents a lab account. - - 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 size_configuration: Represents the size configuration under the lab - account - :vartype size_configuration: - ~azure.mgmt.labservices.models.SizeConfigurationProperties - :param enabled_region_selection: Represents if region selection is enabled - :type enabled_region_selection: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'size_configuration': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'size_configuration': {'key': 'properties.sizeConfiguration', 'type': 'SizeConfigurationProperties'}, - 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(LabAccount, self).__init__(**kwargs) - self.size_configuration = None - self.enabled_region_selection = kwargs.get('enabled_region_selection', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment.py deleted file mode 100644 index 0e3a2fb1fa18..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 LabAccountFragment(Resource): - """Represents a lab account. - - 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 enabled_region_selection: Represents if region selection is enabled - :type enabled_region_selection: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabAccountFragment, self).__init__(**kwargs) - self.enabled_region_selection = kwargs.get('enabled_region_selection', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment_py3.py deleted file mode 100644 index 1b756767f9ae..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 LabAccountFragment(Resource): - """Represents a lab account. - - 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 enabled_region_selection: Represents if region selection is enabled - :type enabled_region_selection: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, enabled_region_selection: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(LabAccountFragment, self).__init__(location=location, tags=tags, **kwargs) - self.enabled_region_selection = enabled_region_selection - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_paged.py deleted file mode 100644 index 7afe303f6608..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_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 LabAccountPaged(Paged): - """ - A paging container for iterating over a list of :class:`LabAccount ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LabAccount]'} - } - - def __init__(self, *args, **kwargs): - - super(LabAccountPaged, self).__init__(*args, **kwargs) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_py3.py deleted file mode 100644 index f992a42065bc..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 LabAccount(Resource): - """Represents a lab account. - - 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 size_configuration: Represents the size configuration under the lab - account - :vartype size_configuration: - ~azure.mgmt.labservices.models.SizeConfigurationProperties - :param enabled_region_selection: Represents if region selection is enabled - :type enabled_region_selection: bool - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'size_configuration': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'size_configuration': {'key': 'properties.sizeConfiguration', 'type': 'SizeConfigurationProperties'}, - 'enabled_region_selection': {'key': 'properties.enabledRegionSelection', 'type': 'bool'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, location: str=None, tags=None, enabled_region_selection: bool=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(LabAccount, self).__init__(location=location, tags=tags, **kwargs) - self.size_configuration = None - self.enabled_region_selection = enabled_region_selection - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters.py deleted file mode 100644 index 7280ce9fa06b..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_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 LabCreationParameters(Model): - """Settings related to creating a lab. - - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - """ - - _attribute_map = { - 'max_users_in_lab': {'key': 'maxUsersInLab', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(LabCreationParameters, self).__init__(**kwargs) - self.max_users_in_lab = kwargs.get('max_users_in_lab', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_creation_parameters_py3.py deleted file mode 100644 index 577bce48c8ef..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_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 LabCreationParameters(Model): - """Settings related to creating a lab. - - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - """ - - _attribute_map = { - 'max_users_in_lab': {'key': 'maxUsersInLab', 'type': 'int'}, - } - - def __init__(self, *, max_users_in_lab: int=None, **kwargs) -> None: - super(LabCreationParameters, self).__init__(**kwargs) - self.max_users_in_lab = max_users_in_lab diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details.py deleted file mode 100644 index 54fde666c07e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details.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 LabDetails(Model): - """This represents the details about a lab that the User is in, and its state. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Name of the lab - :type name: str - :param provisioning_state: The provisioning state of the lab. - :type provisioning_state: str - :param id: The Id of the lab. - :type id: str - :ivar usage_quota: The maximum duration a user can use a VM in this lab. - :vartype usage_quota: timedelta - """ - - _validation = { - 'usage_quota': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'usage_quota': {'key': 'usageQuota', 'type': 'duration'}, - } - - def __init__(self, **kwargs): - super(LabDetails, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.id = kwargs.get('id', None) - self.usage_quota = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details_py3.py deleted file mode 100644 index b8b3fb7f8318..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_details_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 LabDetails(Model): - """This represents the details about a lab that the User is in, and its state. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Name of the lab - :type name: str - :param provisioning_state: The provisioning state of the lab. - :type provisioning_state: str - :param id: The Id of the lab. - :type id: str - :ivar usage_quota: The maximum duration a user can use a VM in this lab. - :vartype usage_quota: timedelta - """ - - _validation = { - 'usage_quota': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'usage_quota': {'key': 'usageQuota', 'type': 'duration'}, - } - - def __init__(self, *, name: str=None, provisioning_state: str=None, id: str=None, **kwargs) -> None: - super(LabDetails, self).__init__(**kwargs) - self.name = name - self.provisioning_state = provisioning_state - self.id = id - self.usage_quota = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment.py deleted file mode 100644 index 9b63fe6ca330..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment.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 LabFragment(Resource): - """Represents 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] - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - :param usage_quota: Maximum duration a user can use an environment for in - the lab. - :type usage_quota: timedelta - :param user_access_mode: Lab user access mode (open to all vs. restricted - to those listed on the lab). Possible values include: 'Restricted', 'Open' - :type user_access_mode: str or - ~azure.mgmt.labservices.models.LabUserAccessMode - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, - 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, - 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LabFragment, self).__init__(**kwargs) - self.max_users_in_lab = kwargs.get('max_users_in_lab', None) - self.usage_quota = kwargs.get('usage_quota', None) - self.user_access_mode = kwargs.get('user_access_mode', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment_py3.py deleted file mode 100644 index 5bb9ec205733..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_fragment_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 LabFragment(Resource): - """Represents 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] - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - :param usage_quota: Maximum duration a user can use an environment for in - the lab. - :type usage_quota: timedelta - :param user_access_mode: Lab user access mode (open to all vs. restricted - to those listed on the lab). Possible values include: 'Restricted', 'Open' - :type user_access_mode: str or - ~azure.mgmt.labservices.models.LabUserAccessMode - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, - 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, - 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, max_users_in_lab: int=None, usage_quota=None, user_access_mode=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(LabFragment, self).__init__(location=location, tags=tags, **kwargs) - self.max_users_in_lab = max_users_in_lab - self.usage_quota = usage_quota - self.user_access_mode = user_access_mode - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_paged.py deleted file mode 100644 index d95bfb5c5d5e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_py3.py deleted file mode 100644 index 0905de316eeb..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_py3.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """Represents 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] - :param max_users_in_lab: Maximum number of users allowed in the lab. - :type max_users_in_lab: int - :ivar user_quota: Maximum value MaxUsersInLab can be set to, as specified - by the service - :vartype user_quota: int - :ivar invitation_code: Invitation code that users can use to join a lab. - :vartype invitation_code: str - :ivar created_by_object_id: Object id of the user that created the lab. - :vartype created_by_object_id: str - :param usage_quota: Maximum duration a user can use an environment for in - the lab. - :type usage_quota: timedelta - :param user_access_mode: Lab user access mode (open to all vs. restricted - to those listed on the lab). Possible values include: 'Restricted', 'Open' - :type user_access_mode: str or - ~azure.mgmt.labservices.models.LabUserAccessMode - :ivar created_by_user_principal_name: Lab creator name - :vartype created_by_user_principal_name: str - :ivar created_date: Creation date for the lab - :vartype created_date: datetime - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'user_quota': {'readonly': True}, - 'invitation_code': {'readonly': True}, - 'created_by_object_id': {'readonly': True}, - 'created_by_user_principal_name': {'readonly': True}, - 'created_date': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'max_users_in_lab': {'key': 'properties.maxUsersInLab', 'type': 'int'}, - 'user_quota': {'key': 'properties.userQuota', 'type': 'int'}, - 'invitation_code': {'key': 'properties.invitationCode', 'type': 'str'}, - 'created_by_object_id': {'key': 'properties.createdByObjectId', 'type': 'str'}, - 'usage_quota': {'key': 'properties.usageQuota', 'type': 'duration'}, - 'user_access_mode': {'key': 'properties.userAccessMode', 'type': 'str'}, - 'created_by_user_principal_name': {'key': 'properties.createdByUserPrincipalName', 'type': 'str'}, - 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, location: str=None, tags=None, max_users_in_lab: int=None, usage_quota=None, user_access_mode=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(Lab, self).__init__(location=location, tags=tags, **kwargs) - self.max_users_in_lab = max_users_in_lab - self.user_quota = None - self.invitation_code = None - self.created_by_object_id = None - self.usage_quota = usage_quota - self.user_access_mode = user_access_mode - self.created_by_user_principal_name = None - self.created_date = None - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result.py deleted file mode 100644 index dfc12fbd0cfc..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result.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 msrest.serialization import Model - - -class LatestOperationResult(Model): - """Details of the status of an operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The current status of the operation. - :vartype status: str - :ivar error_code: Error code on failure. - :vartype error_code: str - :ivar error_message: The error message. - :vartype error_message: str - :ivar request_uri: Request URI of the operation. - :vartype request_uri: str - :ivar http_method: The HttpMethod - PUT/POST/DELETE for the operation. - :vartype http_method: str - :ivar operation_url: The URL to use to check long-running operation status - :vartype operation_url: str - """ - - _validation = { - 'status': {'readonly': True}, - 'error_code': {'readonly': True}, - 'error_message': {'readonly': True}, - 'request_uri': {'readonly': True}, - 'http_method': {'readonly': True}, - 'operation_url': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'request_uri': {'key': 'requestUri', 'type': 'str'}, - 'http_method': {'key': 'httpMethod', 'type': 'str'}, - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LatestOperationResult, self).__init__(**kwargs) - self.status = None - self.error_code = None - self.error_message = None - self.request_uri = None - self.http_method = None - self.operation_url = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result_py3.py deleted file mode 100644 index 55a3aa1f0a64..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/latest_operation_result_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 msrest.serialization import Model - - -class LatestOperationResult(Model): - """Details of the status of an operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The current status of the operation. - :vartype status: str - :ivar error_code: Error code on failure. - :vartype error_code: str - :ivar error_message: The error message. - :vartype error_message: str - :ivar request_uri: Request URI of the operation. - :vartype request_uri: str - :ivar http_method: The HttpMethod - PUT/POST/DELETE for the operation. - :vartype http_method: str - :ivar operation_url: The URL to use to check long-running operation status - :vartype operation_url: str - """ - - _validation = { - 'status': {'readonly': True}, - 'error_code': {'readonly': True}, - 'error_message': {'readonly': True}, - 'request_uri': {'readonly': True}, - 'http_method': {'readonly': True}, - 'operation_url': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'request_uri': {'key': 'requestUri', 'type': 'str'}, - 'http_method': {'key': 'httpMethod', 'type': 'str'}, - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(LatestOperationResult, self).__init__(**kwargs) - self.status = None - self.error_code = None - self.error_message = None - self.request_uri = None - self.http_method = None - self.operation_url = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload.py deleted file mode 100644 index 9101f0a5751a..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload.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 ListEnvironmentsPayload(Model): - """Represents the payload to list environments owned by a user. - - :param lab_id: The resource Id of the lab - :type lab_id: str - """ - - _attribute_map = { - 'lab_id': {'key': 'labId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ListEnvironmentsPayload, self).__init__(**kwargs) - self.lab_id = kwargs.get('lab_id', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload_py3.py deleted file mode 100644 index 5523518b2572..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_payload_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 ListEnvironmentsPayload(Model): - """Represents the payload to list environments owned by a user. - - :param lab_id: The resource Id of the lab - :type lab_id: str - """ - - _attribute_map = { - 'lab_id': {'key': 'labId', 'type': 'str'}, - } - - def __init__(self, *, lab_id: str=None, **kwargs) -> None: - super(ListEnvironmentsPayload, self).__init__(**kwargs) - self.lab_id = lab_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response.py deleted file mode 100644 index 9288daafc955..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response.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 ListEnvironmentsResponse(Model): - """Represents the list of environments owned by a user. - - :param environments: List of all the environments - :type environments: - list[~azure.mgmt.labservices.models.EnvironmentDetails] - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[EnvironmentDetails]'}, - } - - def __init__(self, **kwargs): - super(ListEnvironmentsResponse, self).__init__(**kwargs) - self.environments = kwargs.get('environments', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response_py3.py deleted file mode 100644 index c5e79f2220cd..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_environments_response_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 ListEnvironmentsResponse(Model): - """Represents the list of environments owned by a user. - - :param environments: List of all the environments - :type environments: - list[~azure.mgmt.labservices.models.EnvironmentDetails] - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[EnvironmentDetails]'}, - } - - def __init__(self, *, environments=None, **kwargs) -> None: - super(ListEnvironmentsResponse, self).__init__(**kwargs) - self.environments = environments diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response.py deleted file mode 100644 index 8bfeaab72b80..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_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 ListLabsResponse(Model): - """Lists the labs owned by a user. - - :param labs: List of all the labs - :type labs: list[~azure.mgmt.labservices.models.LabDetails] - """ - - _attribute_map = { - 'labs': {'key': 'labs', 'type': '[LabDetails]'}, - } - - def __init__(self, **kwargs): - super(ListLabsResponse, self).__init__(**kwargs) - self.labs = kwargs.get('labs', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_response_py3.py deleted file mode 100644 index e26d6f32a8d4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/list_labs_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 ListLabsResponse(Model): - """Lists the labs owned by a user. - - :param labs: List of all the labs - :type labs: list[~azure.mgmt.labservices.models.LabDetails] - """ - - _attribute_map = { - 'labs': {'key': 'labs', 'type': '[LabDetails]'}, - } - - def __init__(self, *, labs=None, **kwargs) -> None: - super(ListLabsResponse, self).__init__(**kwargs) - self.labs = labs diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface.py deleted file mode 100644 index e85b24980c9f..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 NetworkInterface(Model): - """Network details of the environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar private_ip_address: PrivateIp address of the Compute VM - :vartype private_ip_address: str - :ivar ssh_authority: Connection information for Linux - :vartype ssh_authority: str - :ivar rdp_authority: Connection information for Windows - :vartype rdp_authority: str - :ivar username: Username of the VM - :vartype username: str - """ - - _validation = { - 'private_ip_address': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'rdp_authority': {'readonly': True}, - 'username': {'readonly': True}, - } - - _attribute_map = { - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NetworkInterface, self).__init__(**kwargs) - self.private_ip_address = None - self.ssh_authority = None - self.rdp_authority = None - self.username = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface_py3.py deleted file mode 100644 index 1c39a57b6f5e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/network_interface_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 NetworkInterface(Model): - """Network details of the environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar private_ip_address: PrivateIp address of the Compute VM - :vartype private_ip_address: str - :ivar ssh_authority: Connection information for Linux - :vartype ssh_authority: str - :ivar rdp_authority: Connection information for Windows - :vartype rdp_authority: str - :ivar username: Username of the VM - :vartype username: str - """ - - _validation = { - 'private_ip_address': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'rdp_authority': {'readonly': True}, - 'username': {'readonly': True}, - } - - _attribute_map = { - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(NetworkInterface, self).__init__(**kwargs) - self.private_ip_address = None - self.ssh_authority = None - self.rdp_authority = None - self.username = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload.py deleted file mode 100644 index be790b18fc09..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload.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 OperationBatchStatusPayload(Model): - """Payload to get the status of an operation. - - All required parameters must be populated in order to send to Azure. - - :param urls: Required. The operation url of long running operation - :type urls: list[str] - """ - - _validation = { - 'urls': {'required': True}, - } - - _attribute_map = { - 'urls': {'key': 'urls', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(OperationBatchStatusPayload, self).__init__(**kwargs) - self.urls = kwargs.get('urls', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload_py3.py deleted file mode 100644 index 457e2b0eece5..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_payload_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 OperationBatchStatusPayload(Model): - """Payload to get the status of an operation. - - All required parameters must be populated in order to send to Azure. - - :param urls: Required. The operation url of long running operation - :type urls: list[str] - """ - - _validation = { - 'urls': {'required': True}, - } - - _attribute_map = { - 'urls': {'key': 'urls', 'type': '[str]'}, - } - - def __init__(self, *, urls, **kwargs) -> None: - super(OperationBatchStatusPayload, self).__init__(**kwargs) - self.urls = urls diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response.py deleted file mode 100644 index 39e507e334af..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response.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 OperationBatchStatusResponse(Model): - """Status Details of the long running operation for an environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar items: Gets a collection of items that contain the operation url and - status. - :vartype items: - list[~azure.mgmt.labservices.models.OperationBatchStatusResponseItem] - """ - - _validation = { - 'items': {'readonly': True}, - } - - _attribute_map = { - 'items': {'key': 'items', 'type': '[OperationBatchStatusResponseItem]'}, - } - - def __init__(self, **kwargs): - super(OperationBatchStatusResponse, self).__init__(**kwargs) - self.items = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item.py deleted file mode 100644 index 1e4ddbb6a238..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item.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 OperationBatchStatusResponseItem(Model): - """Represents the status of an operation that used the batch API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar operation_url: status of the long running operation for an - environment - :vartype operation_url: str - :ivar status: status of the long running operation for an environment - :vartype status: str - """ - - _validation = { - 'operation_url': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationBatchStatusResponseItem, self).__init__(**kwargs) - self.operation_url = None - self.status = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item_py3.py deleted file mode 100644 index 2c063e09aee0..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_item_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 OperationBatchStatusResponseItem(Model): - """Represents the status of an operation that used the batch API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar operation_url: status of the long running operation for an - environment - :vartype operation_url: str - :ivar status: status of the long running operation for an environment - :vartype status: str - """ - - _validation = { - 'operation_url': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationBatchStatusResponseItem, self).__init__(**kwargs) - self.operation_url = None - self.status = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_py3.py deleted file mode 100644 index 77b561da09f8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_batch_status_response_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 OperationBatchStatusResponse(Model): - """Status Details of the long running operation for an environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar items: Gets a collection of items that contain the operation url and - status. - :vartype items: - list[~azure.mgmt.labservices.models.OperationBatchStatusResponseItem] - """ - - _validation = { - 'items': {'readonly': True}, - } - - _attribute_map = { - 'items': {'key': 'items', 'type': '[OperationBatchStatusResponseItem]'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationBatchStatusResponse, self).__init__(**kwargs) - self.items = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error.py deleted file mode 100644 index 5ee1f80b2712..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_error_py3.py deleted file mode 100644 index 19c57b944297..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata.py deleted file mode 100644 index 27fac9dfad61..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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 ManagedLab ResourceProvider. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that describes the operations - :type display: ~azure.mgmt.labservices.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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display.py deleted file mode 100644 index c20b0b519d3e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_display_py3.py deleted file mode 100644 index a566cc55bfe8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_paged.py deleted file mode 100644 index 492b88426e8a..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_metadata_py3.py deleted file mode 100644 index 85c9bfdb59dc..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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 ManagedLab ResourceProvider. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that describes the operations - :type display: ~azure.mgmt.labservices.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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result.py deleted file mode 100644 index 658f846f2070..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result.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 OperationResult(Model): - """An Operation Result. - - :param status: The operation status. - :type status: str - :param error: Error details for the operation in case of a failure. - :type error: ~azure.mgmt.labservices.models.OperationError - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - } - - def __init__(self, **kwargs): - super(OperationResult, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error = kwargs.get('error', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result_py3.py deleted file mode 100644 index 576ba6dd1e97..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_result_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 OperationResult(Model): - """An Operation Result. - - :param status: The operation status. - :type status: str - :param error: Error details for the operation in case of a failure. - :type error: ~azure.mgmt.labservices.models.OperationError - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - } - - def __init__(self, *, status: str=None, error=None, **kwargs) -> None: - super(OperationResult, self).__init__(**kwargs) - self.status = status - self.error = error diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload.py deleted file mode 100644 index a85e15804143..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload.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 OperationStatusPayload(Model): - """Payload to get the status of an operation. - - All required parameters must be populated in order to send to Azure. - - :param operation_url: Required. The operation url of long running - operation - :type operation_url: str - """ - - _validation = { - 'operation_url': {'required': True}, - } - - _attribute_map = { - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusPayload, self).__init__(**kwargs) - self.operation_url = kwargs.get('operation_url', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload_py3.py deleted file mode 100644 index 0734f92a52c7..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_payload_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 OperationStatusPayload(Model): - """Payload to get the status of an operation. - - All required parameters must be populated in order to send to Azure. - - :param operation_url: Required. The operation url of long running - operation - :type operation_url: str - """ - - _validation = { - 'operation_url': {'required': True}, - } - - _attribute_map = { - 'operation_url': {'key': 'operationUrl', 'type': 'str'}, - } - - def __init__(self, *, operation_url: str, **kwargs) -> None: - super(OperationStatusPayload, self).__init__(**kwargs) - self.operation_url = operation_url diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response.py deleted file mode 100644 index 9d1eae6fa35b..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response.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 OperationStatusResponse(Model): - """Status Details of the long running operation for an environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: status of the long running operation for an environment - :vartype status: str - """ - - _validation = { - 'status': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusResponse, self).__init__(**kwargs) - self.status = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response_py3.py deleted file mode 100644 index 706880003394..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/operation_status_response_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 OperationStatusResponse(Model): - """Status Details of the long running operation for an environment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: status of the long running operation for an environment - :vartype status: str - """ - - _validation = { - 'status': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationStatusResponse, self).__init__(**kwargs) - self.status = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload.py deleted file mode 100644 index 49725decbeaf..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload.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 PersonalPreferencesOperationsPayload(Model): - """Represents payload for any Environment operations like get, start, stop, - connect. - - :param lab_account_resource_id: Resource Id of the lab account - :type lab_account_resource_id: str - :param add_remove: Enum indicating if user is adding or removing a - favorite lab. Possible values include: 'Add', 'Remove' - :type add_remove: str or ~azure.mgmt.labservices.models.AddRemove - :param lab_resource_id: Resource Id of the lab to add/remove from the - favorites list - :type lab_resource_id: str - """ - - _attribute_map = { - 'lab_account_resource_id': {'key': 'labAccountResourceId', 'type': 'str'}, - 'add_remove': {'key': 'addRemove', 'type': 'str'}, - 'lab_resource_id': {'key': 'labResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PersonalPreferencesOperationsPayload, self).__init__(**kwargs) - self.lab_account_resource_id = kwargs.get('lab_account_resource_id', None) - self.add_remove = kwargs.get('add_remove', None) - self.lab_resource_id = kwargs.get('lab_resource_id', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload_py3.py deleted file mode 100644 index 60fa9fb1a56e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/personal_preferences_operations_payload_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 PersonalPreferencesOperationsPayload(Model): - """Represents payload for any Environment operations like get, start, stop, - connect. - - :param lab_account_resource_id: Resource Id of the lab account - :type lab_account_resource_id: str - :param add_remove: Enum indicating if user is adding or removing a - favorite lab. Possible values include: 'Add', 'Remove' - :type add_remove: str or ~azure.mgmt.labservices.models.AddRemove - :param lab_resource_id: Resource Id of the lab to add/remove from the - favorites list - :type lab_resource_id: str - """ - - _attribute_map = { - 'lab_account_resource_id': {'key': 'labAccountResourceId', 'type': 'str'}, - 'add_remove': {'key': 'addRemove', 'type': 'str'}, - 'lab_resource_id': {'key': 'labResourceId', 'type': 'str'}, - } - - def __init__(self, *, lab_account_resource_id: str=None, add_remove=None, lab_resource_id: str=None, **kwargs) -> None: - super(PersonalPreferencesOperationsPayload, self).__init__(**kwargs) - self.lab_account_resource_id = lab_account_resource_id - self.add_remove = add_remove - self.lab_resource_id = lab_resource_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload.py deleted file mode 100644 index 08a2c2e55240..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload.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 PublishPayload(Model): - """Payload for Publish operation on EnvironmentSetting. - - :param use_existing_image: Whether to use existing VM custom image when - publishing. - :type use_existing_image: bool - """ - - _attribute_map = { - 'use_existing_image': {'key': 'useExistingImage', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(PublishPayload, self).__init__(**kwargs) - self.use_existing_image = kwargs.get('use_existing_image', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload_py3.py deleted file mode 100644 index 414ac442de84..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/publish_payload_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 PublishPayload(Model): - """Payload for Publish operation on EnvironmentSetting. - - :param use_existing_image: Whether to use existing VM custom image when - publishing. - :type use_existing_image: bool - """ - - _attribute_map = { - 'use_existing_image': {'key': 'useExistingImage', 'type': 'bool'}, - } - - def __init__(self, *, use_existing_image: bool=None, **kwargs) -> None: - super(PublishPayload, self).__init__(**kwargs) - self.use_existing_image = use_existing_image diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm.py deleted file mode 100644 index 1fdb9cb86be5..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm.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 ReferenceVm(Model): - """Details of a Reference Vm. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The username of the virtual machine - :type user_name: str - :param password: The password of the virtual machine. This will be set to - null in GET resource API - :type password: str - :ivar vm_state_details: The state details for the reference virtual - machine. - :vartype vm_state_details: ~azure.mgmt.labservices.models.VmStateDetails - :ivar vm_resource_id: VM resource Id for the environment - :vartype vm_resource_id: str - """ - - _validation = { - 'user_name': {'required': True}, - 'vm_state_details': {'readonly': True}, - 'vm_resource_id': {'readonly': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'vm_state_details': {'key': 'vmStateDetails', 'type': 'VmStateDetails'}, - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ReferenceVm, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) - self.vm_state_details = None - self.vm_resource_id = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters.py deleted file mode 100644 index f31b53dd2436..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters.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 ReferenceVmCreationParameters(Model): - """Creation parameters for Reference Vm. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The username of the virtual machine - :type user_name: str - :param password: Required. The password of the virtual machine. - :type password: str - """ - - _validation = { - 'user_name': {'required': True}, - 'password': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ReferenceVmCreationParameters, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters_py3.py deleted file mode 100644 index 780e1703546d..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_creation_parameters_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 ReferenceVmCreationParameters(Model): - """Creation parameters for Reference Vm. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The username of the virtual machine - :type user_name: str - :param password: Required. The password of the virtual machine. - :type password: str - """ - - _validation = { - 'user_name': {'required': True}, - 'password': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, *, user_name: str, password: str, **kwargs) -> None: - super(ReferenceVmCreationParameters, self).__init__(**kwargs) - self.user_name = user_name - self.password = password diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment.py deleted file mode 100644 index 06a58e0b9810..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_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 ReferenceVmFragment(Model): - """Details of a Reference Vm. - - :param user_name: The username of the virtual machine - :type user_name: str - :param password: The password of the virtual machine. This will be set to - null in GET resource API - :type password: str - """ - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ReferenceVmFragment, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_fragment_py3.py deleted file mode 100644 index d00b2ac53111..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_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 ReferenceVmFragment(Model): - """Details of a Reference Vm. - - :param user_name: The username of the virtual machine - :type user_name: str - :param password: The password of the virtual machine. This will be set to - null in GET resource API - :type password: str - """ - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, *, user_name: str=None, password: str=None, **kwargs) -> None: - super(ReferenceVmFragment, self).__init__(**kwargs) - self.user_name = user_name - self.password = password diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_py3.py deleted file mode 100644 index 802d4e589372..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reference_vm_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 ReferenceVm(Model): - """Details of a Reference Vm. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The username of the virtual machine - :type user_name: str - :param password: The password of the virtual machine. This will be set to - null in GET resource API - :type password: str - :ivar vm_state_details: The state details for the reference virtual - machine. - :vartype vm_state_details: ~azure.mgmt.labservices.models.VmStateDetails - :ivar vm_resource_id: VM resource Id for the environment - :vartype vm_resource_id: str - """ - - _validation = { - 'user_name': {'required': True}, - 'vm_state_details': {'readonly': True}, - 'vm_resource_id': {'readonly': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'vm_state_details': {'key': 'vmStateDetails', 'type': 'VmStateDetails'}, - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - } - - def __init__(self, *, user_name: str, password: str=None, **kwargs) -> None: - super(ReferenceVm, self).__init__(**kwargs) - self.user_name = user_name - self.password = password - self.vm_state_details = None - self.vm_resource_id = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability.py deleted file mode 100644 index 989f34ed1056..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability.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 RegionalAvailability(Model): - """The availability information of sizes across regions. - - :param region: Corresponding region - :type region: str - :param size_availabilities: List of all the size information for the - region - :type size_availabilities: - list[~azure.mgmt.labservices.models.SizeAvailability] - """ - - _attribute_map = { - 'region': {'key': 'region', 'type': 'str'}, - 'size_availabilities': {'key': 'sizeAvailabilities', 'type': '[SizeAvailability]'}, - } - - def __init__(self, **kwargs): - super(RegionalAvailability, self).__init__(**kwargs) - self.region = kwargs.get('region', None) - self.size_availabilities = kwargs.get('size_availabilities', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability_py3.py deleted file mode 100644 index cb11cf25a3b4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/regional_availability_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 RegionalAvailability(Model): - """The availability information of sizes across regions. - - :param region: Corresponding region - :type region: str - :param size_availabilities: List of all the size information for the - region - :type size_availabilities: - list[~azure.mgmt.labservices.models.SizeAvailability] - """ - - _attribute_map = { - 'region': {'key': 'region', 'type': 'str'}, - 'size_availabilities': {'key': 'sizeAvailabilities', 'type': '[SizeAvailability]'}, - } - - def __init__(self, *, region: str=None, size_availabilities=None, **kwargs) -> None: - super(RegionalAvailability, self).__init__(**kwargs) - self.region = region - self.size_availabilities = size_availabilities diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload.py deleted file mode 100644 index 9b4881e43759..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload.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 RegisterPayload(Model): - """Represents payload for Register action. - - :param registration_code: The registration code of the lab. - :type registration_code: str - """ - - _attribute_map = { - 'registration_code': {'key': 'registrationCode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RegisterPayload, self).__init__(**kwargs) - self.registration_code = kwargs.get('registration_code', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload_py3.py deleted file mode 100644 index 45b5818601b9..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/register_payload_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 RegisterPayload(Model): - """Represents payload for Register action. - - :param registration_code: The registration code of the lab. - :type registration_code: str - """ - - _attribute_map = { - 'registration_code': {'key': 'registrationCode', 'type': 'str'}, - } - - def __init__(self, *, registration_code: str=None, **kwargs) -> None: - super(RegisterPayload, self).__init__(**kwargs) - self.registration_code = registration_code diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload.py deleted file mode 100644 index d4522d8b96e2..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload.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 ResetPasswordPayload(Model): - """Represents the payload for resetting passwords. - - All required parameters must be populated in order to send to Azure. - - :param environment_id: Required. The resourceId of the environment - :type environment_id: str - :param username: The username for which the password will be reset. - :type username: str - :param password: The password to assign to the user specified in - :type password: str - """ - - _validation = { - 'environment_id': {'required': True}, - } - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResetPasswordPayload, self).__init__(**kwargs) - self.environment_id = kwargs.get('environment_id', None) - self.username = kwargs.get('username', None) - self.password = kwargs.get('password', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload_py3.py deleted file mode 100644 index 22f4e438de34..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/reset_password_payload_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 ResetPasswordPayload(Model): - """Represents the payload for resetting passwords. - - All required parameters must be populated in order to send to Azure. - - :param environment_id: Required. The resourceId of the environment - :type environment_id: str - :param username: The username for which the password will be reset. - :type username: str - :param password: The password to assign to the user specified in - :type password: str - """ - - _validation = { - 'environment_id': {'required': True}, - } - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, *, environment_id: str, username: str=None, password: str=None, **kwargs) -> None: - super(ResetPasswordPayload, self).__init__(**kwargs) - self.environment_id = environment_id - self.username = username - self.password = password diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource.py deleted file mode 100644 index f25b57698413..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_py3.py deleted file mode 100644 index e59df581aa79..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set.py deleted file mode 100644 index 46c8f339a894..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set.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 ResourceSet(Model): - """Represents a VM and the setting Id it was created for. - - :param vm_resource_id: VM resource Id for the environment - :type vm_resource_id: str - :param resource_setting_id: resourceSettingId for the environment - :type resource_setting_id: str - """ - - _attribute_map = { - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSet, self).__init__(**kwargs) - self.vm_resource_id = kwargs.get('vm_resource_id', None) - self.resource_setting_id = kwargs.get('resource_setting_id', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment.py deleted file mode 100644 index 5e5c9607332c..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_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 ResourceSetFragment(Model): - """Represents a VM and the setting Id it was created for. - - :param vm_resource_id: VM resource Id for the environment - :type vm_resource_id: str - :param resource_setting_id: resourceSettingId for the environment - :type resource_setting_id: str - """ - - _attribute_map = { - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSetFragment, self).__init__(**kwargs) - self.vm_resource_id = kwargs.get('vm_resource_id', None) - self.resource_setting_id = kwargs.get('resource_setting_id', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_fragment_py3.py deleted file mode 100644 index 7685f707cc4c..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_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 ResourceSetFragment(Model): - """Represents a VM and the setting Id it was created for. - - :param vm_resource_id: VM resource Id for the environment - :type vm_resource_id: str - :param resource_setting_id: resourceSettingId for the environment - :type resource_setting_id: str - """ - - _attribute_map = { - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, - } - - def __init__(self, *, vm_resource_id: str=None, resource_setting_id: str=None, **kwargs) -> None: - super(ResourceSetFragment, self).__init__(**kwargs) - self.vm_resource_id = vm_resource_id - self.resource_setting_id = resource_setting_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_py3.py deleted file mode 100644 index 4576f681bdf8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_set_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 ResourceSet(Model): - """Represents a VM and the setting Id it was created for. - - :param vm_resource_id: VM resource Id for the environment - :type vm_resource_id: str - :param resource_setting_id: resourceSettingId for the environment - :type resource_setting_id: str - """ - - _attribute_map = { - 'vm_resource_id': {'key': 'vmResourceId', 'type': 'str'}, - 'resource_setting_id': {'key': 'resourceSettingId', 'type': 'str'}, - } - - def __init__(self, *, vm_resource_id: str=None, resource_setting_id: str=None, **kwargs) -> None: - super(ResourceSet, self).__init__(**kwargs) - self.vm_resource_id = vm_resource_id - self.resource_setting_id = resource_setting_id diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters.py deleted file mode 100644 index 9db4e8e1fea8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters.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 ResourceSettingCreationParameters(Model): - """Represents resource specific settings. - - All required parameters must be populated in order to send to Azure. - - :param location: The location where the virtual machine will live - :type location: str - :param name: The name of the resource setting - :type name: str - :param gallery_image_resource_id: Required. The resource id of the gallery - image used for creating the virtual machine - :type gallery_image_resource_id: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param reference_vm_creation_parameters: Required. Creation parameters for - Reference Vm - :type reference_vm_creation_parameters: - ~azure.mgmt.labservices.models.ReferenceVmCreationParameters - """ - - _validation = { - 'gallery_image_resource_id': {'required': True}, - 'reference_vm_creation_parameters': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'reference_vm_creation_parameters': {'key': 'referenceVmCreationParameters', 'type': 'ReferenceVmCreationParameters'}, - } - - def __init__(self, **kwargs): - super(ResourceSettingCreationParameters, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.name = kwargs.get('name', None) - self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) - self.size = kwargs.get('size', None) - self.reference_vm_creation_parameters = kwargs.get('reference_vm_creation_parameters', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters_py3.py deleted file mode 100644 index b64e493ef95f..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_setting_creation_parameters_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 ResourceSettingCreationParameters(Model): - """Represents resource specific settings. - - All required parameters must be populated in order to send to Azure. - - :param location: The location where the virtual machine will live - :type location: str - :param name: The name of the resource setting - :type name: str - :param gallery_image_resource_id: Required. The resource id of the gallery - image used for creating the virtual machine - :type gallery_image_resource_id: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param reference_vm_creation_parameters: Required. Creation parameters for - Reference Vm - :type reference_vm_creation_parameters: - ~azure.mgmt.labservices.models.ReferenceVmCreationParameters - """ - - _validation = { - 'gallery_image_resource_id': {'required': True}, - 'reference_vm_creation_parameters': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'reference_vm_creation_parameters': {'key': 'referenceVmCreationParameters', 'type': 'ReferenceVmCreationParameters'}, - } - - def __init__(self, *, gallery_image_resource_id: str, reference_vm_creation_parameters, location: str=None, name: str=None, size=None, **kwargs) -> None: - super(ResourceSettingCreationParameters, self).__init__(**kwargs) - self.location = location - self.name = name - self.gallery_image_resource_id = gallery_image_resource_id - self.size = size - self.reference_vm_creation_parameters = reference_vm_creation_parameters diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings.py deleted file mode 100644 index eefadba0d7df..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings.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 ResourceSettings(Model): - """Represents resource specific settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The unique id of the resource setting - :vartype id: str - :param gallery_image_resource_id: The resource id of the gallery image - used for creating the virtual machine - :type gallery_image_resource_id: str - :ivar image_name: The name of the image used to created the environment - setting - :vartype image_name: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :ivar cores: The translated compute cores of the virtual machine - :vartype cores: int - :param reference_vm: Required. Details specific to Reference Vm - :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVm - """ - - _validation = { - 'id': {'readonly': True}, - 'image_name': {'readonly': True}, - 'cores': {'readonly': True}, - 'reference_vm': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'image_name': {'key': 'imageName', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'cores': {'key': 'cores', 'type': 'int'}, - 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVm'}, - } - - def __init__(self, **kwargs): - super(ResourceSettings, self).__init__(**kwargs) - self.id = None - self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) - self.image_name = None - self.size = kwargs.get('size', None) - self.cores = None - self.reference_vm = kwargs.get('reference_vm', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment.py deleted file mode 100644 index fca7a4cd5f3f..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_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 ResourceSettingsFragment(Model): - """Represents resource specific settings. - - :param gallery_image_resource_id: The resource id of the gallery image - used for creating the virtual machine - :type gallery_image_resource_id: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param reference_vm: Details specific to Reference Vm - :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVmFragment - """ - - _attribute_map = { - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVmFragment'}, - } - - def __init__(self, **kwargs): - super(ResourceSettingsFragment, self).__init__(**kwargs) - self.gallery_image_resource_id = kwargs.get('gallery_image_resource_id', None) - self.size = kwargs.get('size', None) - self.reference_vm = kwargs.get('reference_vm', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_fragment_py3.py deleted file mode 100644 index f896caa9c4fb..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_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 ResourceSettingsFragment(Model): - """Represents resource specific settings. - - :param gallery_image_resource_id: The resource id of the gallery image - used for creating the virtual machine - :type gallery_image_resource_id: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :param reference_vm: Details specific to Reference Vm - :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVmFragment - """ - - _attribute_map = { - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVmFragment'}, - } - - def __init__(self, *, gallery_image_resource_id: str=None, size=None, reference_vm=None, **kwargs) -> None: - super(ResourceSettingsFragment, self).__init__(**kwargs) - self.gallery_image_resource_id = gallery_image_resource_id - self.size = size - self.reference_vm = reference_vm diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_py3.py deleted file mode 100644 index 9199b8d69cd3..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/resource_settings_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 ResourceSettings(Model): - """Represents resource specific settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The unique id of the resource setting - :vartype id: str - :param gallery_image_resource_id: The resource id of the gallery image - used for creating the virtual machine - :type gallery_image_resource_id: str - :ivar image_name: The name of the image used to created the environment - setting - :vartype image_name: str - :param size: The size of the virtual machine. Possible values include: - 'Basic', 'Standard', 'Performance' - :type size: str or ~azure.mgmt.labservices.models.ManagedLabVmSize - :ivar cores: The translated compute cores of the virtual machine - :vartype cores: int - :param reference_vm: Required. Details specific to Reference Vm - :type reference_vm: ~azure.mgmt.labservices.models.ReferenceVm - """ - - _validation = { - 'id': {'readonly': True}, - 'image_name': {'readonly': True}, - 'cores': {'readonly': True}, - 'reference_vm': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'gallery_image_resource_id': {'key': 'galleryImageResourceId', 'type': 'str'}, - 'image_name': {'key': 'imageName', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'cores': {'key': 'cores', 'type': 'int'}, - 'reference_vm': {'key': 'referenceVm', 'type': 'ReferenceVm'}, - } - - def __init__(self, *, reference_vm, gallery_image_resource_id: str=None, size=None, **kwargs) -> None: - super(ResourceSettings, self).__init__(**kwargs) - self.id = None - self.gallery_image_resource_id = gallery_image_resource_id - self.image_name = None - self.size = size - self.cores = None - self.reference_vm = reference_vm diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability.py deleted file mode 100644 index ee8d5b424130..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability.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 SizeAvailability(Model): - """Represents the size information. - - :param size_category: The category of the size (Basic, Standard, - Performance). Possible values include: 'Basic', 'Standard', 'Performance' - :type size_category: str or - ~azure.mgmt.labservices.models.ManagedLabVmSize - :param is_available: Whether or not this size category is available - :type is_available: bool - """ - - _attribute_map = { - 'size_category': {'key': 'sizeCategory', 'type': 'str'}, - 'is_available': {'key': 'isAvailable', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(SizeAvailability, self).__init__(**kwargs) - self.size_category = kwargs.get('size_category', None) - self.is_available = kwargs.get('is_available', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability_py3.py deleted file mode 100644 index 398efa071812..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_availability_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 SizeAvailability(Model): - """Represents the size information. - - :param size_category: The category of the size (Basic, Standard, - Performance). Possible values include: 'Basic', 'Standard', 'Performance' - :type size_category: str or - ~azure.mgmt.labservices.models.ManagedLabVmSize - :param is_available: Whether or not this size category is available - :type is_available: bool - """ - - _attribute_map = { - 'size_category': {'key': 'sizeCategory', 'type': 'str'}, - 'is_available': {'key': 'isAvailable', 'type': 'bool'}, - } - - def __init__(self, *, size_category=None, is_available: bool=None, **kwargs) -> None: - super(SizeAvailability, self).__init__(**kwargs) - self.size_category = size_category - self.is_available = is_available diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties.py deleted file mode 100644 index 13dcc52d45a4..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties.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 SizeConfigurationProperties(Model): - """Represents the size configuration under the lab account. - - :param environment_sizes: Represents a list of size categories supported - by this Lab Account (Small, Medium, Large) - :type environment_sizes: - list[~azure.mgmt.labservices.models.EnvironmentSize] - """ - - _attribute_map = { - 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSize]'}, - } - - def __init__(self, **kwargs): - super(SizeConfigurationProperties, self).__init__(**kwargs) - self.environment_sizes = kwargs.get('environment_sizes', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment.py deleted file mode 100644 index eb7eff82c145..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_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 SizeConfigurationPropertiesFragment(Model): - """Represents the size configuration under the lab account. - - :param environment_sizes: Represents a list of size categories supported - by this Lab Account (Small, Medium, Large) - :type environment_sizes: - list[~azure.mgmt.labservices.models.EnvironmentSizeFragment] - """ - - _attribute_map = { - 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSizeFragment]'}, - } - - def __init__(self, **kwargs): - super(SizeConfigurationPropertiesFragment, self).__init__(**kwargs) - self.environment_sizes = kwargs.get('environment_sizes', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_fragment_py3.py deleted file mode 100644 index 97adc249de04..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_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 SizeConfigurationPropertiesFragment(Model): - """Represents the size configuration under the lab account. - - :param environment_sizes: Represents a list of size categories supported - by this Lab Account (Small, Medium, Large) - :type environment_sizes: - list[~azure.mgmt.labservices.models.EnvironmentSizeFragment] - """ - - _attribute_map = { - 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSizeFragment]'}, - } - - def __init__(self, *, environment_sizes=None, **kwargs) -> None: - super(SizeConfigurationPropertiesFragment, self).__init__(**kwargs) - self.environment_sizes = environment_sizes diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_py3.py deleted file mode 100644 index b8f4af4d2a24..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_configuration_properties_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 SizeConfigurationProperties(Model): - """Represents the size configuration under the lab account. - - :param environment_sizes: Represents a list of size categories supported - by this Lab Account (Small, Medium, Large) - :type environment_sizes: - list[~azure.mgmt.labservices.models.EnvironmentSize] - """ - - _attribute_map = { - 'environment_sizes': {'key': 'environmentSizes', 'type': '[EnvironmentSize]'}, - } - - def __init__(self, *, environment_sizes=None, **kwargs) -> None: - super(SizeConfigurationProperties, self).__init__(**kwargs) - self.environment_sizes = environment_sizes diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info.py deleted file mode 100644 index 62a8e7df716c..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info.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 SizeInfo(Model): - """Contains detailed information about a size. - - :param compute_size: Represents the actual compute size, e.g. - Standard_A2_v2. - :type compute_size: str - :param price: The pay-as-you-go price per hour this size will cost. It - does not include discounts and may not reflect the actual price the size - will cost. - :type price: decimal.Decimal - :param number_of_cores: The number of cores a VM of this size has. - :type number_of_cores: int - :param memory: The amount of memory available (in GB). - :type memory: float - """ - - _attribute_map = { - 'compute_size': {'key': 'computeSize', 'type': 'str'}, - 'price': {'key': 'price', 'type': 'decimal'}, - 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, - 'memory': {'key': 'memory', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(SizeInfo, self).__init__(**kwargs) - self.compute_size = kwargs.get('compute_size', None) - self.price = kwargs.get('price', None) - self.number_of_cores = kwargs.get('number_of_cores', None) - self.memory = kwargs.get('memory', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment.py deleted file mode 100644 index 5b82e28a6a9b..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment.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 SizeInfoFragment(Model): - """Contains detailed information about a size. - - :param compute_size: Represents the actual compute size, e.g. - Standard_A2_v2. - :type compute_size: str - :param price: The pay-as-you-go price per hour this size will cost. It - does not include discounts and may not reflect the actual price the size - will cost. - :type price: decimal.Decimal - :param number_of_cores: The number of cores a VM of this size has. - :type number_of_cores: int - :param memory: The amount of memory available (in GB). - :type memory: float - """ - - _attribute_map = { - 'compute_size': {'key': 'computeSize', 'type': 'str'}, - 'price': {'key': 'price', 'type': 'decimal'}, - 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, - 'memory': {'key': 'memory', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(SizeInfoFragment, self).__init__(**kwargs) - self.compute_size = kwargs.get('compute_size', None) - self.price = kwargs.get('price', None) - self.number_of_cores = kwargs.get('number_of_cores', None) - self.memory = kwargs.get('memory', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment_py3.py deleted file mode 100644 index 4fc27b1010ba..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_fragment_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 SizeInfoFragment(Model): - """Contains detailed information about a size. - - :param compute_size: Represents the actual compute size, e.g. - Standard_A2_v2. - :type compute_size: str - :param price: The pay-as-you-go price per hour this size will cost. It - does not include discounts and may not reflect the actual price the size - will cost. - :type price: decimal.Decimal - :param number_of_cores: The number of cores a VM of this size has. - :type number_of_cores: int - :param memory: The amount of memory available (in GB). - :type memory: float - """ - - _attribute_map = { - 'compute_size': {'key': 'computeSize', 'type': 'str'}, - 'price': {'key': 'price', 'type': 'decimal'}, - 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, - 'memory': {'key': 'memory', 'type': 'float'}, - } - - def __init__(self, *, compute_size: str=None, price=None, number_of_cores: int=None, memory: float=None, **kwargs) -> None: - super(SizeInfoFragment, self).__init__(**kwargs) - self.compute_size = compute_size - self.price = price - self.number_of_cores = number_of_cores - self.memory = memory diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_py3.py deleted file mode 100644 index f09fcbfcfce0..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/size_info_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 SizeInfo(Model): - """Contains detailed information about a size. - - :param compute_size: Represents the actual compute size, e.g. - Standard_A2_v2. - :type compute_size: str - :param price: The pay-as-you-go price per hour this size will cost. It - does not include discounts and may not reflect the actual price the size - will cost. - :type price: decimal.Decimal - :param number_of_cores: The number of cores a VM of this size has. - :type number_of_cores: int - :param memory: The amount of memory available (in GB). - :type memory: float - """ - - _attribute_map = { - 'compute_size': {'key': 'computeSize', 'type': 'str'}, - 'price': {'key': 'price', 'type': 'decimal'}, - 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, - 'memory': {'key': 'memory', 'type': 'float'}, - } - - def __init__(self, *, compute_size: str=None, price=None, number_of_cores: int=None, memory: float=None, **kwargs) -> None: - super(SizeInfo, self).__init__(**kwargs) - self.compute_size = compute_size - self.price = price - self.number_of_cores = number_of_cores - self.memory = memory diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user.py deleted file mode 100644 index 503d524d43af..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """The User registered to 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 email: The user email address, as it was specified during - registration. - :vartype email: str - :ivar family_name: The user family name, as it was specified during - registration. - :vartype family_name: str - :ivar given_name: The user given name, as it was specified during - registration. - :vartype given_name: str - :ivar tenant_id: The user tenant ID, as it was specified during - registration. - :vartype tenant_id: str - :ivar total_usage: How long the user has used his VMs in this lab - :vartype total_usage: timedelta - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'email': {'readonly': True}, - 'family_name': {'readonly': True}, - 'given_name': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'email': {'key': 'properties.email', 'type': 'str'}, - 'family_name': {'key': 'properties.familyName', 'type': 'str'}, - 'given_name': {'key': 'properties.givenName', 'type': 'str'}, - 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, **kwargs): - super(User, self).__init__(**kwargs) - self.email = None - self.family_name = None - self.given_name = None - self.tenant_id = None - self.total_usage = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment.py deleted file mode 100644 index 93ceed68d4b8..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_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 .resource import Resource - - -class UserFragment(Resource): - """The User registered to 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] - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UserFragment, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.unique_identifier = kwargs.get('unique_identifier', None) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_fragment_py3.py deleted file mode 100644 index 7e3693f6298e..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_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 .resource_py3 import Resource - - -class UserFragment(Resource): - """The User registered to 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] - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: 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}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(UserFragment, self).__init__(location=location, tags=tags, **kwargs) - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_paged.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_paged.py deleted file mode 100644 index aa983f616850..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_py3.py deleted file mode 100644 index 2f33a78c0056..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/user_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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): - """The User registered to 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 email: The user email address, as it was specified during - registration. - :vartype email: str - :ivar family_name: The user family name, as it was specified during - registration. - :vartype family_name: str - :ivar given_name: The user given name, as it was specified during - registration. - :vartype given_name: str - :ivar tenant_id: The user tenant ID, as it was specified during - registration. - :vartype tenant_id: str - :ivar total_usage: How long the user has used his VMs in this lab - :vartype total_usage: timedelta - :param provisioning_state: The provisioning status of the resource. - :type provisioning_state: str - :param unique_identifier: The unique immutable identifier of a resource - (Guid). - :type unique_identifier: str - :ivar latest_operation_result: The details of the latest operation. ex: - status, error - :vartype latest_operation_result: - ~azure.mgmt.labservices.models.LatestOperationResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'email': {'readonly': True}, - 'family_name': {'readonly': True}, - 'given_name': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'total_usage': {'readonly': True}, - 'latest_operation_result': {'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}'}, - 'email': {'key': 'properties.email', 'type': 'str'}, - 'family_name': {'key': 'properties.familyName', 'type': 'str'}, - 'given_name': {'key': 'properties.givenName', 'type': 'str'}, - 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'total_usage': {'key': 'properties.totalUsage', 'type': 'duration'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, - 'latest_operation_result': {'key': 'properties.latestOperationResult', 'type': 'LatestOperationResult'}, - } - - def __init__(self, *, location: str=None, tags=None, provisioning_state: str=None, unique_identifier: str=None, **kwargs) -> None: - super(User, self).__init__(location=location, tags=tags, **kwargs) - self.email = None - self.family_name = None - self.given_name = None - self.tenant_id = None - self.total_usage = None - self.provisioning_state = provisioning_state - self.unique_identifier = unique_identifier - self.latest_operation_result = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details.py deleted file mode 100644 index 0088407b134c..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 VirtualMachineDetails(Model): - """Details of the backing virtual machine. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: Provisioning state of the Dtl VM - :vartype provisioning_state: str - :ivar rdp_authority: Connection information for Windows - :vartype rdp_authority: str - :ivar ssh_authority: Connection information for Linux - :vartype ssh_authority: str - :ivar private_ip_address: PrivateIp address of the compute VM - :vartype private_ip_address: str - :ivar user_name: Compute VM login user name - :vartype user_name: str - :ivar last_known_power_state: Last known compute power state captured in - DTL - :vartype last_known_power_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'rdp_authority': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'private_ip_address': {'readonly': True}, - 'user_name': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineDetails, self).__init__(**kwargs) - self.provisioning_state = None - self.rdp_authority = None - self.ssh_authority = None - self.private_ip_address = None - self.user_name = None - self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details_py3.py deleted file mode 100644 index 347bf47a0b30..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/virtual_machine_details_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 VirtualMachineDetails(Model): - """Details of the backing virtual machine. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: Provisioning state of the Dtl VM - :vartype provisioning_state: str - :ivar rdp_authority: Connection information for Windows - :vartype rdp_authority: str - :ivar ssh_authority: Connection information for Linux - :vartype ssh_authority: str - :ivar private_ip_address: PrivateIp address of the compute VM - :vartype private_ip_address: str - :ivar user_name: Compute VM login user name - :vartype user_name: str - :ivar last_known_power_state: Last known compute power state captured in - DTL - :vartype last_known_power_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'rdp_authority': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'private_ip_address': {'readonly': True}, - 'user_name': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(VirtualMachineDetails, self).__init__(**kwargs) - self.provisioning_state = None - self.rdp_authority = None - self.ssh_authority = None - self.private_ip_address = None - self.user_name = None - self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details.py deleted file mode 100644 index c67712bbb3e2..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details.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 VmStateDetails(Model): - """Details about the state of the reference virtual machine. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar 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). - :vartype rdp_authority: str - :ivar ssh_authority: The SshAuthority property is a server DNS host name - or IP address followed by the service port number for SSH. - :vartype ssh_authority: str - :ivar power_state: The power state of the reference virtual machine. - :vartype power_state: str - :ivar last_known_power_state: Last known compute power state captured in - DTL - :vartype last_known_power_state: str - """ - - _validation = { - 'rdp_authority': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'power_state': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - } - - _attribute_map = { - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'power_state': {'key': 'powerState', 'type': 'str'}, - 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VmStateDetails, self).__init__(**kwargs) - self.rdp_authority = None - self.ssh_authority = None - self.power_state = None - self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details_py3.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details_py3.py deleted file mode 100644 index b3bb68a6b155..000000000000 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/vm_state_details_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 VmStateDetails(Model): - """Details about the state of the reference virtual machine. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar 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). - :vartype rdp_authority: str - :ivar ssh_authority: The SshAuthority property is a server DNS host name - or IP address followed by the service port number for SSH. - :vartype ssh_authority: str - :ivar power_state: The power state of the reference virtual machine. - :vartype power_state: str - :ivar last_known_power_state: Last known compute power state captured in - DTL - :vartype last_known_power_state: str - """ - - _validation = { - 'rdp_authority': {'readonly': True}, - 'ssh_authority': {'readonly': True}, - 'power_state': {'readonly': True}, - 'last_known_power_state': {'readonly': True}, - } - - _attribute_map = { - 'rdp_authority': {'key': 'rdpAuthority', 'type': 'str'}, - 'ssh_authority': {'key': 'sshAuthority', 'type': 'str'}, - 'power_state': {'key': 'powerState', 'type': 'str'}, - 'last_known_power_state': {'key': 'lastKnownPowerState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(VmStateDetails, self).__init__(**kwargs) - self.rdp_authority = None - self.ssh_authority = None - self.power_state = None - self.last_known_power_state = None diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/__init__.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/__init__.py index f3a3a8cd5ed6..4333302cbea4 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/__init__.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/__init__.py @@ -9,15 +9,15 @@ # regenerated. # -------------------------------------------------------------------------- -from .provider_operations import ProviderOperations -from .global_users_operations import GlobalUsersOperations -from .lab_accounts_operations import LabAccountsOperations -from .operations import Operations -from .gallery_images_operations import GalleryImagesOperations -from .labs_operations import LabsOperations -from .environment_settings_operations import EnvironmentSettingsOperations -from .environments_operations import EnvironmentsOperations -from .users_operations import UsersOperations +from ._provider_operations import ProviderOperations +from ._global_users_operations import GlobalUsersOperations +from ._lab_accounts_operations import LabAccountsOperations +from ._operations import Operations +from ._gallery_images_operations import GalleryImagesOperations +from ._labs_operations import LabsOperations +from ._environment_settings_operations import EnvironmentSettingsOperations +from ._environments_operations import EnvironmentsOperations +from ._users_operations import UsersOperations __all__ = [ 'ProviderOperations', diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environment_settings_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_environment_settings_operations.py similarity index 99% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environment_settings_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_environment_settings_operations.py index 2b06fd3922fe..5f1b3aae067b 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environment_settings_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_environment_settings_operations.py @@ -21,6 +21,8 @@ class EnvironmentSettingsOperations(object): """EnvironmentSettingsOperations 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. @@ -70,8 +72,7 @@ def list( ~azure.mgmt.labservices.models.EnvironmentSettingPaged[~azure.mgmt.labservices.models.EnvironmentSetting] :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'] @@ -111,6 +112,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]: @@ -121,12 +127,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.EnvironmentSettingPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.EnvironmentSettingPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.EnvironmentSettingPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings'} @@ -193,7 +197,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('EnvironmentSetting', response) @@ -470,7 +473,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('EnvironmentSetting', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environments_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_environments_operations.py similarity index 99% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environments_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_environments_operations.py index 68f7fcaf8ae0..5211427aa90f 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/environments_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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. @@ -72,8 +74,7 @@ def list( ~azure.mgmt.labservices.models.EnvironmentPaged[~azure.mgmt.labservices.models.Environment] :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'] @@ -114,6 +115,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]: @@ -124,12 +130,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.EnvironmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.EnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.EnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments'} @@ -199,7 +203,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Environment', response) @@ -276,7 +279,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Environment', response) if response.status_code == 201: @@ -446,7 +448,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Environment', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/gallery_images_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_gallery_images_operations.py similarity index 98% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/gallery_images_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_gallery_images_operations.py index 5b510899cc6a..788b42dd926d 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/gallery_images_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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. @@ -66,8 +68,7 @@ def list( ~azure.mgmt.labservices.models.GalleryImagePaged[~azure.mgmt.labservices.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'] @@ -106,6 +107,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]: @@ -116,12 +122,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.LabServices/labaccounts/{labAccountName}/galleryimages'} @@ -185,7 +189,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GalleryImage', response) @@ -256,7 +259,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GalleryImage', response) if response.status_code == 201: @@ -386,7 +388,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GalleryImage', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/global_users_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_global_users_operations.py similarity index 99% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/global_users_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_global_users_operations.py index 1e5c838fb8ca..261317aa8bcc 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/global_users_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_global_users_operations.py @@ -21,6 +21,8 @@ class GlobalUsersOperations(object): """GlobalUsersOperations 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. @@ -99,7 +101,6 @@ def get_environment( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GetEnvironmentResponse', response) @@ -165,7 +166,6 @@ def get_operation_batch_status( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationBatchStatusResponse', response) @@ -231,7 +231,6 @@ def get_operation_status( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationStatusResponse', response) @@ -298,7 +297,6 @@ def get_personal_preferences( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GetPersonalPreferencesResponse', response) @@ -364,7 +362,6 @@ def list_environments( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ListEnvironmentsResponse', response) @@ -422,7 +419,6 @@ def list_labs( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ListLabsResponse', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/lab_accounts_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_lab_accounts_operations.py similarity index 97% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/lab_accounts_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_lab_accounts_operations.py index d5f8911b7ea3..2b4c03c68a72 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/lab_accounts_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_lab_accounts_operations.py @@ -21,6 +21,8 @@ class LabAccountsOperations(object): """LabAccountsOperations 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. @@ -64,8 +66,7 @@ def list_by_subscription( ~azure.mgmt.labservices.models.LabAccountPaged[~azure.mgmt.labservices.models.LabAccount] :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'] @@ -102,6 +103,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]: @@ -112,12 +118,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabAccountPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabAccountPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabAccountPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labaccounts'} @@ -149,8 +153,7 @@ def list_by_resource_group( ~azure.mgmt.labservices.models.LabAccountPaged[~azure.mgmt.labservices.models.LabAccount] :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'] @@ -188,6 +191,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]: @@ -198,12 +206,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LabAccountPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LabAccountPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LabAccountPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts'} @@ -264,7 +270,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabAccount', response) @@ -332,7 +337,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabAccount', response) if response.status_code == 201: @@ -481,7 +485,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LabAccount', response) @@ -606,7 +609,6 @@ def get_regional_availability( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GetRegionalAvailabilityResponse', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/labs_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_labs_operations.py similarity index 98% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/labs_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_labs_operations.py index 9fddd0ffaf88..6e27a18ce5e4 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/labs_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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. @@ -68,8 +70,7 @@ def list( ~azure.mgmt.labservices.models.LabPaged[~azure.mgmt.labservices.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.metadata['url'] @@ -108,6 +109,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]: @@ -118,12 +124,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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs'} @@ -187,7 +191,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Lab', response) @@ -258,7 +261,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Lab', response) if response.status_code == 201: @@ -414,7 +416,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Lab', response) diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_operations.py similarity index 96% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_operations.py index 123ec3fb10cc..594d5ce9f011 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/provider_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_provider_operations.py similarity index 90% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/provider_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_provider_operations.py index 81e2d910bc52..747191605de5 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/provider_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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.labservices.models.OperationMetadataPaged[~azure.mgmt.labservices.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.LabServices/operations'} diff --git a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/users_operations.py b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_users_operations.py similarity index 98% rename from sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/users_operations.py rename to sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/_users_operations.py index d3ee8bc1b955..9c1181e8d1f6 100644 --- a/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/operations/users_operations.py +++ b/sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/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. @@ -70,8 +72,7 @@ def list( ~azure.mgmt.labservices.models.UserPaged[~azure.mgmt.labservices.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'] @@ -111,6 +112,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]: @@ -121,12 +127,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.LabServices/labaccounts/{labAccountName}/labs/{labName}/users'} @@ -193,7 +197,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('User', response) @@ -267,7 +270,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('User', response) if response.status_code == 201: @@ -430,7 +432,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('User', response)