зеркало из https://github.com/microsoft/azure-cli.git
Create VM command with included autorest output
This commit is contained in:
Родитель
73ba22a5c6
Коммит
3526d1e086
158
azure-cli.pyproj
158
azure-cli.pyproj
|
@ -100,6 +100,60 @@
|
||||||
<Compile Include="command_modules\azure-cli-storage\setup.py" />
|
<Compile Include="command_modules\azure-cli-storage\setup.py" />
|
||||||
<Compile Include="command_modules\azure-cli-taskhelp\azure\cli\command_modules\taskhelp\__init__.py" />
|
<Compile Include="command_modules\azure-cli-taskhelp\azure\cli\command_modules\taskhelp\__init__.py" />
|
||||||
<Compile Include="command_modules\azure-cli-taskhelp\setup.py" />
|
<Compile Include="command_modules\azure-cli-taskhelp\setup.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\credentials.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\exceptions.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\basic_dependency.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\dependency.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_extended.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_extended_filter.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_key_vault.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_operation.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_operations_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_operation_properties.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_properties_extended.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_validate_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\deployment_vm.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\generic_resource.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\generic_resource_filter.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\parameters_link.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\plan.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\policy_assignment.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\policy_assignment_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\policy_assignment_properties.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\policy_definition.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\policy_definition_properties.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\provider.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\provider_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\provider_resource_type.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resources_move_info.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_group.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_group_filter.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_group_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_group_properties.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_management_client_enums.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_management_error.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_management_error_with_details.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_provider_operation_definition.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_provider_operation_detail_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\resource_provider_operation_display_properties.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\sub_resource.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\tags_list_result.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\tag_count.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\tag_details.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\tag_value.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\target_resource.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\template_link.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__init__.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\deployments.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\vm_operations.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__init__.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\resource_management_client.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\version.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\__init__.py" />
|
||||||
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\__init__.py" />
|
||||||
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\command_specs.py">
|
<Compile Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\command_specs.py">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -157,6 +211,13 @@
|
||||||
<Folder Include="command_modules\azure-cli-vm\azure\cli\" />
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\" />
|
||||||
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\" />
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\" />
|
||||||
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\" />
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__pycache__\" />
|
||||||
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\nested_templates\" />
|
||||||
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\" />
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\" />
|
||||||
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\recordings\" />
|
<Folder Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\tests\recordings\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -180,6 +241,103 @@
|
||||||
<Content Include="command_modules\azure-cli-resource\requirements.txt" />
|
<Content Include="command_modules\azure-cli-resource\requirements.txt" />
|
||||||
<Content Include="command_modules\azure-cli-storage\requirements.txt" />
|
<Content Include="command_modules\azure-cli-storage\requirements.txt" />
|
||||||
<Content Include="command_modules\azure-cli-taskhelp\requirements.txt" />
|
<Content Include="command_modules\azure-cli-taskhelp\requirements.txt" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\azuredeploy.json" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\basic_dependency.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\basic_dependency.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\dependency.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\dependency.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_extended.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_extended.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_extended_filter.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_extended_filter.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_key_vault.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_key_vault.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operation.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operation.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operations_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operations_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operation_properties.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_operation_properties.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_properties_extended.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_properties_extended.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_properties_key_vault.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_validate_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\deployment_validate_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\generic_resource.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\generic_resource.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\generic_resource_filter.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\generic_resource_filter.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\parameters_link.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\parameters_link.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\plan.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\plan.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment_properties.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_assignment_properties.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_definition.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_definition.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_definition_properties.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\policy_definition_properties.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider_resource_type.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\provider_resource_type.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resources_move_info.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resources_move_info.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_filter.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_filter.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_properties.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_group_properties.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_client_enums.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_client_enums.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_error.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_error.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_error_with_details.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_management_error_with_details.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_definition.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_definition.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_detail_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_detail_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_display_properties.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\resource_provider_operation_display_properties.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\sub_resource.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\sub_resource.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tags_list_result.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tags_list_result.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_count.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_count.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_details.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_details.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_value.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\tag_value.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\target_resource.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\target_resource.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\template_link_key_vault.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\template_link_key_vault.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\__init__.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\models\__pycache__\__init__.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__pycache__\deployments.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__pycache__\deployments.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__pycache__\__init__.cpython-34.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\lib\operations\__pycache__\__init__.cpython-35.pyc" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\nested_templates\ExistingVNet.json" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\nested_templates\NewVNet.json" />
|
||||||
|
<Content Include="command_modules\azure-cli-vm\azure\cli\command_modules\vm\mgmt\swagger_create_vm.json" />
|
||||||
<Content Include="command_modules\azure-cli-vm\requirements.txt" />
|
<Content Include="command_modules\azure-cli-vm\requirements.txt" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import argparse
|
||||||
from azure.mgmt.compute import ComputeManagementClient, ComputeManagementClientConfiguration
|
from azure.mgmt.compute import ComputeManagementClient, ComputeManagementClientConfiguration
|
||||||
from azure.mgmt.compute.operations import (AvailabilitySetsOperations,
|
from azure.mgmt.compute.operations import (AvailabilitySetsOperations,
|
||||||
VirtualMachineExtensionImagesOperations,
|
VirtualMachineExtensionImagesOperations,
|
||||||
|
@ -9,6 +10,11 @@ from azure.mgmt.compute.operations import (AvailabilitySetsOperations,
|
||||||
VirtualMachineScaleSetsOperations,
|
VirtualMachineScaleSetsOperations,
|
||||||
VirtualMachineScaleSetVMsOperations)
|
VirtualMachineScaleSetVMsOperations)
|
||||||
|
|
||||||
|
from azure.cli.command_modules.vm.mgmt.lib import (ResourceManagementClient as VMClient,
|
||||||
|
ResourceManagementClientConfiguration
|
||||||
|
as VMClientConfig)
|
||||||
|
from azure.cli.command_modules.vm.mgmt.lib.operations import VMOperations
|
||||||
|
|
||||||
from azure.cli.commands._command_creation import get_mgmt_service_client
|
from azure.cli.commands._command_creation import get_mgmt_service_client
|
||||||
from azure.cli.commands._auto_command import build_operation, AutoCommandDefinition
|
from azure.cli.commands._auto_command import build_operation, AutoCommandDefinition
|
||||||
from azure.cli.commands import CommandTable, LongRunningOperation
|
from azure.cli.commands import CommandTable, LongRunningOperation
|
||||||
|
@ -129,3 +135,78 @@ build_operation("vm scalesetvm",
|
||||||
AutoCommandDefinition(VirtualMachineScaleSetVMsOperations.start, LongRunningOperation(L('Starting VM scale set VMs'), L('VM scale set VMs started'))),
|
AutoCommandDefinition(VirtualMachineScaleSetVMsOperations.start, LongRunningOperation(L('Starting VM scale set VMs'), L('VM scale set VMs started'))),
|
||||||
],
|
],
|
||||||
command_table)
|
command_table)
|
||||||
|
|
||||||
|
# BUG: waiting on https://github.com/Azure/azure-cli/issues/115 to remove these specific params
|
||||||
|
VM_SPECIFIC_PARAMS = {
|
||||||
|
'deployment_parameter__artifacts_location_value': {
|
||||||
|
'name': '--_artifacts_location',
|
||||||
|
'help': argparse.SUPPRESS
|
||||||
|
},
|
||||||
|
'deployment_parameter_os_publisher_value': {
|
||||||
|
'name': '--os-publisher',
|
||||||
|
'metavar': 'OSPUBLISHER',
|
||||||
|
},
|
||||||
|
'deployment_parameter_admin_password_value': {
|
||||||
|
'name': '--admin-password',
|
||||||
|
'metavar': 'ADMINPASSWORD',
|
||||||
|
'required': True
|
||||||
|
},
|
||||||
|
'deployment_parameter_ip_address_type_value': {
|
||||||
|
'name': '--ip-address-type',
|
||||||
|
'metavar': 'IPADDRESSTYPE',
|
||||||
|
},
|
||||||
|
'deployment_parameter_storage_type_value': {
|
||||||
|
'name': '--storage-type',
|
||||||
|
'metavar': 'STORAGETYPE',
|
||||||
|
},
|
||||||
|
'deployment_parameter_size_value': {
|
||||||
|
'name': '--size',
|
||||||
|
'metavar': 'SIZE',
|
||||||
|
},
|
||||||
|
'deployment_parameter_admin_username_value': {
|
||||||
|
'name': '--admin-username',
|
||||||
|
'metavar': 'ADMINUSERNAME',
|
||||||
|
'required': True
|
||||||
|
},
|
||||||
|
'deployment_parameter_dns_name_for_public_ip_value': {
|
||||||
|
'name': '--dns-name-for-public-ip',
|
||||||
|
'metavar': 'DNSNAMEFORPUBLICIP',
|
||||||
|
'required': True
|
||||||
|
},
|
||||||
|
'deployment_parameter_ip_address_prefix_value': {
|
||||||
|
'name': '--ip-address-prefix',
|
||||||
|
'metavar': 'IPADDRESSPREFIX',
|
||||||
|
},
|
||||||
|
'deployment_parameter_virtual_machine_name_value': {
|
||||||
|
'name': '--virtual-machine-name',
|
||||||
|
'metavar': 'VIRTUALMACHINENAME',
|
||||||
|
'required': True
|
||||||
|
},
|
||||||
|
'deployment_parameter_subnet_prefix_value': {
|
||||||
|
'name': '--subnet-prefix',
|
||||||
|
'metavar': 'SUBNETPREFIX',
|
||||||
|
},
|
||||||
|
'deployment_parameter_os_sku_value': {
|
||||||
|
'name': '--os-sku',
|
||||||
|
'metavar': 'OSSKU',
|
||||||
|
},
|
||||||
|
'deployment_parameter_os_offer_value': {
|
||||||
|
'name': '--os-offer',
|
||||||
|
'metavar': 'OSOFFER',
|
||||||
|
},
|
||||||
|
'deployment_parameter_os_version_value': {
|
||||||
|
'name': '--os-version',
|
||||||
|
'metavar': 'OSVERSION',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
build_operation('vm',
|
||||||
|
'virtual_machine',
|
||||||
|
lambda _: get_mgmt_service_client(VMClient, VMClientConfig),
|
||||||
|
[
|
||||||
|
AutoCommandDefinition(VMOperations.create_or_update,
|
||||||
|
LongRunningOperation(L('Creating virtual machine'), L('Virtual machine created')),
|
||||||
|
'create')
|
||||||
|
],
|
||||||
|
command_table,
|
||||||
|
VM_SPECIFIC_PARAMS)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
|
@ -0,0 +1,324 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"adminUsername": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1,
|
||||||
|
"metadata": {
|
||||||
|
"description": "Username for the Virtual Machine."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"adminPassword": {
|
||||||
|
"type": "securestring",
|
||||||
|
"minLength": 1,
|
||||||
|
"metadata": {
|
||||||
|
"description": "Password for the Virtual Machine."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dnsNameForPublicIP": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1,
|
||||||
|
"metadata": {
|
||||||
|
"description": "Globally unique DNS Name for the Public IP used to access the Virtual Machine."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"virtualMachineName": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1,
|
||||||
|
"metadata": {
|
||||||
|
"description": "The VM name that is displayed in the portal."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"os": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "WinServer 2012 R2",
|
||||||
|
"allowedValues": [
|
||||||
|
"Ubuntu 14.04",
|
||||||
|
"Ubuntu 15.10",
|
||||||
|
"WinServer 2012 R2",
|
||||||
|
"Custom"
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"description": "Common OS choices. Choose 'Custom' to specify an image with the osPublisher, osOffer, osSKU, and osVersion parameters."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"osPublisher": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "MicrosoftWindowsServer",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The OS publisher of the OS image."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"osOffer": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "WindowsServer",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The OS Offer to install."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"osSKU": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "2012-R2-Datacenter",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The OS SKU to install."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"osVersion": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "latest",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The OS version to install."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "Standard_A2",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The VM Size that should be created."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"storageType": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "Standard_LRS",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The VM storage type."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"newOrExistingVNet": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "new",
|
||||||
|
"allowedValues": [
|
||||||
|
"new",
|
||||||
|
"existing"
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"description": "Whether to use an existing VNet or create a new one."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"virtualNetworkName": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "[concat('MyVNET', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"metadata": {
|
||||||
|
"description": "Name of virtual network to add VM to."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"virtualNetworkIpAddressType": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "Dynamic",
|
||||||
|
"allowedValues": [
|
||||||
|
"Dynamic",
|
||||||
|
"Static"
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"description": "Dynamic or Static IP address allocation."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"virtualNetworkIpAddressPrefix": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "10.0.0.0/16",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The IP address prefix."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"subnetIpAddressPrefix": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "10.0.0.0/24",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The subnet address type."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"subnetName": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "Subnet1",
|
||||||
|
"metadata": {
|
||||||
|
"description": "The subnet name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_artifactsLocation": {
|
||||||
|
"type": "string",
|
||||||
|
"defaultValue": "https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM",
|
||||||
|
"metadata": {
|
||||||
|
"description": "Container URI of of the template."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
"imagePublishers": {
|
||||||
|
"Ubuntu 14.04": "Canonical",
|
||||||
|
"Ubuntu 15.10": "Canonical",
|
||||||
|
"WinServer 2012 R2": "MicrosoftWindowsServer",
|
||||||
|
"Custom": "[parameters('osPublisher')]"
|
||||||
|
},
|
||||||
|
"imageOffers": {
|
||||||
|
"Ubuntu 14.04": "UbuntuServer",
|
||||||
|
"Ubuntu 15.10": "UbuntuServer",
|
||||||
|
"WinServer 2012 R2": "WindowsServer",
|
||||||
|
"Custom": "[parameters('osOffer')]"
|
||||||
|
},
|
||||||
|
"imageSkus": {
|
||||||
|
"Ubuntu 14.04": "14.04.4-DAILY-LTS",
|
||||||
|
"Ubuntu 15.10": "15.10",
|
||||||
|
"WinServer 2012 R2": "2012-R2-Datacenter",
|
||||||
|
"Custom": "[parameters('osSKU')]"
|
||||||
|
},
|
||||||
|
"imageVersions": {
|
||||||
|
"Ubuntu 14.04": "14.04.201603140",
|
||||||
|
"Ubuntu 15.10": "15.10.201603290",
|
||||||
|
"WinServer 2012 R2": "latest",
|
||||||
|
"Custom": "[parameters('osVersion')]"
|
||||||
|
},
|
||||||
|
"OSDiskName": "osdiskimage",
|
||||||
|
"nicName": "[concat('MyVMNic', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"vnetAddressPrefix": "[parameters('virtualNetworkIpAddressPrefix')]",
|
||||||
|
"subnetName": "[parameters('subnetName')]",
|
||||||
|
"subnetAddressPrefix": "[parameters('subnetIpAddressPrefix')]",
|
||||||
|
"vhdStorageType": "[parameters('storageType')]",
|
||||||
|
"publicIPAddressName": "[concat('myPublicIP', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"publicvirtualNetworkIpAddressType": "[parameters('virtualNetworkIpAddressType')]",
|
||||||
|
"vhdStorageContainerName": "vhds",
|
||||||
|
"vmName": "[parameters('virtualMachineName')]",
|
||||||
|
"vmSize": "[parameters('size')]",
|
||||||
|
"vnetName": "[parameters('virtualNetworkName')]",
|
||||||
|
"vnetId": "[resourceId('Microsoft.Network/virtualNetworks', variables('vnetName'))]",
|
||||||
|
"subnetRef": "[concat(variables('vnetId'), '/subnets/', variables('subnetName'))]",
|
||||||
|
"vhdStorageName": "[concat('vhdstorage', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"vnetTemplateFilePaths": {
|
||||||
|
"new": "nested_templates/NewVNet.json",
|
||||||
|
"existing": "nested_templates/ExistingVNet.json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"type": "Microsoft.Storage/storageAccounts",
|
||||||
|
"name": "[variables('vhdStorageName')]",
|
||||||
|
"apiVersion": "2015-06-15",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "StorageAccount"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"accountType": "[variables('vhdStorageType')]"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"apiVersion": "2015-06-15",
|
||||||
|
"type": "Microsoft.Network/publicIPAddresses",
|
||||||
|
"name": "[variables('publicIPAddressName')]",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "PublicIPAddress"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"publicIPAllocationMethod": "[variables('publicvirtualNetworkIpAddressType')]",
|
||||||
|
"dnsSettings": {
|
||||||
|
"domainNameLabel": "[parameters('dnsNameForPublicIP')]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"apiVersion": "2015-06-15",
|
||||||
|
"type": "Microsoft.Network/networkInterfaces",
|
||||||
|
"name": "[variables('nicName')]",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "NetworkInterface"
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
|
||||||
|
"[concat('Microsoft.Resources/deployments/', 'VirtualNetwork')]"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"ipConfigurations": [
|
||||||
|
{
|
||||||
|
"name": "[concat('ipconfig1', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"properties": {
|
||||||
|
"privateIPAllocationMethod": "Dynamic",
|
||||||
|
"publicIPAddress": {
|
||||||
|
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('publicIPAddressName'))]"
|
||||||
|
},
|
||||||
|
"subnet": {
|
||||||
|
"id": "[variables('subnetRef')]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"apiVersion": "2015-06-15",
|
||||||
|
"type": "Microsoft.Compute/virtualMachines",
|
||||||
|
"name": "[variables('vmName')]",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "VirtualMachine"
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
"[concat('Microsoft.Storage/storageAccounts/', variables('vhdStorageName'))]",
|
||||||
|
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"hardwareProfile": {
|
||||||
|
"vmSize": "[variables('vmSize')]"
|
||||||
|
},
|
||||||
|
"osProfile": {
|
||||||
|
"computerName": "[variables('vmName')]",
|
||||||
|
"adminUsername": "[parameters('adminUsername')]",
|
||||||
|
"adminPassword": "[parameters('adminPassword')]"
|
||||||
|
},
|
||||||
|
"storageProfile": {
|
||||||
|
"imageReference": {
|
||||||
|
"publisher": "[variables('imagePublishers')[parameters('os')]]",
|
||||||
|
"offer": "[variables('imageOffers')[parameters('os')]]",
|
||||||
|
"sku": "[variables('imageSkus')[parameters('os')]]",
|
||||||
|
"version": "[variables('imageVersions')[parameters('os')]]"
|
||||||
|
},
|
||||||
|
"osDisk": {
|
||||||
|
"name": "[concat('osdisk', uniqueString(parameters('dnsNameForPublicIP')))]",
|
||||||
|
"vhd": {
|
||||||
|
"uri": "[concat('http://', variables('vhdStorageName'), '.blob.core.windows.net/', variables('vhdStorageContainerName'), '/', variables('OSDiskName'), '.vhd')]"
|
||||||
|
},
|
||||||
|
"caching": "ReadWrite",
|
||||||
|
"createOption": "FromImage"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"networkProfile": {
|
||||||
|
"networkInterfaces": [
|
||||||
|
{
|
||||||
|
"id": "[resourceId('Microsoft.Network/networkInterfaces', variables('nicName'))]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "VirtualNetwork",
|
||||||
|
"type": "Microsoft.Resources/deployments",
|
||||||
|
"apiVersion": "2015-01-01",
|
||||||
|
"dependsOn": [ ],
|
||||||
|
"properties": {
|
||||||
|
"mode": "Incremental",
|
||||||
|
"templateLink": {
|
||||||
|
"uri": "[concat(parameters('_artifactsLocation'), '/', variables('vnetTemplateFilePaths')[parameters('newOrExistingVNet')])]",
|
||||||
|
"contentVersion": "1.0.0.0"
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"vnetName": { "value": "[variables('vnetName')]" },
|
||||||
|
"vnetIpAddressType": { "value": "[parameters('virtualNetworkIpAddressType')]" },
|
||||||
|
"vnetIpAddressPrefix": { "value": "[variables('vnetAddressPrefix')]" },
|
||||||
|
"subnetIpAddressPrefix": { "value": "[variables('subnetAddressPrefix')]" },
|
||||||
|
"subnetName": { "value": "[variables('subnetName')]" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"NewVM": {
|
||||||
|
"type": "object",
|
||||||
|
"value": "[reference(variables('vmName'))]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from .resource_management_client import ResourceManagementClient, ResourceManagementClientConfiguration
|
||||||
|
from .version import VERSION
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'ResourceManagementClient',
|
||||||
|
'ResourceManagementClientConfiguration'
|
||||||
|
]
|
||||||
|
|
||||||
|
__version__ = VERSION
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.authentication import (
|
||||||
|
BasicAuthentication,
|
||||||
|
BasicTokenAuthentication,
|
||||||
|
OAuthTokenAuthentication)
|
||||||
|
|
||||||
|
from msrestazure.azure_active_directory import (
|
||||||
|
InteractiveCredentials,
|
||||||
|
ServicePrincipalCredentials,
|
||||||
|
UserPassCredentials)
|
|
@ -0,0 +1,20 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.exceptions import (
|
||||||
|
ClientException,
|
||||||
|
SerializationError,
|
||||||
|
DeserializationError,
|
||||||
|
TokenExpiredError,
|
||||||
|
ClientRequestError,
|
||||||
|
AuthenticationError,
|
||||||
|
HttpOperationError,
|
||||||
|
ValidationError,
|
||||||
|
)
|
||||||
|
|
||||||
|
from msrestazure.azure_exceptions import CloudError
|
|
@ -0,0 +1,33 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from .deployment_vm import DeploymentVM
|
||||||
|
from .template_link import TemplateLink
|
||||||
|
from .parameters_link import ParametersLink
|
||||||
|
from .provider_resource_type import ProviderResourceType
|
||||||
|
from .provider import Provider
|
||||||
|
from .basic_dependency import BasicDependency
|
||||||
|
from .dependency import Dependency
|
||||||
|
from .deployment_properties_extended import DeploymentPropertiesExtended
|
||||||
|
from .deployment_extended import DeploymentExtended
|
||||||
|
from .resource_management_client_enums import (
|
||||||
|
DeploymentMode,
|
||||||
|
)
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'DeploymentVM',
|
||||||
|
'TemplateLink',
|
||||||
|
'ParametersLink',
|
||||||
|
'ProviderResourceType',
|
||||||
|
'Provider',
|
||||||
|
'BasicDependency',
|
||||||
|
'Dependency',
|
||||||
|
'DeploymentPropertiesExtended',
|
||||||
|
'DeploymentExtended',
|
||||||
|
'DeploymentMode',
|
||||||
|
]
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class BasicDependency(Model):
|
||||||
|
"""
|
||||||
|
Deployment dependency information.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the ID of the dependency.
|
||||||
|
:param str resource_type: Gets or sets the dependency resource type.
|
||||||
|
:param str resource_name: Gets or sets the dependency resource name.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'resource_type': {'key': 'resourceType', 'type': 'str'},
|
||||||
|
'resource_name': {'key': 'resourceName', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, resource_type=None, resource_name=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.resource_type = resource_type
|
||||||
|
self.resource_name = resource_name
|
|
@ -0,0 +1,33 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class Dependency(Model):
|
||||||
|
"""
|
||||||
|
Deployment dependency information.
|
||||||
|
|
||||||
|
:param list depends_on: Gets the list of dependencies.
|
||||||
|
:param str id: Gets or sets the ID of the dependency.
|
||||||
|
:param str resource_type: Gets or sets the dependency resource type.
|
||||||
|
:param str resource_name: Gets or sets the dependency resource name.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'},
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'resource_type': {'key': 'resourceType', 'type': 'str'},
|
||||||
|
'resource_name': {'key': 'resourceName', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, depends_on=None, id=None, resource_type=None, resource_name=None, **kwargs):
|
||||||
|
self.depends_on = depends_on
|
||||||
|
self.id = id
|
||||||
|
self.resource_type = resource_type
|
||||||
|
self.resource_name = resource_name
|
|
@ -0,0 +1,35 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentExtended(Model):
|
||||||
|
"""
|
||||||
|
Deployment information.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the ID of the deployment.
|
||||||
|
:param str name: Gets or sets the name of the deployment.
|
||||||
|
:param DeploymentPropertiesExtended properties: Gets or sets deployment
|
||||||
|
properties.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'name': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, name, id=None, properties=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.name = name
|
||||||
|
self.properties = properties
|
|
@ -0,0 +1,24 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentExtendedFilter(Model):
|
||||||
|
"""
|
||||||
|
Deployment filter.
|
||||||
|
|
||||||
|
:param str provisioning_state: Gets or sets the provisioning state.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, provisioning_state=None, **kwargs):
|
||||||
|
self.provisioning_state = provisioning_state
|
|
@ -0,0 +1,51 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentKeyVault(Model):
|
||||||
|
"""
|
||||||
|
Deployment operation parameters.
|
||||||
|
|
||||||
|
:param str uri: URI referencing the template. Default value:
|
||||||
|
"https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-key-vault-create/azuredeploy.json"
|
||||||
|
.
|
||||||
|
:param str content_version: If included it must match the ContentVersion
|
||||||
|
in the template.
|
||||||
|
:param str deployment_parameter_tenant_id_value:
|
||||||
|
:param str deployment_parameter_vault_name_value:
|
||||||
|
:param str deployment_parameter_location_value:
|
||||||
|
:param str deployment_parameter_object_id_value:
|
||||||
|
:param str mode: Gets or sets the deployment mode. Default value:
|
||||||
|
"Incremental" .
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'uri': {'required': True},
|
||||||
|
'mode': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'uri': {'key': 'properties.templateLink.uri', 'type': 'str'},
|
||||||
|
'content_version': {'key': 'properties.templateLink.contentVersion', 'type': 'str'},
|
||||||
|
'deployment_parameter_tenant_id_value': {'key': 'properties.parameters.tenantId.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_vault_name_value': {'key': 'properties.parameters.keyVaultName.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_location_value': {'key': 'properties.parameters.location.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_object_id_value': {'key': 'properties.parameters.objectId.value', 'type': 'str'},
|
||||||
|
'mode': {'key': 'properties.mode', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, content_version=None, deployment_parameter_tenant_id_value=None, deployment_parameter_vault_name_value=None, deployment_parameter_location_value=None, deployment_parameter_object_id_value=None, **kwargs):
|
||||||
|
self.uri = "https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-key-vault-create/azuredeploy.json"
|
||||||
|
self.content_version = content_version
|
||||||
|
self.deployment_parameter_tenant_id_value = deployment_parameter_tenant_id_value
|
||||||
|
self.deployment_parameter_vault_name_value = deployment_parameter_vault_name_value
|
||||||
|
self.deployment_parameter_location_value = deployment_parameter_location_value
|
||||||
|
self.deployment_parameter_object_id_value = deployment_parameter_object_id_value
|
||||||
|
self.mode = "Incremental"
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentListResult(Model):
|
||||||
|
"""
|
||||||
|
List of deployments.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of deployments.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[DeploymentExtended]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, value=None, next_link=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,31 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentOperation(Model):
|
||||||
|
"""
|
||||||
|
Deployment operation information.
|
||||||
|
|
||||||
|
:param str id: Gets or sets full deployment operation id.
|
||||||
|
:param str operation_id: Gets or sets deployment operation id.
|
||||||
|
:param DeploymentOperationProperties properties: Gets or sets deployment
|
||||||
|
properties.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'operation_id': {'key': 'operationId', 'type': 'str'},
|
||||||
|
'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, operation_id=None, properties=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.operation_id = operation_id
|
||||||
|
self.properties = properties
|
|
@ -0,0 +1,37 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentOperationProperties(Model):
|
||||||
|
"""
|
||||||
|
Deployment operation properties.
|
||||||
|
|
||||||
|
:param str provisioning_state: Gets or sets the state of the provisioning.
|
||||||
|
:param datetime timestamp: Gets or sets the date and time of the
|
||||||
|
operation.
|
||||||
|
:param str status_code: Gets or sets operation status code.
|
||||||
|
:param object status_message: Gets or sets operation status message.
|
||||||
|
:param TargetResource target_resource: Gets or sets the target resource.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
|
||||||
|
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
|
||||||
|
'status_code': {'key': 'statusCode', 'type': 'str'},
|
||||||
|
'status_message': {'key': 'statusMessage', 'type': 'object'},
|
||||||
|
'target_resource': {'key': 'targetResource', 'type': 'TargetResource'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, provisioning_state=None, timestamp=None, status_code=None, status_message=None, target_resource=None, **kwargs):
|
||||||
|
self.provisioning_state = provisioning_state
|
||||||
|
self.timestamp = timestamp
|
||||||
|
self.status_code = status_code
|
||||||
|
self.status_message = status_message
|
||||||
|
self.target_resource = target_resource
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentOperationsListResult(Model):
|
||||||
|
"""
|
||||||
|
List of deployment operations.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of deployments.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[DeploymentOperation]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, value=None, next_link=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,63 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentPropertiesExtended(Model):
|
||||||
|
"""
|
||||||
|
Deployment properties with additional details.
|
||||||
|
|
||||||
|
:param str provisioning_state: Gets or sets the state of the provisioning.
|
||||||
|
:param str correlation_id: Gets or sets the correlation ID of the
|
||||||
|
deployment.
|
||||||
|
:param datetime timestamp: Gets or sets the timestamp of the template
|
||||||
|
deployment.
|
||||||
|
:param object outputs: Gets or sets key/value pairs that represent
|
||||||
|
deploymentoutput.
|
||||||
|
:param list providers: Gets the list of resource providers needed for the
|
||||||
|
deployment.
|
||||||
|
:param list dependencies: Gets the list of deployment dependencies.
|
||||||
|
:param object template: Gets or sets the template content. Use only one
|
||||||
|
of Template or TemplateLink.
|
||||||
|
:param TemplateLink template_link: Gets or sets the URI referencing the
|
||||||
|
template. Use only one of Template or TemplateLink.
|
||||||
|
:param object parameters: Deployment parameters. Use only one of
|
||||||
|
Parameters or ParametersLink.
|
||||||
|
:param ParametersLink parameters_link: Gets or sets the URI referencing
|
||||||
|
the parameters. Use only one of Parameters or ParametersLink.
|
||||||
|
:param str mode: Gets or sets the deployment mode. Possible values
|
||||||
|
include: 'Incremental', 'Complete'
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
|
||||||
|
'correlation_id': {'key': 'correlationId', 'type': 'str'},
|
||||||
|
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
|
||||||
|
'outputs': {'key': 'outputs', 'type': 'object'},
|
||||||
|
'providers': {'key': 'providers', 'type': '[Provider]'},
|
||||||
|
'dependencies': {'key': 'dependencies', 'type': '[Dependency]'},
|
||||||
|
'template': {'key': 'template', 'type': 'object'},
|
||||||
|
'template_link': {'key': 'TemplateLink', 'type': 'TemplateLink'},
|
||||||
|
'parameters': {'key': 'parameters', 'type': 'object'},
|
||||||
|
'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'},
|
||||||
|
'mode': {'key': 'mode', 'type': 'DeploymentMode'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, provisioning_state=None, correlation_id=None, timestamp=None, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, **kwargs):
|
||||||
|
self.provisioning_state = provisioning_state
|
||||||
|
self.correlation_id = correlation_id
|
||||||
|
self.timestamp = timestamp
|
||||||
|
self.outputs = outputs
|
||||||
|
self.providers = providers
|
||||||
|
self.dependencies = dependencies
|
||||||
|
self.template = template
|
||||||
|
self.template_link = template_link
|
||||||
|
self.parameters = parameters
|
||||||
|
self.parameters_link = parameters_link
|
||||||
|
self.mode = mode
|
|
@ -0,0 +1,29 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentValidateResult(Model):
|
||||||
|
"""
|
||||||
|
Information from validate template deployment response.
|
||||||
|
|
||||||
|
:param ResourceManagementErrorWithDetails error: Gets or sets validation
|
||||||
|
error.
|
||||||
|
:param DeploymentPropertiesExtended properties: Gets or sets the template
|
||||||
|
deployment properties.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'},
|
||||||
|
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, error=None, properties=None, **kwargs):
|
||||||
|
self.error = error
|
||||||
|
self.properties = properties
|
|
@ -0,0 +1,92 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentVM(Model):
|
||||||
|
"""
|
||||||
|
Deployment operation parameters.
|
||||||
|
|
||||||
|
:param str uri: URI referencing the template. Default value:
|
||||||
|
"https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
|
||||||
|
.
|
||||||
|
:param str content_version: If included it must match the ContentVersion
|
||||||
|
in the template.
|
||||||
|
:param str deployment_parameter__artifacts_location_value: The container
|
||||||
|
URI of the template.
|
||||||
|
:param str deployment_parameter_os_publisher_value: The OS publisher of
|
||||||
|
the OS image.
|
||||||
|
:param str deployment_parameter_admin_password_value: Password for the
|
||||||
|
Virtual Machine.
|
||||||
|
:param str deployment_parameter_ip_address_type_value: Dynamic or Static
|
||||||
|
IP address allocation.
|
||||||
|
:param str deployment_parameter_storage_type_value: The VM storage type.
|
||||||
|
:param str deployment_parameter_size_value: The VM Size that should be
|
||||||
|
created.
|
||||||
|
:param str deployment_parameter_admin_username_value: Username for the
|
||||||
|
Virtual Machine.
|
||||||
|
:param str deployment_parameter_dns_name_for_public_ip_value: Globally
|
||||||
|
unique DNS Name for the Public IP used to access the Virtual Machine.
|
||||||
|
:param str deployment_parameter_ip_address_prefix_value: The IP address
|
||||||
|
prefix.
|
||||||
|
:param str deployment_parameter_virtual_machine_name_value: The VM name
|
||||||
|
that is displayed in the portal.
|
||||||
|
:param str deployment_parameter_subnet_prefix_value: The subnet address
|
||||||
|
type.
|
||||||
|
:param str deployment_parameter_os_sku_value: The OS SKU to install.
|
||||||
|
:param str deployment_parameter_os_offer_value: The OS Offer to install.
|
||||||
|
:param str deployment_parameter_os_version_value: The OS version to
|
||||||
|
install.
|
||||||
|
:param str mode: Gets or sets the deployment mode. Default value:
|
||||||
|
"Incremental" .
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'uri': {'required': True},
|
||||||
|
'mode': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'uri': {'key': 'properties.templateLink.uri', 'type': 'str'},
|
||||||
|
'content_version': {'key': 'properties.templateLink.contentVersion', 'type': 'str'},
|
||||||
|
'deployment_parameter__artifacts_location_value': {'key': 'properties.parameters._artifactsLocation.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_os_publisher_value': {'key': 'properties.parameters.osPublisher.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_admin_password_value': {'key': 'properties.parameters.adminPassword.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_ip_address_type_value': {'key': 'properties.parameters.ipAddressType.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_storage_type_value': {'key': 'properties.parameters.storageType.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_size_value': {'key': 'properties.parameters.size.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_admin_username_value': {'key': 'properties.parameters.adminUsername.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_dns_name_for_public_ip_value': {'key': 'properties.parameters.dnsNameForPublicIP.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_ip_address_prefix_value': {'key': 'properties.parameters.ipAddressPrefix.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_virtual_machine_name_value': {'key': 'properties.parameters.virtualMachineName.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_subnet_prefix_value': {'key': 'properties.parameters.subnetPrefix.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_os_sku_value': {'key': 'properties.parameters.osSKU.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_os_offer_value': {'key': 'properties.parameters.osOffer.value', 'type': 'str'},
|
||||||
|
'deployment_parameter_os_version_value': {'key': 'properties.parameters.osVersion.value', 'type': 'str'},
|
||||||
|
'mode': {'key': 'properties.mode', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, content_version=None, deployment_parameter__artifacts_location_value=None, deployment_parameter_os_publisher_value=None, deployment_parameter_admin_password_value=None, deployment_parameter_ip_address_type_value=None, deployment_parameter_storage_type_value=None, deployment_parameter_size_value=None, deployment_parameter_admin_username_value=None, deployment_parameter_dns_name_for_public_ip_value=None, deployment_parameter_ip_address_prefix_value=None, deployment_parameter_virtual_machine_name_value=None, deployment_parameter_subnet_prefix_value=None, deployment_parameter_os_sku_value=None, deployment_parameter_os_offer_value=None, deployment_parameter_os_version_value=None, **kwargs):
|
||||||
|
self.uri = "https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
|
||||||
|
self.content_version = content_version
|
||||||
|
self.deployment_parameter__artifacts_location_value = deployment_parameter__artifacts_location_value
|
||||||
|
self.deployment_parameter_os_publisher_value = deployment_parameter_os_publisher_value
|
||||||
|
self.deployment_parameter_admin_password_value = deployment_parameter_admin_password_value
|
||||||
|
self.deployment_parameter_ip_address_type_value = deployment_parameter_ip_address_type_value
|
||||||
|
self.deployment_parameter_storage_type_value = deployment_parameter_storage_type_value
|
||||||
|
self.deployment_parameter_size_value = deployment_parameter_size_value
|
||||||
|
self.deployment_parameter_admin_username_value = deployment_parameter_admin_username_value
|
||||||
|
self.deployment_parameter_dns_name_for_public_ip_value = deployment_parameter_dns_name_for_public_ip_value
|
||||||
|
self.deployment_parameter_ip_address_prefix_value = deployment_parameter_ip_address_prefix_value
|
||||||
|
self.deployment_parameter_virtual_machine_name_value = deployment_parameter_virtual_machine_name_value
|
||||||
|
self.deployment_parameter_subnet_prefix_value = deployment_parameter_subnet_prefix_value
|
||||||
|
self.deployment_parameter_os_sku_value = deployment_parameter_os_sku_value
|
||||||
|
self.deployment_parameter_os_offer_value = deployment_parameter_os_offer_value
|
||||||
|
self.deployment_parameter_os_version_value = deployment_parameter_os_version_value
|
||||||
|
self.mode = "Incremental"
|
|
@ -0,0 +1,42 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from .resource import Resource
|
||||||
|
|
||||||
|
|
||||||
|
class GenericResource(Resource):
|
||||||
|
"""
|
||||||
|
Resource information.
|
||||||
|
|
||||||
|
:param str id: Resource Id
|
||||||
|
:param str name: Resource name
|
||||||
|
:param str type: Resource type
|
||||||
|
:param str location: Resource location
|
||||||
|
:param dict tags: Resource tags
|
||||||
|
:param Plan plan: Gets or sets the plan of the resource.
|
||||||
|
:param object properties: Gets or sets the resource properties.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'location': {'required': 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}'},
|
||||||
|
'plan': {'key': 'plan', 'type': 'Plan'},
|
||||||
|
'properties': {'key': 'properties', 'type': 'object'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, location, id=None, name=None, type=None, tags=None, plan=None, properties=None, **kwargs):
|
||||||
|
super(GenericResource, self).__init__(id=id, name=name, type=type, location=location, tags=tags, **kwargs)
|
||||||
|
self.plan = plan
|
||||||
|
self.properties = properties
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class GenericResourceFilter(Model):
|
||||||
|
"""
|
||||||
|
Resource filter.
|
||||||
|
|
||||||
|
:param str resource_type: Gets or sets the resource type.
|
||||||
|
:param str tagname: Gets or sets the tag name.
|
||||||
|
:param str tagvalue: Gets or sets the tag value.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'resource_type': {'key': 'resourceType', 'type': 'str'},
|
||||||
|
'tagname': {'key': 'tagname', 'type': 'str'},
|
||||||
|
'tagvalue': {'key': 'tagvalue', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, resource_type=None, tagname=None, tagvalue=None, **kwargs):
|
||||||
|
self.resource_type = resource_type
|
||||||
|
self.tagname = tagname
|
||||||
|
self.tagvalue = tagvalue
|
|
@ -0,0 +1,32 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ParametersLink(Model):
|
||||||
|
"""
|
||||||
|
Entity representing the reference to the deployment paramaters.
|
||||||
|
|
||||||
|
:param str uri: URI referencing the template.
|
||||||
|
:param str content_version: If included it must match the ContentVersion
|
||||||
|
in the template.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'uri': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'uri': {'key': 'uri', 'type': 'str'},
|
||||||
|
'content_version': {'key': 'contentVersion', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, uri, content_version=None, **kwargs):
|
||||||
|
self.uri = uri
|
||||||
|
self.content_version = content_version
|
|
@ -0,0 +1,33 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class Plan(Model):
|
||||||
|
"""
|
||||||
|
Plan for the resource.
|
||||||
|
|
||||||
|
:param str name: Gets or sets the plan ID.
|
||||||
|
:param str publisher: Gets or sets the publisher ID.
|
||||||
|
:param str product: Gets or sets the offer ID.
|
||||||
|
:param str promotion_code: Gets or sets the promotion code.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
'publisher': {'key': 'publisher', 'type': 'str'},
|
||||||
|
'product': {'key': 'product', 'type': 'str'},
|
||||||
|
'promotion_code': {'key': 'promotionCode', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, name=None, publisher=None, product=None, promotion_code=None, **kwargs):
|
||||||
|
self.name = name
|
||||||
|
self.publisher = publisher
|
||||||
|
self.product = product
|
||||||
|
self.promotion_code = promotion_code
|
|
@ -0,0 +1,28 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class PolicyAssignment(Model):
|
||||||
|
"""
|
||||||
|
Policy assignment.
|
||||||
|
|
||||||
|
:param PolicyAssignmentProperties properties: Gets or sets the policy
|
||||||
|
assignment properties.
|
||||||
|
:param str name: Gets or sets the policy assignment name.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'properties': {'key': 'properties', 'type': 'PolicyAssignmentProperties'},
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, properties=None, name=None, **kwargs):
|
||||||
|
self.properties = properties
|
||||||
|
self.name = name
|
|
@ -0,0 +1,28 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class PolicyAssignmentListResult(Model):
|
||||||
|
"""
|
||||||
|
Policy assignment list operation result.
|
||||||
|
|
||||||
|
:param list value: Policy assignment list.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of policy
|
||||||
|
assignment results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[PolicyAssignment]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, value=None, next_link=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class PolicyAssignmentProperties(Model):
|
||||||
|
"""
|
||||||
|
Policy Assignment properties.
|
||||||
|
|
||||||
|
:param str scope: Gets or sets the policy assignment scope.
|
||||||
|
:param str display_name: Gets or sets the policy assignment display name.
|
||||||
|
:param str policy_definition_id: Gets or sets the policy definition Id.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'scope': {'key': 'scope', 'type': 'str'},
|
||||||
|
'display_name': {'key': 'displayName', 'type': 'str'},
|
||||||
|
'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, scope=None, display_name=None, policy_definition_id=None, **kwargs):
|
||||||
|
self.scope = scope
|
||||||
|
self.display_name = display_name
|
||||||
|
self.policy_definition_id = policy_definition_id
|
|
@ -0,0 +1,28 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class PolicyDefinition(Model):
|
||||||
|
"""
|
||||||
|
Policy definition.
|
||||||
|
|
||||||
|
:param PolicyDefinitionProperties properties: Gets or sets the policy
|
||||||
|
definition properties.
|
||||||
|
:param str name: Gets or sets the policy definition name.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'properties': {'key': 'properties', 'type': 'PolicyDefinitionProperties'},
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, properties=None, name=None, **kwargs):
|
||||||
|
self.properties = properties
|
||||||
|
self.name = name
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class PolicyDefinitionProperties(Model):
|
||||||
|
"""
|
||||||
|
Policy definition properties.
|
||||||
|
|
||||||
|
:param str description: Gets or sets the policy definition description.
|
||||||
|
:param str display_name: Gets or sets the policy definition display name.
|
||||||
|
:param object policy_rule: The policy rule json.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'description': {'key': 'description', 'type': 'str'},
|
||||||
|
'display_name': {'key': 'displayName', 'type': 'str'},
|
||||||
|
'policy_rule': {'key': 'policyRule', 'type': 'object'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, description=None, display_name=None, policy_rule=None, **kwargs):
|
||||||
|
self.description = description
|
||||||
|
self.display_name = display_name
|
||||||
|
self.policy_rule = policy_rule
|
|
@ -0,0 +1,35 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class Provider(Model):
|
||||||
|
"""
|
||||||
|
Resource provider information.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the provider id.
|
||||||
|
:param str namespace: Gets or sets the namespace of the provider.
|
||||||
|
:param str registration_state: Gets or sets the registration state of the
|
||||||
|
provider.
|
||||||
|
:param list resource_types: Gets or sets the collection of provider
|
||||||
|
resource types.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'namespace': {'key': 'namespace', 'type': 'str'},
|
||||||
|
'registration_state': {'key': 'registrationState', 'type': 'str'},
|
||||||
|
'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, namespace=None, registration_state=None, resource_types=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.namespace = namespace
|
||||||
|
self.registration_state = registration_state
|
||||||
|
self.resource_types = resource_types
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ProviderListResult(Model):
|
||||||
|
"""
|
||||||
|
List of resource providers.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of resource providers.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[Provider]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, value=None, next_link=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,34 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ProviderResourceType(Model):
|
||||||
|
"""
|
||||||
|
Resource type managed by the resource provider.
|
||||||
|
|
||||||
|
:param str resource_type: Gets or sets the resource type.
|
||||||
|
:param list locations: Gets or sets the collection of locations where
|
||||||
|
this resource type can be created in.
|
||||||
|
:param list api_versions: Gets or sets the api version.
|
||||||
|
:param dict properties: Gets or sets the properties.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'resource_type': {'key': 'resourceType', 'type': 'str'},
|
||||||
|
'locations': {'key': 'locations', 'type': '[str]'},
|
||||||
|
'api_versions': {'key': 'apiVersions', 'type': '[str]'},
|
||||||
|
'properties': {'key': 'properties', 'type': '{str}'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, resource_type=None, locations=None, api_versions=None, properties=None, **kwargs):
|
||||||
|
self.resource_type = resource_type
|
||||||
|
self.locations = locations
|
||||||
|
self.api_versions = api_versions
|
||||||
|
self.properties = properties
|
|
@ -0,0 +1,39 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class Resource(Model):
|
||||||
|
"""Resource
|
||||||
|
|
||||||
|
:param str id: Resource Id
|
||||||
|
:param str name: Resource name
|
||||||
|
:param str type: Resource type
|
||||||
|
:param str location: Resource location
|
||||||
|
:param dict tags: Resource tags
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'location': {'required': 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, id=None, name=None, type=None, tags=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.name = name
|
||||||
|
self.type = type
|
||||||
|
self.location = location
|
||||||
|
self.tags = tags
|
|
@ -0,0 +1,43 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceGroup(Model):
|
||||||
|
"""
|
||||||
|
Resource group information.
|
||||||
|
|
||||||
|
:param str id: Gets the ID of the resource group.
|
||||||
|
:param str name: Gets or sets the Name of the resource group.
|
||||||
|
:param ResourceGroupProperties properties:
|
||||||
|
:param str location: Gets or sets the location of the resource group. It
|
||||||
|
cannot be changed after the resource group has been created. Has to be
|
||||||
|
one of the supported Azure Locations, such as West US, East US, West
|
||||||
|
Europe, East Asia, etc.
|
||||||
|
:param dict tags: Gets or sets the tags attached to the resource group.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'location': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'},
|
||||||
|
'location': {'key': 'location', 'type': 'str'},
|
||||||
|
'tags': {'key': 'tags', 'type': '{str}'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, location, id=None, name=None, properties=None, tags=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.name = name
|
||||||
|
self.properties = properties
|
||||||
|
self.location = location
|
||||||
|
self.tags = tags
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceGroupFilter(Model):
|
||||||
|
"""
|
||||||
|
Resource group filter.
|
||||||
|
|
||||||
|
:param str tag_name: Gets or sets the tag name.
|
||||||
|
:param str tag_value: Gets or sets the tag value.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'tag_name': {'key': 'tagName', 'type': 'str'},
|
||||||
|
'tag_value': {'key': 'tagValue', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, tag_name=None, tag_value=None, **kwargs):
|
||||||
|
self.tag_name = tag_name
|
||||||
|
self.tag_value = tag_value
|
|
@ -0,0 +1,31 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceGroupListResult(Model):
|
||||||
|
"""
|
||||||
|
List of resource groups.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of resource groups.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'next_link': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[ResourceGroup]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, next_link, value=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,24 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceGroupProperties(Model):
|
||||||
|
"""
|
||||||
|
The resource group properties.
|
||||||
|
|
||||||
|
:param str provisioning_state: Gets resource group provisioning state.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, provisioning_state=None, **kwargs):
|
||||||
|
self.provisioning_state = provisioning_state
|
|
@ -0,0 +1,31 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceListResult(Model):
|
||||||
|
"""
|
||||||
|
List of resource groups.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of resource groups.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'next_link': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[GenericResource]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, next_link, value=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,15 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
|
class DeploymentMode(Enum):
|
||||||
|
|
||||||
|
incremental = "Incremental"
|
||||||
|
complete = "Complete"
|
|
@ -0,0 +1,35 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceManagementError(Model):
|
||||||
|
"""ResourceManagementError
|
||||||
|
|
||||||
|
:param str code: Gets or sets the error code returned from the server.
|
||||||
|
:param str message: Gets or sets the error message returned from the
|
||||||
|
server.
|
||||||
|
:param str target: Gets or sets the target of the error.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'code': {'required': True},
|
||||||
|
'message': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'code': {'key': 'code', 'type': 'str'},
|
||||||
|
'message': {'key': 'message', 'type': 'str'},
|
||||||
|
'target': {'key': 'target', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, code, message, target=None, **kwargs):
|
||||||
|
self.code = code
|
||||||
|
self.message = message
|
||||||
|
self.target = target
|
|
@ -0,0 +1,36 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from .resource_management_error import ResourceManagementError
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceManagementErrorWithDetails(ResourceManagementError):
|
||||||
|
"""ResourceManagementErrorWithDetails
|
||||||
|
|
||||||
|
:param str code: Gets or sets the error code returned from the server.
|
||||||
|
:param str message: Gets or sets the error message returned from the
|
||||||
|
server.
|
||||||
|
:param str target: Gets or sets the target of the error.
|
||||||
|
:param list details: Gets or sets validation error.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'code': {'required': True},
|
||||||
|
'message': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'code': {'key': 'code', 'type': 'str'},
|
||||||
|
'message': {'key': 'message', 'type': 'str'},
|
||||||
|
'target': {'key': 'target', 'type': 'str'},
|
||||||
|
'details': {'key': 'details', 'type': '[ResourceManagementError]'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, code, message, target=None, details=None, **kwargs):
|
||||||
|
super(ResourceManagementErrorWithDetails, self).__init__(code=code, message=message, target=target, **kwargs)
|
||||||
|
self.details = details
|
|
@ -0,0 +1,28 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceProviderOperationDefinition(Model):
|
||||||
|
"""
|
||||||
|
Resource provider operation information.
|
||||||
|
|
||||||
|
:param str name: Gets or sets the provider operation name.
|
||||||
|
:param ResourceProviderOperationDisplayProperties display: Gets or sets
|
||||||
|
the display property of the provider operation.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'name': {'key': 'name', 'type': 'str'},
|
||||||
|
'display': {'key': 'display', 'type': 'ResourceProviderOperationDisplayProperties'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, name=None, display=None, **kwargs):
|
||||||
|
self.name = name
|
||||||
|
self.display = display
|
|
@ -0,0 +1,24 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceProviderOperationDetailListResult(Model):
|
||||||
|
"""
|
||||||
|
List of resource provider operations.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of resource provider operations.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[ResourceProviderOperationDefinition]'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, value=None, **kwargs):
|
||||||
|
self.value = value
|
|
@ -0,0 +1,36 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceProviderOperationDisplayProperties(Model):
|
||||||
|
"""
|
||||||
|
Resource provider operation's display properties.
|
||||||
|
|
||||||
|
:param str publisher: Gets or sets operation description.
|
||||||
|
:param str provider: Gets or sets operation provider.
|
||||||
|
:param str resource: Gets or sets operation resource.
|
||||||
|
:param str operation: Gets or sets operation.
|
||||||
|
:param str description: Gets or sets operation description.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'publisher': {'key': 'publisher', 'type': 'str'},
|
||||||
|
'provider': {'key': 'provider', 'type': 'str'},
|
||||||
|
'resource': {'key': 'resource', 'type': 'str'},
|
||||||
|
'operation': {'key': 'operation', 'type': 'str'},
|
||||||
|
'description': {'key': 'description', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, publisher=None, provider=None, resource=None, operation=None, description=None, **kwargs):
|
||||||
|
self.publisher = publisher
|
||||||
|
self.provider = provider
|
||||||
|
self.resource = resource
|
||||||
|
self.operation = operation
|
||||||
|
self.description = description
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class ResourcesMoveInfo(Model):
|
||||||
|
"""
|
||||||
|
Parameters of move resources.
|
||||||
|
|
||||||
|
:param list resources: Gets or sets the ids of the resources.
|
||||||
|
:param str target_resource_group: The target resource group.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'resources': {'key': 'resources', 'type': '[str]'},
|
||||||
|
'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, resources=None, target_resource_group=None, **kwargs):
|
||||||
|
self.resources = resources
|
||||||
|
self.target_resource_group = target_resource_group
|
|
@ -0,0 +1,23 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class SubResource(Model):
|
||||||
|
"""SubResource
|
||||||
|
|
||||||
|
:param str id: Resource Id
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, **kwargs):
|
||||||
|
self.id = id
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TagCount(Model):
|
||||||
|
"""
|
||||||
|
Tag count.
|
||||||
|
|
||||||
|
:param str type: Type of count.
|
||||||
|
:param str value: Value of count.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'type': {'key': 'type', 'type': 'str'},
|
||||||
|
'value': {'key': 'value', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, type=None, value=None, **kwargs):
|
||||||
|
self.type = type
|
||||||
|
self.value = value
|
|
@ -0,0 +1,33 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TagDetails(Model):
|
||||||
|
"""
|
||||||
|
Tag details.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the tag ID.
|
||||||
|
:param str tag_name: Gets or sets the tag name.
|
||||||
|
:param TagCount count: Gets or sets the tag count.
|
||||||
|
:param list values: Gets or sets the list of tag values.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'tag_name': {'key': 'tagName', 'type': 'str'},
|
||||||
|
'count': {'key': 'count', 'type': 'TagCount'},
|
||||||
|
'values': {'key': 'values', 'type': '[TagValue]'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, tag_name=None, count=None, values=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.tag_name = tag_name
|
||||||
|
self.count = count
|
||||||
|
self.values = values
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TagValue(Model):
|
||||||
|
"""
|
||||||
|
Tag information.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the tag ID.
|
||||||
|
:param str tag_value: Gets or sets the tag value.
|
||||||
|
:param TagCount count: Gets or sets the tag value count.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'tag_value': {'key': 'tagValue', 'type': 'str'},
|
||||||
|
'count': {'key': 'count', 'type': 'TagCount'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, tag_value=None, count=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.tag_value = tag_value
|
||||||
|
self.count = count
|
|
@ -0,0 +1,31 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TagsListResult(Model):
|
||||||
|
"""
|
||||||
|
List of subscription tags.
|
||||||
|
|
||||||
|
:param list value: Gets or sets the list of tags.
|
||||||
|
:param str next_link: Gets or sets the URL to get the next set of results.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'next_link': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'value': {'key': 'value', 'type': '[TagDetails]'},
|
||||||
|
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, next_link, value=None, **kwargs):
|
||||||
|
self.value = value
|
||||||
|
self.next_link = next_link
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TargetResource(Model):
|
||||||
|
"""
|
||||||
|
Target resource.
|
||||||
|
|
||||||
|
:param str id: Gets or sets the ID of the resource.
|
||||||
|
:param str resource_name: Gets or sets the name of the resource.
|
||||||
|
:param str resource_type: Gets or sets the type of the resource.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'id': {'key': 'id', 'type': 'str'},
|
||||||
|
'resource_name': {'key': 'resourceName', 'type': 'str'},
|
||||||
|
'resource_type': {'key': 'resourceType', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, id=None, resource_name=None, resource_type=None, **kwargs):
|
||||||
|
self.id = id
|
||||||
|
self.resource_name = resource_name
|
||||||
|
self.resource_type = resource_type
|
|
@ -0,0 +1,34 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.serialization import Model
|
||||||
|
|
||||||
|
|
||||||
|
class TemplateLink(Model):
|
||||||
|
"""
|
||||||
|
Entity representing the reference to the template.
|
||||||
|
|
||||||
|
:param str uri: URI referencing the template. Default value:
|
||||||
|
"https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
|
||||||
|
.
|
||||||
|
:param str content_version: If included it must match the ContentVersion
|
||||||
|
in the template.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_validation = {
|
||||||
|
'uri': {'required': True},
|
||||||
|
}
|
||||||
|
|
||||||
|
_attribute_map = {
|
||||||
|
'uri': {'key': 'uri', 'type': 'str'},
|
||||||
|
'content_version': {'key': 'contentVersion', 'type': 'str'},
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, content_version=None, **kwargs):
|
||||||
|
self.uri = "https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
|
||||||
|
self.content_version = content_version
|
|
@ -0,0 +1,13 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from .vm_operations import VMOperations
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'VMOperations',
|
||||||
|
]
|
|
@ -0,0 +1,105 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.pipeline import ClientRawResponse
|
||||||
|
from msrest.exceptions import HttpOperationError
|
||||||
|
|
||||||
|
from .. import models
|
||||||
|
|
||||||
|
|
||||||
|
class Deployments(object):
|
||||||
|
"""Deployments operations.
|
||||||
|
|
||||||
|
:param client: Client for service requests.
|
||||||
|
:param config: Configuration of service client.
|
||||||
|
:param serializer: An object model serializer.
|
||||||
|
:param deserializer: An objec model deserializer.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, client, config, serializer, deserializer):
|
||||||
|
|
||||||
|
self._client = client
|
||||||
|
self._serialize = serializer
|
||||||
|
self._deserialize = deserializer
|
||||||
|
|
||||||
|
self.config = config
|
||||||
|
|
||||||
|
def create_or_update(
|
||||||
|
self, resource_group_name, deployment_name, template=None, template_link=None, vault_name=None, parameters_link=None, mode=None, custom_headers={}, raw=False, **operation_config):
|
||||||
|
"""
|
||||||
|
Create a named template deployment using a template.
|
||||||
|
|
||||||
|
:param resource_group_name: The name of the resource group. The name
|
||||||
|
is case insensitive.
|
||||||
|
:type resource_group_name: str
|
||||||
|
:param deployment_name: The name of the deployment.
|
||||||
|
:type deployment_name: str
|
||||||
|
:param template: Gets or sets the template content. Use only one of
|
||||||
|
Template or TemplateLink.
|
||||||
|
:type template: object
|
||||||
|
:param template_link: Gets or sets the URI referencing the template.
|
||||||
|
Use only one of Template or TemplateLink.
|
||||||
|
:type template_link: TemplateLinkKeyVault
|
||||||
|
:param vault_name: Vault Name!
|
||||||
|
:type vault_name: str
|
||||||
|
:param parameters_link: Gets or sets the URI referencing the
|
||||||
|
parameters. Use only one of Parameters or ParametersLink.
|
||||||
|
:type parameters_link: ParametersLink
|
||||||
|
:param mode: Gets or sets the deployment mode. Possible values
|
||||||
|
include: 'Incremental', 'Complete'
|
||||||
|
:type mode: str
|
||||||
|
:param dict custom_headers: headers that will be added to the request
|
||||||
|
:param boolean raw: returns the direct response alongside the
|
||||||
|
deserialized response
|
||||||
|
:rtype: DeploymentExtended
|
||||||
|
:rtype: msrest.pipeline.ClientRawResponse if raw=True
|
||||||
|
"""
|
||||||
|
parameters = models.DeploymentKeyVault(template=template, template_link=template_link, vault_name=vault_name, parameters_link=parameters_link, mode=mode)
|
||||||
|
|
||||||
|
# Construct URL
|
||||||
|
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
||||||
|
path_format_arguments = {
|
||||||
|
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', pattern='^[-\w\._]+$'),
|
||||||
|
'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'),
|
||||||
|
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
|
||||||
|
}
|
||||||
|
url = self._client.format_url(url, **path_format_arguments)
|
||||||
|
|
||||||
|
# Construct parameters
|
||||||
|
query_parameters = {}
|
||||||
|
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
|
||||||
|
|
||||||
|
# Construct headers
|
||||||
|
header_parameters = {}
|
||||||
|
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
|
||||||
|
if custom_headers:
|
||||||
|
header_parameters.update(custom_headers)
|
||||||
|
|
||||||
|
# Construct body
|
||||||
|
body_content = self._serialize.body(parameters, 'DeploymentKeyVault')
|
||||||
|
|
||||||
|
# Construct and send request
|
||||||
|
request = self._client.put(url, query_parameters)
|
||||||
|
response = self._client.send(
|
||||||
|
request, header_parameters, body_content, **operation_config)
|
||||||
|
|
||||||
|
if response.status_code not in [200, 201]:
|
||||||
|
raise HttpOperationError(self._deserialize, response)
|
||||||
|
|
||||||
|
deserialized = None
|
||||||
|
|
||||||
|
if response.status_code == 200:
|
||||||
|
deserialized = self._deserialize('DeploymentExtended', response)
|
||||||
|
if response.status_code == 201:
|
||||||
|
deserialized = self._deserialize('DeploymentExtended', response)
|
||||||
|
|
||||||
|
if raw:
|
||||||
|
client_raw_response = ClientRawResponse(deserialized, response)
|
||||||
|
return client_raw_response
|
||||||
|
|
||||||
|
return deserialized
|
|
@ -0,0 +1,159 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.pipeline import ClientRawResponse
|
||||||
|
from msrestazure.azure_exceptions import CloudError
|
||||||
|
from msrestazure.azure_operation import AzureOperationPoller
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
from .. import models
|
||||||
|
|
||||||
|
|
||||||
|
class VMOperations(object):
|
||||||
|
"""VMOperations operations.
|
||||||
|
|
||||||
|
:param client: Client for service requests.
|
||||||
|
:param config: Configuration of service client.
|
||||||
|
:param serializer: An object model serializer.
|
||||||
|
:param deserializer: An objec model deserializer.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, client, config, serializer, deserializer):
|
||||||
|
|
||||||
|
self._client = client
|
||||||
|
self._serialize = serializer
|
||||||
|
self._deserialize = deserializer
|
||||||
|
|
||||||
|
self.config = config
|
||||||
|
|
||||||
|
def create_or_update(
|
||||||
|
self, resource_group_name, deployment_name, content_version=None, deployment_parameter__artifacts_location_value=None, deployment_parameter_os_publisher_value=None, deployment_parameter_admin_password_value=None, deployment_parameter_ip_address_type_value=None, deployment_parameter_storage_type_value=None, deployment_parameter_size_value=None, deployment_parameter_admin_username_value=None, deployment_parameter_dns_name_for_public_ip_value=None, deployment_parameter_ip_address_prefix_value=None, deployment_parameter_virtual_machine_name_value=None, deployment_parameter_subnet_prefix_value=None, deployment_parameter_os_sku_value=None, deployment_parameter_os_offer_value=None, deployment_parameter_os_version_value=None, custom_headers={}, raw=False, **operation_config):
|
||||||
|
"""
|
||||||
|
Create a named template deployment using a template.
|
||||||
|
|
||||||
|
:param resource_group_name: The name of the resource group. The name
|
||||||
|
is case insensitive.
|
||||||
|
:type resource_group_name: str
|
||||||
|
:param deployment_name: The name of the deployment.
|
||||||
|
:type deployment_name: str
|
||||||
|
:param content_version: If included it must match the ContentVersion
|
||||||
|
in the template.
|
||||||
|
:type content_version: str
|
||||||
|
:param deployment_parameter__artifacts_location_value: The container
|
||||||
|
URI of the template.
|
||||||
|
:type deployment_parameter__artifacts_location_value: str
|
||||||
|
:param deployment_parameter_os_publisher_value: The OS publisher of
|
||||||
|
the OS image.
|
||||||
|
:type deployment_parameter_os_publisher_value: str
|
||||||
|
:param deployment_parameter_admin_password_value: Password for the
|
||||||
|
Virtual Machine.
|
||||||
|
:type deployment_parameter_admin_password_value: str
|
||||||
|
:param deployment_parameter_ip_address_type_value: Dynamic or Static
|
||||||
|
IP address allocation.
|
||||||
|
:type deployment_parameter_ip_address_type_value: str
|
||||||
|
:param deployment_parameter_storage_type_value: The VM storage type.
|
||||||
|
:type deployment_parameter_storage_type_value: str
|
||||||
|
:param deployment_parameter_size_value: The VM Size that should be
|
||||||
|
created.
|
||||||
|
:type deployment_parameter_size_value: str
|
||||||
|
:param deployment_parameter_admin_username_value: Username for the
|
||||||
|
Virtual Machine.
|
||||||
|
:type deployment_parameter_admin_username_value: str
|
||||||
|
:param deployment_parameter_dns_name_for_public_ip_value: Globally
|
||||||
|
unique DNS Name for the Public IP used to access the Virtual Machine.
|
||||||
|
:type deployment_parameter_dns_name_for_public_ip_value: str
|
||||||
|
:param deployment_parameter_ip_address_prefix_value: The IP address
|
||||||
|
prefix.
|
||||||
|
:type deployment_parameter_ip_address_prefix_value: str
|
||||||
|
:param deployment_parameter_virtual_machine_name_value: The VM name
|
||||||
|
that is displayed in the portal.
|
||||||
|
:type deployment_parameter_virtual_machine_name_value: str
|
||||||
|
:param deployment_parameter_subnet_prefix_value: The subnet address
|
||||||
|
type.
|
||||||
|
:type deployment_parameter_subnet_prefix_value: str
|
||||||
|
:param deployment_parameter_os_sku_value: The OS SKU to install.
|
||||||
|
:type deployment_parameter_os_sku_value: str
|
||||||
|
:param deployment_parameter_os_offer_value: The OS Offer to install.
|
||||||
|
:type deployment_parameter_os_offer_value: str
|
||||||
|
:param deployment_parameter_os_version_value: The OS version to
|
||||||
|
install.
|
||||||
|
:type deployment_parameter_os_version_value: str
|
||||||
|
:param dict custom_headers: headers that will be added to the request
|
||||||
|
:param boolean raw: returns the direct response alongside the
|
||||||
|
deserialized response
|
||||||
|
:rtype: DeploymentExtended
|
||||||
|
:rtype: msrest.pipeline.ClientRawResponse if raw=True
|
||||||
|
"""
|
||||||
|
parameters = models.DeploymentVM(content_version=content_version, deployment_parameter__artifacts_location_value=deployment_parameter__artifacts_location_value, deployment_parameter_os_publisher_value=deployment_parameter_os_publisher_value, deployment_parameter_admin_password_value=deployment_parameter_admin_password_value, deployment_parameter_ip_address_type_value=deployment_parameter_ip_address_type_value, deployment_parameter_storage_type_value=deployment_parameter_storage_type_value, deployment_parameter_size_value=deployment_parameter_size_value, deployment_parameter_admin_username_value=deployment_parameter_admin_username_value, deployment_parameter_dns_name_for_public_ip_value=deployment_parameter_dns_name_for_public_ip_value, deployment_parameter_ip_address_prefix_value=deployment_parameter_ip_address_prefix_value, deployment_parameter_virtual_machine_name_value=deployment_parameter_virtual_machine_name_value, deployment_parameter_subnet_prefix_value=deployment_parameter_subnet_prefix_value, deployment_parameter_os_sku_value=deployment_parameter_os_sku_value, deployment_parameter_os_offer_value=deployment_parameter_os_offer_value, deployment_parameter_os_version_value=deployment_parameter_os_version_value)
|
||||||
|
|
||||||
|
# Construct URL
|
||||||
|
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
||||||
|
path_format_arguments = {
|
||||||
|
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=1, pattern='^[-\w\._]+$'),
|
||||||
|
'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern='^[-\w\._]+$'),
|
||||||
|
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
|
||||||
|
}
|
||||||
|
url = self._client.format_url(url, **path_format_arguments)
|
||||||
|
|
||||||
|
# Construct parameters
|
||||||
|
query_parameters = {}
|
||||||
|
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
|
||||||
|
|
||||||
|
# Construct headers
|
||||||
|
header_parameters = {}
|
||||||
|
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
|
||||||
|
if self.config.generate_client_request_id:
|
||||||
|
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
|
||||||
|
if custom_headers:
|
||||||
|
header_parameters.update(custom_headers)
|
||||||
|
if self.config.accept_language is not None:
|
||||||
|
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
|
||||||
|
|
||||||
|
# Construct body
|
||||||
|
body_content = self._serialize.body(parameters, 'DeploymentVM')
|
||||||
|
|
||||||
|
# Construct and send request
|
||||||
|
def long_running_send():
|
||||||
|
|
||||||
|
request = self._client.put(url, query_parameters)
|
||||||
|
return self._client.send(
|
||||||
|
request, header_parameters, body_content, **operation_config)
|
||||||
|
|
||||||
|
def get_long_running_status(status_link, headers={}):
|
||||||
|
|
||||||
|
request = self._client.get(status_link)
|
||||||
|
request.headers.update(headers)
|
||||||
|
return self._client.send(
|
||||||
|
request, header_parameters, **operation_config)
|
||||||
|
|
||||||
|
def get_long_running_output(response):
|
||||||
|
|
||||||
|
if response.status_code not in [200, 201]:
|
||||||
|
exp = CloudError(response)
|
||||||
|
exp.request_id = response.headers.get('x-ms-request-id')
|
||||||
|
raise exp
|
||||||
|
|
||||||
|
deserialized = None
|
||||||
|
|
||||||
|
if response.status_code == 200:
|
||||||
|
deserialized = self._deserialize('DeploymentExtended', response)
|
||||||
|
if response.status_code == 201:
|
||||||
|
deserialized = self._deserialize('DeploymentExtended', response)
|
||||||
|
|
||||||
|
if raw:
|
||||||
|
client_raw_response = ClientRawResponse(deserialized, response)
|
||||||
|
return client_raw_response
|
||||||
|
|
||||||
|
return deserialized
|
||||||
|
|
||||||
|
long_running_operation_timeout = operation_config.get(
|
||||||
|
'long_running_operation_timeout',
|
||||||
|
self.config.long_running_operation_timeout)
|
||||||
|
return AzureOperationPoller(
|
||||||
|
long_running_send, get_long_running_output,
|
||||||
|
get_long_running_status, long_running_operation_timeout)
|
|
@ -0,0 +1,87 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from msrest.service_client import ServiceClient
|
||||||
|
from msrest import Serializer, Deserializer
|
||||||
|
from msrestazure import AzureConfiguration
|
||||||
|
from .version import VERSION
|
||||||
|
from .operations.vm_operations import VMOperations
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceManagementClientConfiguration(AzureConfiguration):
|
||||||
|
"""Configuration for ResourceManagementClient
|
||||||
|
Note that all parameters used to create this instance are saved as instance
|
||||||
|
attributes.
|
||||||
|
|
||||||
|
:param credentials: Gets Azure subscription credentials.
|
||||||
|
:type credentials: credentials
|
||||||
|
:param subscription_id: Gets subscription credentials which uniquely
|
||||||
|
identify Microsoft Azure subscription. The subscription ID forms part of
|
||||||
|
the URI for every service call.
|
||||||
|
:type subscription_id: str
|
||||||
|
:param api_version: Client Api Version.
|
||||||
|
:type api_version: str
|
||||||
|
:param accept_language: Gets or sets the preferred language for the
|
||||||
|
response.
|
||||||
|
:type accept_language: str
|
||||||
|
:param long_running_operation_retry_timeout: Gets or sets the retry
|
||||||
|
timeout in seconds for Long Running Operations. Default value is 30.
|
||||||
|
:type long_running_operation_retry_timeout: int
|
||||||
|
:param generate_client_request_id: When set to true a unique
|
||||||
|
x-ms-client-request-id value is generated and included in each request.
|
||||||
|
Default is true.
|
||||||
|
:type generate_client_request_id: bool
|
||||||
|
:param str base_url: Service URL
|
||||||
|
:param str filepath: Existing config
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self, credentials, subscription_id, api_version='2015-11-01', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):
|
||||||
|
|
||||||
|
if credentials is None:
|
||||||
|
raise ValueError('credentials must not be None.')
|
||||||
|
if subscription_id is None:
|
||||||
|
raise ValueError('subscription_id must not be None.')
|
||||||
|
if not base_url:
|
||||||
|
base_url = 'https://management.azure.com'
|
||||||
|
|
||||||
|
super(ResourceManagementClientConfiguration, self).__init__(base_url, filepath)
|
||||||
|
|
||||||
|
self.add_user_agent('resourcemanagementclient/{}'.format(VERSION))
|
||||||
|
self.add_user_agent('Azure-SDK-For-Python')
|
||||||
|
|
||||||
|
self.credentials = credentials
|
||||||
|
self.subscription_id = subscription_id
|
||||||
|
self.api_version = api_version
|
||||||
|
self.accept_language = accept_language
|
||||||
|
self.long_running_operation_retry_timeout = long_running_operation_retry_timeout
|
||||||
|
self.generate_client_request_id = generate_client_request_id
|
||||||
|
|
||||||
|
|
||||||
|
class ResourceManagementClient(object):
|
||||||
|
"""ResourceManagementClient
|
||||||
|
|
||||||
|
:param config: Configuration for client.
|
||||||
|
:type config: ResourceManagementClientConfiguration
|
||||||
|
|
||||||
|
:ivar vm: VM operations
|
||||||
|
:vartype vm: .operations.VMOperations
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, config):
|
||||||
|
|
||||||
|
self._client = ServiceClient(config.credentials, config)
|
||||||
|
|
||||||
|
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
|
||||||
|
self._serialize = Serializer()
|
||||||
|
self._deserialize = Deserializer(client_models)
|
||||||
|
|
||||||
|
self.config = config
|
||||||
|
self.vm = VMOperations(
|
||||||
|
self._client, self.config, self._serialize, self._deserialize)
|
|
@ -0,0 +1,10 @@
|
||||||
|
#pylint: skip-file
|
||||||
|
# coding=utf-8
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Code generated by Microsoft (R) AutoRest Code Generator 0.15.0.0
|
||||||
|
# Changes may cause incorrect behavior and will be lost if the code is
|
||||||
|
# regenerated.
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
VERSION = "2015-11-01"
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"vnetName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"vnetIpAddressType": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"vnetIpAddressPrefix": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subnetIpAddressPrefix": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subnetName": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"vnetName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"vnetIpAddressType": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"vnetIpAddressPrefix": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subnetIpAddressPrefix": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subnetName": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
"NewVNetName": "[parameters('vnetName')]",
|
||||||
|
"NewVNetPrefix": "[parameters('vnetIpAddressPrefix')]",
|
||||||
|
"NewVNetSubnet1Name": "[parameters('subnetName')]",
|
||||||
|
"NewVNetSubnet1Prefix": "[parameters('subnetIpAddressPrefix')]",
|
||||||
|
"NewVNetIpAddressType": "[parameters('vnetIpAddressType')]"
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"name": "[variables('NewVNetName')]",
|
||||||
|
"type": "Microsoft.Network/virtualNetworks",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"apiVersion": "2015-06-15",
|
||||||
|
"dependsOn": [ ],
|
||||||
|
"tags": {
|
||||||
|
"displayName": "NewVNet"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"addressSpace": {
|
||||||
|
"addressPrefixes": [
|
||||||
|
"[variables('NewVNetPrefix')]"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"subnets": [
|
||||||
|
{
|
||||||
|
"name": "[variables('NewVNetSubnet1Name')]",
|
||||||
|
"properties": {
|
||||||
|
"addressPrefix": "[variables('NewVNetSubnet1Prefix')]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,566 @@
|
||||||
|
{
|
||||||
|
"swagger": "2.0",
|
||||||
|
"info": {
|
||||||
|
"title": "ResourceManagementClient",
|
||||||
|
"version": "2015-11-01"
|
||||||
|
},
|
||||||
|
"host": "management.azure.com",
|
||||||
|
"schemes": [
|
||||||
|
"https"
|
||||||
|
],
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"azure_auth": [
|
||||||
|
"user_impersonation"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"securityDefinitions": {
|
||||||
|
"azure_auth": {
|
||||||
|
"type": "oauth2",
|
||||||
|
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
|
||||||
|
"flow": "implicit",
|
||||||
|
"description": "Azure Active Directory OAuth2 Flow",
|
||||||
|
"scopes": {
|
||||||
|
"user_impersonation": "impersonate your user account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}": {
|
||||||
|
"put": {
|
||||||
|
"tags": [
|
||||||
|
"VM"
|
||||||
|
],
|
||||||
|
"operationId": "VM_CreateOrUpdate",
|
||||||
|
"description": "Create a named template deployment using a template.",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "resourceGroupName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the resource group. The name is case insensitive.",
|
||||||
|
"pattern": "^[-\\w\\._]+$",
|
||||||
|
"minLength": 1,
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "deploymentName",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the deployment.",
|
||||||
|
"pattern": "^[-\\w\\._]+$",
|
||||||
|
"minLength": 1,
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "parameters",
|
||||||
|
"x-ms-client-flatten": true,
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/Deployment_VM"
|
||||||
|
},
|
||||||
|
"description": "Additional parameters supplied to the operation."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/ApiVersionParameter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/SubscriptionIdParameter"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/DeploymentExtended"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"201": {
|
||||||
|
"description": "",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/DeploymentExtended"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-ms-long-running-operation": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"Deployment_VM": {
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/DeploymentProperties_VM",
|
||||||
|
"description": "Gets or sets the deployment properties.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Deployment operation parameters."
|
||||||
|
},
|
||||||
|
"DeploymentProperties_VM": {
|
||||||
|
"properties": {
|
||||||
|
"templateLink": {
|
||||||
|
"$ref": "#/definitions/TemplateLink",
|
||||||
|
"description": "Gets or sets the URI referencing the template. Use only one of Template or TemplateLink.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"$ref": "#/definitions/VMParameters",
|
||||||
|
"type": "object",
|
||||||
|
"description": "Deployment parameters. Use only one of Parameters or ParametersLink.",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the deployment mode.",
|
||||||
|
"enum": [
|
||||||
|
"Incremental"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "DeploymentMode",
|
||||||
|
"modelAsString": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"templateLink",
|
||||||
|
"parameters",
|
||||||
|
"mode"
|
||||||
|
],
|
||||||
|
"description": "Deployment properties."
|
||||||
|
},
|
||||||
|
"TemplateLink": {
|
||||||
|
"properties": {
|
||||||
|
"uri": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "URI referencing the template.",
|
||||||
|
"enum": [
|
||||||
|
"https://azuretemplatehost.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"contentVersion": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "If included it must match the ContentVersion in the template."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"uri"
|
||||||
|
],
|
||||||
|
"description": "Entity representing the reference to the template."
|
||||||
|
},
|
||||||
|
"VMParameters": {
|
||||||
|
"properties": {
|
||||||
|
"_artifactsLocation": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter__artifactsLocation",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"osPublisher": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_osPublisher",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"adminPassword": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_adminPassword",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"ipAddressType": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_ipAddressType",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"storageType": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_storageType",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_size",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"adminUsername": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_adminUsername",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"dnsNameForPublicIP": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_dnsNameForPublicIP",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"ipAddressPrefix": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_ipAddressPrefix",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"virtualMachineName": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_virtualMachineName",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"subnetPrefix": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_subnetPrefix",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"osSKU": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_osSKU",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"osOffer": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_osOffer",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
},
|
||||||
|
"osVersion": {
|
||||||
|
"type": "object",
|
||||||
|
"$ref": "#/definitions/DeploymentParameter_osVersion",
|
||||||
|
"x-ms-client-flatten": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"_artifactsLocation",
|
||||||
|
"adminPassword",
|
||||||
|
"adminUsername",
|
||||||
|
"dnsNameForPublicIP",
|
||||||
|
"virtualMachineName"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"DeploymentParameter__artifactsLocation": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The container URI of the template."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_ipAddressType": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Dynamic or Static IP address allocation."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_osOffer": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The OS Offer to install."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_adminUsername": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Username for the Virtual Machine."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_virtualMachineName": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The VM name that is displayed in the portal."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_adminPassword": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Password for the Virtual Machine."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_osSKU": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The OS SKU to install."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_osPublisher": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The OS publisher of the OS image."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_storageType": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The VM storage type."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_osVersion": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The OS version to install."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_subnetPrefix": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The subnet address type."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_dnsNameForPublicIP": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Globally unique DNS Name for the Public IP used to access the Virtual Machine."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_ipAddressPrefix": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The IP address prefix."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DeploymentParameter_size": {
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The VM Size that should be created."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ParametersLink": {
|
||||||
|
"properties": {
|
||||||
|
"uri": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "URI referencing the template."
|
||||||
|
},
|
||||||
|
"contentVersion": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "If included it must match the ContentVersion in the template."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"uri"
|
||||||
|
],
|
||||||
|
"description": "Entity representing the reference to the deployment paramaters."
|
||||||
|
},
|
||||||
|
"ProviderResourceType": {
|
||||||
|
"properties": {
|
||||||
|
"resourceType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the resource type."
|
||||||
|
},
|
||||||
|
"locations": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Gets or sets the collection of locations where this resource type can be created in."
|
||||||
|
},
|
||||||
|
"apiVersions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Gets or sets the api version."
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Gets or sets the properties."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Resource type managed by the resource provider."
|
||||||
|
},
|
||||||
|
"Provider": {
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the provider id."
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the namespace of the provider."
|
||||||
|
},
|
||||||
|
"registrationState": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the registration state of the provider."
|
||||||
|
},
|
||||||
|
"resourceTypes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/ProviderResourceType"
|
||||||
|
},
|
||||||
|
"description": "Gets or sets the collection of provider resource types."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Resource provider information."
|
||||||
|
},
|
||||||
|
"BasicDependency": {
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the ID of the dependency."
|
||||||
|
},
|
||||||
|
"resourceType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the dependency resource type."
|
||||||
|
},
|
||||||
|
"resourceName": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the dependency resource name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Deployment dependency information."
|
||||||
|
},
|
||||||
|
"Dependency": {
|
||||||
|
"properties": {
|
||||||
|
"dependsOn": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/BasicDependency"
|
||||||
|
},
|
||||||
|
"description": "Gets the list of dependencies."
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the ID of the dependency."
|
||||||
|
},
|
||||||
|
"resourceType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the dependency resource type."
|
||||||
|
},
|
||||||
|
"resourceName": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the dependency resource name."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Deployment dependency information."
|
||||||
|
},
|
||||||
|
"DeploymentPropertiesExtended": {
|
||||||
|
"properties": {
|
||||||
|
"provisioningState": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the state of the provisioning."
|
||||||
|
},
|
||||||
|
"correlationId": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the correlation ID of the deployment."
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "Gets or sets the timestamp of the template deployment."
|
||||||
|
},
|
||||||
|
"outputs": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Gets or sets key/value pairs that represent deploymentoutput."
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Provider"
|
||||||
|
},
|
||||||
|
"description": "Gets the list of resource providers needed for the deployment."
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Dependency"
|
||||||
|
},
|
||||||
|
"description": "Gets the list of deployment dependencies."
|
||||||
|
},
|
||||||
|
"template": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Gets or sets the template content. Use only one of Template or TemplateLink."
|
||||||
|
},
|
||||||
|
"TemplateLink": {
|
||||||
|
"$ref": "#/definitions/TemplateLink",
|
||||||
|
"description": "Gets or sets the URI referencing the template. Use only one of Template or TemplateLink."
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Deployment parameters. Use only one of Parameters or ParametersLink."
|
||||||
|
},
|
||||||
|
"parametersLink": {
|
||||||
|
"$ref": "#/definitions/ParametersLink",
|
||||||
|
"description": "Gets or sets the URI referencing the parameters. Use only one of Parameters or ParametersLink."
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the deployment mode.",
|
||||||
|
"enum": [
|
||||||
|
"Incremental",
|
||||||
|
"Complete"
|
||||||
|
],
|
||||||
|
"x-ms-enum": {
|
||||||
|
"name": "DeploymentMode",
|
||||||
|
"modelAsString": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Deployment properties with additional details."
|
||||||
|
},
|
||||||
|
"DeploymentExtended": {
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the ID of the deployment."
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets or sets the name of the deployment."
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/DeploymentPropertiesExtended",
|
||||||
|
"description": "Gets or sets deployment properties."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"description": "Deployment information."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"SubscriptionIdParameter": {
|
||||||
|
"name": "subscriptionId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
|
||||||
|
},
|
||||||
|
"ApiVersionParameter": {
|
||||||
|
"name": "api-version",
|
||||||
|
"in": "query",
|
||||||
|
"required": true,
|
||||||
|
"type": "string",
|
||||||
|
"description": "Client Api Version."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Загрузка…
Ссылка в новой задаче