azure_mgmt_devtestlabs 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +1 -1
  3. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +1 -1
  4. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb +1 -1
  5. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +1 -1
  6. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +16 -16
  7. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs.rb +241 -0
  8. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +369 -0
  9. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +673 -0
  10. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb +486 -0
  11. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb +244 -0
  12. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb +759 -0
  13. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +227 -0
  14. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb +1090 -0
  15. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb +793 -0
  16. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb +727 -0
  17. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +259 -0
  18. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +1131 -0
  19. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb +1820 -0
  20. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb +113 -0
  21. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb +78 -0
  22. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +56 -0
  23. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb +194 -0
  24. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +57 -0
  25. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb +98 -0
  26. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb +57 -0
  27. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb +57 -0
  28. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb +182 -0
  29. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +70 -0
  30. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb +71 -0
  31. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +123 -0
  32. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb +123 -0
  33. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb +98 -0
  34. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +57 -0
  35. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb +57 -0
  36. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +215 -0
  37. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb +144 -0
  38. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb +98 -0
  39. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb +47 -0
  40. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +69 -0
  41. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb +69 -0
  42. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb +46 -0
  43. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb +46 -0
  44. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb +80 -0
  45. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb +80 -0
  46. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb +68 -0
  47. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb +68 -0
  48. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb +141 -0
  49. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb +141 -0
  50. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +97 -0
  51. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb +16 -0
  52. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb +17 -0
  53. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb +238 -0
  54. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb +167 -0
  55. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb +98 -0
  56. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb +17 -0
  57. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +69 -0
  58. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb +69 -0
  59. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb +70 -0
  60. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb +70 -0
  61. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +70 -0
  62. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb +70 -0
  63. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb +73 -0
  64. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb +73 -0
  65. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb +58 -0
  66. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb +58 -0
  67. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb +46 -0
  68. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb +46 -0
  69. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb +47 -0
  70. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb +47 -0
  71. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb +204 -0
  72. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb +133 -0
  73. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb +98 -0
  74. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb +160 -0
  75. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb +76 -0
  76. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb +98 -0
  77. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb +16 -0
  78. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb +67 -0
  79. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb +67 -0
  80. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb +16 -0
  81. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +79 -0
  82. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +55 -0
  83. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +55 -0
  84. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb +48 -0
  85. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb +48 -0
  86. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb +60 -0
  87. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb +57 -0
  88. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb +57 -0
  89. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb +16 -0
  90. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb +182 -0
  91. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb +111 -0
  92. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb +98 -0
  93. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +47 -0
  94. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb +47 -0
  95. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +178 -0
  96. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb +98 -0
  97. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +90 -0
  98. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb +90 -0
  99. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +90 -0
  100. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +46 -0
  101. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +46 -0
  102. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb +17 -0
  103. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb +46 -0
  104. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb +46 -0
  105. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
  106. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +79 -0
  107. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb +59 -0
  108. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb +73 -0
  109. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb +73 -0
  110. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb +363 -0
  111. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb +117 -0
  112. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb +93 -0
  113. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb +224 -0
  114. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb +69 -0
  115. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb +46 -0
  116. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb +181 -0
  117. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb +98 -0
  118. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb +136 -0
  119. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb +59 -0
  120. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb +59 -0
  121. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +46 -0
  122. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb +98 -0
  123. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +526 -0
  124. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb +478 -0
  125. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb +480 -0
  126. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb +441 -0
  127. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb +98 -0
  128. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +49 -0
  129. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb +49 -0
  130. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb +17 -0
  131. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb +139 -0
  132. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb +139 -0
  133. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb +189 -0
  134. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb +16 -0
  135. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb +118 -0
  136. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb +98 -0
  137. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb +96 -0
  138. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb +96 -0
  139. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb +58 -0
  140. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
  141. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
  142. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
  143. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
  144. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +57 -0
  145. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb +57 -0
  146. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb +46 -0
  147. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb +197 -0
  148. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb +16 -0
  149. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb +24 -0
  150. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb +126 -0
  151. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb +98 -0
  152. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +67 -0
  153. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb +16 -0
  154. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +57 -0
  155. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb +58 -0
  156. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb +58 -0
  157. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb +16 -0
  158. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
  159. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb +46 -0
  160. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb +16 -0
  161. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb +46 -0
  162. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb +110 -0
  163. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb +59 -0
  164. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb +219 -0
  165. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb +173 -0
  166. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb +173 -0
  167. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb +148 -0
  168. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb +98 -0
  169. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb +121 -0
  170. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb +62 -0
  171. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb +98 -0
  172. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb +147 -0
  173. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb +74 -0
  174. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb +98 -0
  175. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb +98 -0
  176. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb +98 -0
  177. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb +56 -0
  178. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb +57 -0
  179. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb +180 -0
  180. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb +16 -0
  181. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb +16 -0
  182. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb +70 -0
  183. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb +70 -0
  184. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +107 -0
  185. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb +107 -0
  186. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb +56 -0
  187. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb +57 -0
  188. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb +112 -0
  189. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb +16 -0
  190. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb +16 -0
  191. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb +54 -0
  192. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb +17 -0
  193. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb +146 -0
  194. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb +75 -0
  195. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb +96 -0
  196. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb +96 -0
  197. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb +98 -0
  198. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb +57 -0
  199. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb +57 -0
  200. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb +16 -0
  201. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +207 -0
  202. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb +116 -0
  203. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb +98 -0
  204. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb +66 -0
  205. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb +66 -0
  206. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +48 -0
  207. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb +48 -0
  208. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb +17 -0
  209. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/module_definition.rb +9 -0
  210. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +769 -0
  211. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
  212. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb +690 -0
  213. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +135 -0
  214. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
  215. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb +1000 -0
  216. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb +742 -0
  217. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb +848 -0
  218. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb +1147 -0
  219. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb +552 -0
  220. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/users.rb +759 -0
  221. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +821 -0
  222. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +2431 -0
  223. data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +760 -0
  224. data/lib/azure_mgmt_devtestlabs.rb +1 -0
  225. data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +566 -430
  226. data/lib/version.rb +1 -1
  227. metadata +219 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03443eae5fbb994daca9fd20a99a8e47d0dba534
4
- data.tar.gz: 9a97cde48904833b6ae09a059fa0b8e07dd1f684
3
+ metadata.gz: 6b2dea67dea0113a5c3d2cb5740e30a2e2e2e074
4
+ data.tar.gz: 390d2b0e6235d11fe46431a0f6accf27de71c6b5
5
5
  SHA512:
6
- metadata.gz: e12a2c2c2dcc2e9193431faab60818182b067645eebed672df55f7bce4f56cad54a6c980042a17e0e37aec82b7403297da0abc04eee2b46f64eebffae5877adc
7
- data.tar.gz: 598b6c48102dc11cce686a3bd3a1f87c983e7335ba1293eee6350a841fb94c2917154a57b37835794ad7bcbb4db402674f41a3d4d7ede8a73b0d164f83b18c9c
6
+ metadata.gz: 0bff14d4f10e63abf1d832acd8fd7e9e806caac2472db9fb0eea7877468b1fccc9c2efc4e5989538751d9989ea02ec69452e347d6d8d2c43813c3efc7bbda3aa
7
+ data.tar.gz: 8fd4dc79a0fbd4c7380ef75d30ec6275c34d364a9654a70efd28cc14365ffb6e1df2cd480157f139cb35db550955e184365515a03059e8e2092b06576b437cce
@@ -212,7 +212,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
212
212
  #
213
213
  def add_telemetry
214
214
  sdk_information = 'azure_mgmt_devtestlabs'
215
- sdk_information = "#{sdk_information}/0.17.1"
215
+ sdk_information = "#{sdk_information}/0.17.2"
216
216
  add_user_agent_information(sdk_information)
217
217
  end
218
218
  end
@@ -12,7 +12,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Integer] Size of the disk to be attached in GibiBytes.
15
+ # @return [Integer] Size of the disk to be attached in Gibibytes.
16
16
  attr_accessor :disk_size_gi_b
17
17
 
18
18
  # @return [String] The name of the disk to be attached.
@@ -16,7 +16,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
16
16
  # Premium). Possible values include: 'Standard', 'Premium'
17
17
  attr_accessor :disk_type
18
18
 
19
- # @return [Integer] The size of the disk in GibiBytes.
19
+ # @return [Integer] The size of the disk in Gibibytes.
20
20
  attr_accessor :disk_size_gi_b
21
21
 
22
22
  # @return [String] The resource ID of the VM to which this disk is
@@ -6,7 +6,7 @@
6
6
  module Azure::DevTestLabs::Mgmt::V2016_05_15
7
7
  module Models
8
8
  #
9
- # Reponse body for generating an upload URI.
9
+ # Response body for generating an upload URI.
10
10
  #
11
11
  class GenerateUploadUriResponse
12
12
 
@@ -22,7 +22,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
22
22
  attr_reader :client
23
23
 
24
24
  #
25
- # List notificationchannels in a given lab.
25
+ # List notification channels in a given lab.
26
26
  #
27
27
  # @param resource_group_name [String] The name of the resource group.
28
28
  # @param lab_name [String] The name of the lab.
@@ -44,7 +44,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
44
44
  end
45
45
 
46
46
  #
47
- # List notificationchannels in a given lab.
47
+ # List notification channels in a given lab.
48
48
  #
49
49
  # @param resource_group_name [String] The name of the resource group.
50
50
  # @param lab_name [String] The name of the lab.
@@ -65,7 +65,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
65
65
  end
66
66
 
67
67
  #
68
- # List notificationchannels in a given lab.
68
+ # List notification channels in a given lab.
69
69
  #
70
70
  # @param resource_group_name [String] The name of the resource group.
71
71
  # @param lab_name [String] The name of the lab.
@@ -135,7 +135,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
135
135
  end
136
136
 
137
137
  #
138
- # Get notificationchannel.
138
+ # Get notification channels.
139
139
  #
140
140
  # @param resource_group_name [String] The name of the resource group.
141
141
  # @param lab_name [String] The name of the lab.
@@ -153,7 +153,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
153
153
  end
154
154
 
155
155
  #
156
- # Get notificationchannel.
156
+ # Get notification channels.
157
157
  #
158
158
  # @param resource_group_name [String] The name of the resource group.
159
159
  # @param lab_name [String] The name of the lab.
@@ -170,7 +170,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
170
170
  end
171
171
 
172
172
  #
173
- # Get notificationchannel.
173
+ # Get notification channels.
174
174
  #
175
175
  # @param resource_group_name [String] The name of the resource group.
176
176
  # @param lab_name [String] The name of the lab.
@@ -354,7 +354,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
354
354
  end
355
355
 
356
356
  #
357
- # Delete notificationchannel.
357
+ # Delete notification channel.
358
358
  #
359
359
  # @param resource_group_name [String] The name of the resource group.
360
360
  # @param lab_name [String] The name of the lab.
@@ -369,7 +369,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
369
369
  end
370
370
 
371
371
  #
372
- # Delete notificationchannel.
372
+ # Delete notification channel.
373
373
  #
374
374
  # @param resource_group_name [String] The name of the resource group.
375
375
  # @param lab_name [String] The name of the lab.
@@ -384,7 +384,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
384
384
  end
385
385
 
386
386
  #
387
- # Delete notificationchannel.
387
+ # Delete notification channel.
388
388
  #
389
389
  # @param resource_group_name [String] The name of the resource group.
390
390
  # @param lab_name [String] The name of the lab.
@@ -439,7 +439,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
439
439
  end
440
440
 
441
441
  #
442
- # Modify properties of notificationchannels.
442
+ # Modify properties of notification channels.
443
443
  #
444
444
  # @param resource_group_name [String] The name of the resource group.
445
445
  # @param lab_name [String] The name of the lab.
@@ -456,7 +456,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
456
456
  end
457
457
 
458
458
  #
459
- # Modify properties of notificationchannels.
459
+ # Modify properties of notification channels.
460
460
  #
461
461
  # @param resource_group_name [String] The name of the resource group.
462
462
  # @param lab_name [String] The name of the lab.
@@ -472,7 +472,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
472
472
  end
473
473
 
474
474
  #
475
- # Modify properties of notificationchannels.
475
+ # Modify properties of notification channels.
476
476
  #
477
477
  # @param resource_group_name [String] The name of the resource group.
478
478
  # @param lab_name [String] The name of the lab.
@@ -645,7 +645,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
645
645
  end
646
646
 
647
647
  #
648
- # List notificationchannels in a given lab.
648
+ # List notification channels in a given lab.
649
649
  #
650
650
  # @param next_page_link [String] The NextLink from the previous successful call
651
651
  # to List operation.
@@ -660,7 +660,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
660
660
  end
661
661
 
662
662
  #
663
- # List notificationchannels in a given lab.
663
+ # List notification channels in a given lab.
664
664
  #
665
665
  # @param next_page_link [String] The NextLink from the previous successful call
666
666
  # to List operation.
@@ -674,7 +674,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
674
674
  end
675
675
 
676
676
  #
677
- # List notificationchannels in a given lab.
677
+ # List notification channels in a given lab.
678
678
  #
679
679
  # @param next_page_link [String] The NextLink from the previous successful call
680
680
  # to List operation.
@@ -733,7 +733,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
733
733
  end
734
734
 
735
735
  #
736
- # List notificationchannels in a given lab.
736
+ # List notification channels in a given lab.
737
737
  #
738
738
  # @param resource_group_name [String] The name of the resource group.
739
739
  # @param lab_name [String] The name of the lab.
@@ -0,0 +1,241 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2018-09-15/generated/azure_mgmt_devtestlabs/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::DevTestLabs::Mgmt::V2018_09_15
23
+ autoload :ProviderOperations, '2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb'
24
+ autoload :Labs, '2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb'
25
+ autoload :Operations, '2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb'
26
+ autoload :GlobalSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb'
27
+ autoload :ArtifactSources, '2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb'
28
+ autoload :ArmTemplates, '2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb'
29
+ autoload :Artifacts, '2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb'
30
+ autoload :Costs, '2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb'
31
+ autoload :CustomImages, '2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb'
32
+ autoload :Formulas, '2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb'
33
+ autoload :GalleryImages, '2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb'
34
+ autoload :NotificationChannels, '2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb'
35
+ autoload :PolicySets, '2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb'
36
+ autoload :Policies, '2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb'
37
+ autoload :Schedules, '2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb'
38
+ autoload :ServiceRunners, '2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb'
39
+ autoload :Users, '2018-09-15/generated/azure_mgmt_devtestlabs/users.rb'
40
+ autoload :Disks, '2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb'
41
+ autoload :Environments, '2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb'
42
+ autoload :Secrets, '2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb'
43
+ autoload :ServiceFabrics, '2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb'
44
+ autoload :ServiceFabricSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb'
45
+ autoload :VirtualMachines, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb'
46
+ autoload :VirtualMachineSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb'
47
+ autoload :VirtualNetworks, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb'
48
+ autoload :DevTestLabsClient, '2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb'
49
+
50
+ module Models
51
+ autoload :SharedPublicIpAddressConfiguration, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb'
52
+ autoload :WeekDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb'
53
+ autoload :NetworkInterfaceProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb'
54
+ autoload :HourDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb'
55
+ autoload :ScheduleCreationParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb'
56
+ autoload :EnvironmentDeploymentPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb'
57
+ autoload :VirtualNetworkList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb'
58
+ autoload :Subnet, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb'
59
+ autoload :DayDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb'
60
+ autoload :DtlEnvironmentList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb'
61
+ autoload :NotificationSettingsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb'
62
+ autoload :EvaluatePoliciesProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb'
63
+ autoload :UserSecretStoreFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb'
64
+ autoload :EvaluatePoliciesRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb'
65
+ autoload :ArtifactInstallProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb'
66
+ autoload :PolicyViolation, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb'
67
+ autoload :ParametersValueFileInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb'
68
+ autoload :PolicySetResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb'
69
+ autoload :ArmTemplateInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb'
70
+ autoload :EvaluatePoliciesResponse, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb'
71
+ autoload :ArmTemplateParameterProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb'
72
+ autoload :Event, '2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb'
73
+ autoload :UserSecretStore, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb'
74
+ autoload :EventFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb'
75
+ autoload :ArtifactDeploymentStatusPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb'
76
+ autoload :ExportResourceUsageParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb'
77
+ autoload :ArtifactInstallPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb'
78
+ autoload :ExternalSubnet, '2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb'
79
+ autoload :UserIdentity, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb'
80
+ autoload :ExternalSubnetFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb'
81
+ autoload :ArtifactSourceList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb'
82
+ autoload :GalleryImageReference, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb'
83
+ autoload :AttachNewDataDiskOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb'
84
+ autoload :InboundNatRule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb'
85
+ autoload :BulkCreationParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb'
86
+ autoload :DayDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb'
87
+ autoload :NotificationSettings, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb'
88
+ autoload :ComputeDataDisk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb'
89
+ autoload :ShutdownNotificationContent, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb'
90
+ autoload :ComputeVmInstanceViewStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb'
91
+ autoload :LabVirtualMachineCreationParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb'
92
+ autoload :ComputeVmProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb'
93
+ autoload :FormulaPropertiesFromVm, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb'
94
+ autoload :PercentageCostThresholdProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb'
95
+ autoload :ServiceRunnerList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb'
96
+ autoload :WindowsOsInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb'
97
+ autoload :GalleryImageReferenceFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb'
98
+ autoload :CustomImagePropertiesFromVm, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb'
99
+ autoload :InboundNatRuleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb'
100
+ autoload :DataDiskStorageTypeInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb'
101
+ autoload :SharedPublicIpAddressConfigurationFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb'
102
+ autoload :SubnetOverrideFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb'
103
+ autoload :NetworkInterfacePropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb'
104
+ autoload :LinuxOsInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb'
105
+ autoload :ScheduleCreationParameterFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb'
106
+ autoload :CustomImagePropertiesCustomFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb'
107
+ autoload :LabVirtualMachineCreationParameterFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb'
108
+ autoload :CustomImagePropertiesFromPlanFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb'
109
+ autoload :FormulaPropertiesFromVmFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb'
110
+ autoload :CustomImageList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb'
111
+ autoload :ServiceFabricList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb'
112
+ autoload :DataDiskPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb'
113
+ autoload :FormulaList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb'
114
+ autoload :DetachDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb'
115
+ autoload :SecretList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb'
116
+ autoload :SubnetSharedPublicIpAddressConfiguration, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb'
117
+ autoload :GalleryImageList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb'
118
+ autoload :EnvironmentDeploymentProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb'
119
+ autoload :ParameterInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb'
120
+ autoload :WeekDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb'
121
+ autoload :GenerateArmTemplateRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb'
122
+ autoload :UserList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb'
123
+ autoload :GenerateUploadUriParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb'
124
+ autoload :ApplyArtifactsRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb'
125
+ autoload :GenerateUploadUriResponse, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb'
126
+ autoload :ArmTemplateList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb'
127
+ autoload :IdentityProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb'
128
+ autoload :ArtifactDeploymentStatusProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb'
129
+ autoload :ImportLabVirtualMachineRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb'
130
+ autoload :ArtifactList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb'
131
+ autoload :LabAnnouncementProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb'
132
+ autoload :AttachDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb'
133
+ autoload :LabSupportProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb'
134
+ autoload :BulkCreationParametersFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb'
135
+ autoload :ScheduleList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb'
136
+ autoload :ComputeDataDiskFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb'
137
+ autoload :LabAnnouncementPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb'
138
+ autoload :ComputeVmPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb'
139
+ autoload :TargetCostProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb'
140
+ autoload :LinuxOsInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb'
141
+ autoload :LabCostSummaryProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb'
142
+ autoload :CustomImagePropertiesFromPlan, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb'
143
+ autoload :LabCostDetailsProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb'
144
+ autoload :CustomImagePropertiesFromVmFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb'
145
+ autoload :LabResourceCostProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb'
146
+ autoload :SubnetSharedPublicIpAddressConfigurationFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb'
147
+ autoload :RetargetScheduleProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb'
148
+ autoload :DetachDataDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb'
149
+ autoload :LabSupportPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb'
150
+ autoload :DiskList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb'
151
+ autoload :Resource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb'
152
+ autoload :HourDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb'
153
+ autoload :LabList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb'
154
+ autoload :UserIdentityFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb'
155
+ autoload :LabVhd, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb'
156
+ autoload :ArtifactParameterPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb'
157
+ autoload :LabVhdList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb'
158
+ autoload :AttachNewDataDiskOptionsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb'
159
+ autoload :ResizeLabVirtualMachineProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb'
160
+ autoload :ComputeVmInstanceViewStatusFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb'
161
+ autoload :RdpConnection, '2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb'
162
+ autoload :CustomImagePropertiesCustom, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb'
163
+ autoload :LabVirtualMachineList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb'
164
+ autoload :DataDiskStorageTypeInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb'
165
+ autoload :ProviderOperationResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb'
166
+ autoload :SubnetOverride, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb'
167
+ autoload :PortFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb'
168
+ autoload :ArtifactParameterProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb'
169
+ autoload :NotificationChannelList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb'
170
+ autoload :UpdateResource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb'
171
+ autoload :NotifyParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb'
172
+ autoload :CostThresholdProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb'
173
+ autoload :OperationError, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb'
174
+ autoload :DataDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb'
175
+ autoload :OperationMetadataDisplay, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb'
176
+ autoload :ArmTemplateParameterPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb'
177
+ autoload :OperationMetadata, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb'
178
+ autoload :WindowsOsInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb'
179
+ autoload :OperationResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb'
180
+ autoload :Port, '2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb'
181
+ autoload :SubnetFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb'
182
+ autoload :PolicyList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb'
183
+ autoload :Schedule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb'
184
+ autoload :ApplicableSchedule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb'
185
+ autoload :ScheduleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb'
186
+ autoload :ApplicableScheduleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb'
187
+ autoload :ArmTemplate, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb'
188
+ autoload :Artifact, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb'
189
+ autoload :ArtifactSource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb'
190
+ autoload :ArtifactSourceFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb'
191
+ autoload :CustomImage, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb'
192
+ autoload :CustomImageFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb'
193
+ autoload :Disk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb'
194
+ autoload :DiskFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb'
195
+ autoload :DtlEnvironment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb'
196
+ autoload :DtlEnvironmentFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb'
197
+ autoload :Formula, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb'
198
+ autoload :FormulaFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb'
199
+ autoload :GalleryImage, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb'
200
+ autoload :Lab, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb'
201
+ autoload :LabCost, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb'
202
+ autoload :LabFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb'
203
+ autoload :LabVirtualMachine, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb'
204
+ autoload :LabVirtualMachineFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb'
205
+ autoload :NotificationChannel, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb'
206
+ autoload :NotificationChannelFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb'
207
+ autoload :Policy, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb'
208
+ autoload :PolicyFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb'
209
+ autoload :Secret, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb'
210
+ autoload :SecretFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb'
211
+ autoload :ServiceFabric, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb'
212
+ autoload :ServiceFabricFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb'
213
+ autoload :ServiceRunner, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb'
214
+ autoload :User, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb'
215
+ autoload :UserFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb'
216
+ autoload :VirtualNetwork, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb'
217
+ autoload :VirtualNetworkFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb'
218
+ autoload :EnableStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb'
219
+ autoload :SourceControlType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb'
220
+ autoload :StorageType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb'
221
+ autoload :CostThresholdStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb'
222
+ autoload :WindowsOsState, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb'
223
+ autoload :LinuxOsState, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb'
224
+ autoload :CustomImageOsType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb'
225
+ autoload :HostCachingOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb'
226
+ autoload :NotificationChannelEventType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb'
227
+ autoload :TransportProtocol, '2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb'
228
+ autoload :VirtualMachineCreationSource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb'
229
+ autoload :FileUploadOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb'
230
+ autoload :PremiumDataDisk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb'
231
+ autoload :EnvironmentPermission, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb'
232
+ autoload :TargetCostStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb'
233
+ autoload :ReportingCycleType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb'
234
+ autoload :CostType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb'
235
+ autoload :HttpStatusCode, '2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb'
236
+ autoload :PolicyStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb'
237
+ autoload :PolicyFactName, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb'
238
+ autoload :PolicyEvaluatorType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb'
239
+ autoload :UsagePermissionType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb'
240
+ end
241
+ end
@@ -0,0 +1,369 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::DevTestLabs::Mgmt::V2018_09_15
7
+ #
8
+ # The DevTest Labs Client.
9
+ #
10
+ class ArmTemplates
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ArmTemplates class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DevTestLabsClient] reference to the DevTestLabsClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # List azure resource manager templates in a given artifact source.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param lab_name [String] The name of the lab.
29
+ # @param artifact_source_name [String] The name of the artifact source.
30
+ # @param expand [String] Specify the $expand query. Example:
31
+ # 'properties($select=displayName)'
32
+ # @param filter [String] The filter to apply to the operation. Example:
33
+ # '$filter=contains(name,'myName')
34
+ # @param top [Integer] The maximum number of resources to return from the
35
+ # operation. Example: '$top=10'
36
+ # @param orderby [String] The ordering expression for the results, using OData
37
+ # notation. Example: '$orderby=name desc'
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [Array<ArmTemplate>] operation results.
42
+ #
43
+ def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
44
+ first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
45
+ first_page.get_all_items
46
+ end
47
+
48
+ #
49
+ # List azure resource manager templates in a given artifact source.
50
+ #
51
+ # @param resource_group_name [String] The name of the resource group.
52
+ # @param lab_name [String] The name of the lab.
53
+ # @param artifact_source_name [String] The name of the artifact source.
54
+ # @param expand [String] Specify the $expand query. Example:
55
+ # 'properties($select=displayName)'
56
+ # @param filter [String] The filter to apply to the operation. Example:
57
+ # '$filter=contains(name,'myName')
58
+ # @param top [Integer] The maximum number of resources to return from the
59
+ # operation. Example: '$top=10'
60
+ # @param orderby [String] The ordering expression for the results, using OData
61
+ # notation. Example: '$orderby=name desc'
62
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
63
+ # will be added to the HTTP request.
64
+ #
65
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
66
+ #
67
+ def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
68
+ list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
69
+ end
70
+
71
+ #
72
+ # List azure resource manager templates in a given artifact source.
73
+ #
74
+ # @param resource_group_name [String] The name of the resource group.
75
+ # @param lab_name [String] The name of the lab.
76
+ # @param artifact_source_name [String] The name of the artifact source.
77
+ # @param expand [String] Specify the $expand query. Example:
78
+ # 'properties($select=displayName)'
79
+ # @param filter [String] The filter to apply to the operation. Example:
80
+ # '$filter=contains(name,'myName')
81
+ # @param top [Integer] The maximum number of resources to return from the
82
+ # operation. Example: '$top=10'
83
+ # @param orderby [String] The ordering expression for the results, using OData
84
+ # notation. Example: '$orderby=name desc'
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
91
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
92
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
93
+ fail ArgumentError, 'lab_name is nil' if lab_name.nil?
94
+ fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil?
95
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
96
+
97
+
98
+ request_headers = {}
99
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
100
+
101
+ # Set Headers
102
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
103
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
104
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates'
105
+
106
+ request_url = @base_url || @client.base_url
107
+
108
+ options = {
109
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
110
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name},
111
+ query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
112
+ headers: request_headers.merge(custom_headers || {}),
113
+ base_url: request_url
114
+ }
115
+ promise = @client.make_request_async(:get, path_template, options)
116
+
117
+ promise = promise.then do |result|
118
+ http_response = result.response
119
+ status_code = http_response.status
120
+ response_content = http_response.body
121
+ unless status_code == 200
122
+ error_model = JSON.load(response_content)
123
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
124
+ end
125
+
126
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
127
+ # Deserialize Response
128
+ if status_code == 200
129
+ begin
130
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
131
+ result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateList.mapper()
132
+ result.body = @client.deserialize(result_mapper, parsed_response)
133
+ rescue Exception => e
134
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
135
+ end
136
+ end
137
+
138
+ result
139
+ end
140
+
141
+ promise.execute
142
+ end
143
+
144
+ #
145
+ # Get azure resource manager template.
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group.
148
+ # @param lab_name [String] The name of the lab.
149
+ # @param artifact_source_name [String] The name of the artifact source.
150
+ # @param name [String] The name of the azure Resource Manager template.
151
+ # @param expand [String] Specify the $expand query. Example:
152
+ # 'properties($select=displayName)'
153
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
+ # will be added to the HTTP request.
155
+ #
156
+ # @return [ArmTemplate] operation results.
157
+ #
158
+ def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
159
+ response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value!
160
+ response.body unless response.nil?
161
+ end
162
+
163
+ #
164
+ # Get azure resource manager template.
165
+ #
166
+ # @param resource_group_name [String] The name of the resource group.
167
+ # @param lab_name [String] The name of the lab.
168
+ # @param artifact_source_name [String] The name of the artifact source.
169
+ # @param name [String] The name of the azure Resource Manager template.
170
+ # @param expand [String] Specify the $expand query. Example:
171
+ # 'properties($select=displayName)'
172
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
173
+ # will be added to the HTTP request.
174
+ #
175
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
176
+ #
177
+ def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
178
+ get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value!
179
+ end
180
+
181
+ #
182
+ # Get azure resource manager template.
183
+ #
184
+ # @param resource_group_name [String] The name of the resource group.
185
+ # @param lab_name [String] The name of the lab.
186
+ # @param artifact_source_name [String] The name of the artifact source.
187
+ # @param name [String] The name of the azure Resource Manager template.
188
+ # @param expand [String] Specify the $expand query. Example:
189
+ # 'properties($select=displayName)'
190
+ # @param [Hash{String => String}] A hash of custom headers that will be added
191
+ # to the HTTP request.
192
+ #
193
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
194
+ #
195
+ def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
196
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
197
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
198
+ fail ArgumentError, 'lab_name is nil' if lab_name.nil?
199
+ fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil?
200
+ fail ArgumentError, 'name is nil' if name.nil?
201
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
202
+
203
+
204
+ request_headers = {}
205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
206
+
207
+ # Set Headers
208
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
209
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
210
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}'
211
+
212
+ request_url = @base_url || @client.base_url
213
+
214
+ options = {
215
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
216
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name},
217
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
218
+ headers: request_headers.merge(custom_headers || {}),
219
+ base_url: request_url
220
+ }
221
+ promise = @client.make_request_async(:get, path_template, options)
222
+
223
+ promise = promise.then do |result|
224
+ http_response = result.response
225
+ status_code = http_response.status
226
+ response_content = http_response.body
227
+ unless status_code == 200
228
+ error_model = JSON.load(response_content)
229
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
230
+ end
231
+
232
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
233
+ # Deserialize Response
234
+ if status_code == 200
235
+ begin
236
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
237
+ result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplate.mapper()
238
+ result.body = @client.deserialize(result_mapper, parsed_response)
239
+ rescue Exception => e
240
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
241
+ end
242
+ end
243
+
244
+ result
245
+ end
246
+
247
+ promise.execute
248
+ end
249
+
250
+ #
251
+ # List azure resource manager templates in a given artifact source.
252
+ #
253
+ # @param next_page_link [String] The NextLink from the previous successful call
254
+ # to List operation.
255
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
256
+ # will be added to the HTTP request.
257
+ #
258
+ # @return [ArmTemplateList] operation results.
259
+ #
260
+ def list_next(next_page_link, custom_headers:nil)
261
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
262
+ response.body unless response.nil?
263
+ end
264
+
265
+ #
266
+ # List azure resource manager templates in a given artifact source.
267
+ #
268
+ # @param next_page_link [String] The NextLink from the previous successful call
269
+ # to List operation.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
274
+ #
275
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
276
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
277
+ end
278
+
279
+ #
280
+ # List azure resource manager templates in a given artifact source.
281
+ #
282
+ # @param next_page_link [String] The NextLink from the previous successful call
283
+ # to List operation.
284
+ # @param [Hash{String => String}] A hash of custom headers that will be added
285
+ # to the HTTP request.
286
+ #
287
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
288
+ #
289
+ def list_next_async(next_page_link, custom_headers:nil)
290
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
291
+
292
+
293
+ request_headers = {}
294
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
295
+
296
+ # Set Headers
297
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
298
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
299
+ path_template = '{nextLink}'
300
+
301
+ request_url = @base_url || @client.base_url
302
+
303
+ options = {
304
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
305
+ skip_encoding_path_params: {'nextLink' => next_page_link},
306
+ headers: request_headers.merge(custom_headers || {}),
307
+ base_url: request_url
308
+ }
309
+ promise = @client.make_request_async(:get, path_template, options)
310
+
311
+ promise = promise.then do |result|
312
+ http_response = result.response
313
+ status_code = http_response.status
314
+ response_content = http_response.body
315
+ unless status_code == 200
316
+ error_model = JSON.load(response_content)
317
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
318
+ end
319
+
320
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
321
+ # Deserialize Response
322
+ if status_code == 200
323
+ begin
324
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
+ result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateList.mapper()
326
+ result.body = @client.deserialize(result_mapper, parsed_response)
327
+ rescue Exception => e
328
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
329
+ end
330
+ end
331
+
332
+ result
333
+ end
334
+
335
+ promise.execute
336
+ end
337
+
338
+ #
339
+ # List azure resource manager templates in a given artifact source.
340
+ #
341
+ # @param resource_group_name [String] The name of the resource group.
342
+ # @param lab_name [String] The name of the lab.
343
+ # @param artifact_source_name [String] The name of the artifact source.
344
+ # @param expand [String] Specify the $expand query. Example:
345
+ # 'properties($select=displayName)'
346
+ # @param filter [String] The filter to apply to the operation. Example:
347
+ # '$filter=contains(name,'myName')
348
+ # @param top [Integer] The maximum number of resources to return from the
349
+ # operation. Example: '$top=10'
350
+ # @param orderby [String] The ordering expression for the results, using OData
351
+ # notation. Example: '$orderby=name desc'
352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
+ # will be added to the HTTP request.
354
+ #
355
+ # @return [ArmTemplateList] which provide lazy access to pages of the response.
356
+ #
357
+ def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
358
+ response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
359
+ unless response.nil?
360
+ page = response.body
361
+ page.next_method = Proc.new do |next_page_link|
362
+ list_next_async(next_page_link, custom_headers:custom_headers)
363
+ end
364
+ page
365
+ end
366
+ end
367
+
368
+ end
369
+ end