azure_mgmt_devtestlabs 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_devtestlabs.rb +149 -55
  3. data/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb +363 -0
  4. data/lib/generated/azure_mgmt_devtestlabs/{artifact_source_operations.rb → artifact_sources.rb} +85 -69
  5. data/lib/generated/azure_mgmt_devtestlabs/{artifact_operations.rb → artifacts.rb} +59 -43
  6. data/lib/generated/azure_mgmt_devtestlabs/costs.rb +244 -0
  7. data/lib/generated/azure_mgmt_devtestlabs/{custom_image_operations.rb → custom_images.rb} +81 -68
  8. data/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +73 -37
  9. data/lib/generated/azure_mgmt_devtestlabs/disks.rb +975 -0
  10. data/lib/generated/azure_mgmt_devtestlabs/environments.rb +672 -0
  11. data/lib/generated/azure_mgmt_devtestlabs/{formula_operations.rb → formulas.rb} +82 -64
  12. data/lib/generated/azure_mgmt_devtestlabs/{gallery_image_operations.rb → gallery_images.rb} +33 -26
  13. data/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb +1121 -0
  14. data/lib/generated/azure_mgmt_devtestlabs/{lab_operations.rb → labs.rb} +439 -141
  15. data/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb +105 -0
  16. data/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb +105 -0
  17. data/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +2 -1
  18. data/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb +167 -0
  19. data/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +2 -1
  20. data/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb +55 -0
  21. data/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb +70 -53
  22. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +2 -1
  23. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb +68 -0
  24. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +43 -1
  25. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb +105 -0
  26. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +2 -1
  27. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb +55 -0
  28. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +75 -62
  29. data/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb +185 -0
  30. data/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb +46 -0
  31. data/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +66 -0
  32. data/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb +45 -0
  33. data/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb +76 -0
  34. data/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb +76 -0
  35. data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb +65 -0
  36. data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb +65 -0
  37. data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb +131 -0
  38. data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb +131 -0
  39. data/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +92 -0
  40. data/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb +16 -0
  41. data/lib/generated/azure_mgmt_devtestlabs/models/{lab_cost_type.rb → cost_type.rb} +3 -3
  42. data/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb +58 -57
  43. data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb +1 -1
  44. data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +5 -4
  45. data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +2 -1
  46. data/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb +70 -0
  47. data/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb +3 -2
  48. data/lib/generated/azure_mgmt_devtestlabs/models/{subscription_notification_properties.rb → day_details_fragment.rb} +11 -11
  49. data/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb +46 -0
  50. data/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb +46 -0
  51. data/lib/generated/azure_mgmt_devtestlabs/models/disk.rb +186 -0
  52. data/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb +146 -0
  53. data/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb +1 -1
  54. data/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb +64 -0
  55. data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +2 -1
  56. data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +2 -1
  57. data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +2 -1
  58. data/lib/generated/azure_mgmt_devtestlabs/models/event.rb +47 -0
  59. data/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb +47 -0
  60. data/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb +58 -0
  61. data/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb +55 -0
  62. data/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb +55 -0
  63. data/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb +16 -0
  64. data/lib/generated/azure_mgmt_devtestlabs/models/formula.rb +53 -61
  65. data/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +2 -1
  66. data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +44 -54
  67. data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +2 -1
  68. data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb +85 -0
  69. data/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +14 -1
  70. data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +2 -1
  71. data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +2 -1
  72. data/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb +17 -0
  73. data/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb +2 -1
  74. data/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb +45 -0
  75. data/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +75 -0
  76. data/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb +70 -0
  77. data/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb +70 -0
  78. data/lib/generated/azure_mgmt_devtestlabs/models/lab.rb +85 -54
  79. data/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb +204 -0
  80. data/lib/generated/azure_mgmt_devtestlabs/models/{cost_per_day_properties.rb → lab_cost_details_properties.rb} +7 -6
  81. data/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb +45 -0
  82. data/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb +127 -0
  83. data/lib/generated/azure_mgmt_devtestlabs/models/{resource_cost_properties.rb → lab_resource_cost_properties.rb} +49 -28
  84. data/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +3 -2
  85. data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +141 -42
  86. data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb +412 -0
  87. data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb +410 -0
  88. data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +5 -3
  89. data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb +1 -1
  90. data/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb +130 -0
  91. data/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb +130 -0
  92. data/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb +150 -0
  93. data/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb +16 -0
  94. data/lib/generated/azure_mgmt_devtestlabs/models/{cost.rb → notification_channel_fragment.rb} +64 -64
  95. data/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb +69 -0
  96. data/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb +69 -0
  97. data/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb +16 -0
  98. data/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb +56 -0
  99. data/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +5 -5
  100. data/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb +55 -0
  101. data/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb +45 -0
  102. data/lib/generated/azure_mgmt_devtestlabs/models/policy.rb +62 -58
  103. data/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb +1 -1
  104. data/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb +4 -1
  105. data/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb +168 -0
  106. data/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +2 -1
  107. data/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb +1 -1
  108. data/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +2 -1
  109. data/lib/generated/azure_mgmt_devtestlabs/models/port.rb +56 -0
  110. data/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb +56 -0
  111. data/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb +16 -0
  112. data/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb +16 -0
  113. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb +94 -0
  114. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb +2 -1
  115. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb +2 -1
  116. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb +2 -1
  117. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb +94 -0
  118. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb +95 -0
  119. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb +2 -1
  120. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb +2 -1
  121. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb +2 -1
  122. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb +2 -1
  123. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb +2 -1
  124. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb +96 -0
  125. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb +2 -1
  126. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb +2 -1
  127. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb +94 -0
  128. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb +94 -0
  129. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb +94 -0
  130. data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb +2 -1
  131. data/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb +57 -0
  132. data/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb +82 -57
  133. data/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb +189 -0
  134. data/lib/generated/azure_mgmt_devtestlabs/models/secret.rb +110 -0
  135. data/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb +91 -0
  136. data/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb +54 -0
  137. data/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb +55 -0
  138. data/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb +147 -0
  139. data/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb +1 -1
  140. data/lib/generated/azure_mgmt_devtestlabs/models/{lab_storage_type.rb → storage_type.rb} +3 -3
  141. data/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb +8 -7
  142. data/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb +67 -0
  143. data/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +29 -6
  144. data/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb +101 -0
  145. data/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb +54 -0
  146. data/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb +55 -0
  147. data/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb +105 -0
  148. data/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb +16 -0
  149. data/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb +16 -0
  150. data/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb +1 -1
  151. data/lib/generated/azure_mgmt_devtestlabs/models/user.rb +133 -0
  152. data/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb +122 -0
  153. data/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb +91 -0
  154. data/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb +91 -0
  155. data/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb +55 -0
  156. data/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb +55 -0
  157. data/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb +16 -0
  158. data/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +77 -59
  159. data/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb +177 -0
  160. data/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb +5 -3
  161. data/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb +63 -0
  162. data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +4 -2
  163. data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb +1 -1
  164. data/lib/generated/azure_mgmt_devtestlabs/module_definition.rb +1 -1
  165. data/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb +764 -0
  166. data/lib/generated/azure_mgmt_devtestlabs/{policy_operations.rb → policies.rb} +82 -69
  167. data/lib/generated/azure_mgmt_devtestlabs/{policy_set.rb → policy_sets.rb} +18 -16
  168. data/lib/generated/azure_mgmt_devtestlabs/{virtual_machine.rb → schedules.rb} +282 -417
  169. data/lib/generated/azure_mgmt_devtestlabs/secrets.rb +573 -0
  170. data/lib/generated/azure_mgmt_devtestlabs/service_runners.rb +545 -0
  171. data/lib/generated/azure_mgmt_devtestlabs/users.rb +704 -0
  172. data/lib/generated/azure_mgmt_devtestlabs/version.rb +2 -2
  173. data/lib/generated/azure_mgmt_devtestlabs/{schedule_operations.rb → virtual_machine_schedules.rb} +132 -92
  174. data/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb +1669 -0
  175. data/lib/generated/azure_mgmt_devtestlabs/{virtual_network_operations.rb → virtual_networks.rb} +94 -81
  176. metadata +118 -24
  177. data/lib/generated/azure_mgmt_devtestlabs/cost_operations.rb +0 -121
  178. data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification.rb +0 -68
  179. data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification_state.rb +0 -20
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::DevTestLabs
7
- VERSION = '0.10.0'
7
+ VERSION = '0.11.0'
8
8
  end
@@ -1,18 +1,17 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::DevTestLabs
7
7
  #
8
- # Azure DevTest Labs REST API.
8
+ # The DevTest Labs Client.
9
9
  #
10
- class ScheduleOperations
11
- include Azure::ARM::DevTestLabs::Models
10
+ class VirtualMachineSchedules
12
11
  include MsRestAzure
13
12
 
14
13
  #
15
- # Creates and initializes a new instance of the ScheduleOperations class.
14
+ # Creates and initializes a new instance of the VirtualMachineSchedules class.
16
15
  # @param client service class for accessing basic functionality.
17
16
  #
18
17
  def initialize(client)
@@ -23,63 +22,73 @@ module Azure::ARM::DevTestLabs
23
22
  attr_reader :client
24
23
 
25
24
  #
26
- # List schedules in a given lab.
25
+ # List schedules in a given virtual machine.
27
26
  #
28
27
  # @param resource_group_name [String] The name of the resource group.
29
28
  # @param lab_name [String] The name of the lab.
30
- # @param filter [String] The filter to apply on the operation.
29
+ # @param virtual_machine_name [String] The name of the virtual machine.
30
+ # @param expand [String] Specify the $expand query. Example:
31
+ # 'properties($select=status)'
32
+ # @param filter [String] The filter to apply to the operation.
31
33
  # @param top [Integer] The maximum number of resources to return from the
32
34
  # operation.
33
- # @param order_by [String] The ordering expression for the results, using OData
35
+ # @param orderby [String] The ordering expression for the results, using OData
34
36
  # notation.
35
37
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
38
  # will be added to the HTTP request.
37
39
  #
38
40
  # @return [Array<Schedule>] operation results.
39
41
  #
40
- def list(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
41
- first_page = list_as_lazy(resource_group_name, lab_name, filter, top, order_by, custom_headers)
42
+ def list(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
43
+ first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers)
42
44
  first_page.get_all_items
43
45
  end
44
46
 
45
47
  #
46
- # List schedules in a given lab.
48
+ # List schedules in a given virtual machine.
47
49
  #
48
50
  # @param resource_group_name [String] The name of the resource group.
49
51
  # @param lab_name [String] The name of the lab.
50
- # @param filter [String] The filter to apply on the operation.
52
+ # @param virtual_machine_name [String] The name of the virtual machine.
53
+ # @param expand [String] Specify the $expand query. Example:
54
+ # 'properties($select=status)'
55
+ # @param filter [String] The filter to apply to the operation.
51
56
  # @param top [Integer] The maximum number of resources to return from the
52
57
  # operation.
53
- # @param order_by [String] The ordering expression for the results, using OData
58
+ # @param orderby [String] The ordering expression for the results, using OData
54
59
  # notation.
55
60
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
61
  # will be added to the HTTP request.
57
62
  #
58
63
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
64
  #
60
- def list_with_http_info(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
61
- list_async(resource_group_name, lab_name, filter, top, order_by, custom_headers).value!
65
+ def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
66
+ list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value!
62
67
  end
63
68
 
64
69
  #
65
- # List schedules in a given lab.
70
+ # List schedules in a given virtual machine.
66
71
  #
67
72
  # @param resource_group_name [String] The name of the resource group.
68
73
  # @param lab_name [String] The name of the lab.
69
- # @param filter [String] The filter to apply on the operation.
74
+ # @param virtual_machine_name [String] The name of the virtual machine.
75
+ # @param expand [String] Specify the $expand query. Example:
76
+ # 'properties($select=status)'
77
+ # @param filter [String] The filter to apply to the operation.
70
78
  # @param top [Integer] The maximum number of resources to return from the
71
79
  # operation.
72
- # @param order_by [String] The ordering expression for the results, using OData
80
+ # @param orderby [String] The ordering expression for the results, using OData
73
81
  # notation.
74
82
  # @param [Hash{String => String}] A hash of custom headers that will be added
75
83
  # to the HTTP request.
76
84
  #
77
85
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
78
86
  #
79
- def list_async(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
87
+ def list_async(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
80
88
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
89
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
82
90
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
91
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
83
92
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
84
93
 
85
94
 
@@ -88,14 +97,14 @@ module Azure::ARM::DevTestLabs
88
97
  # Set Headers
89
98
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
90
99
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
91
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules'
100
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules'
92
101
 
93
102
  request_url = @base_url || @client.base_url
94
103
 
95
104
  options = {
96
105
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name},
98
- query_params: {'$filter' => filter,'$top' => top,'$orderBy' => order_by,'api-version' => @client.api_version},
106
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name},
107
+ query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
99
108
  headers: request_headers.merge(custom_headers || {}),
100
109
  base_url: request_url
101
110
  }
@@ -115,8 +124,8 @@ module Azure::ARM::DevTestLabs
115
124
  if status_code == 200
116
125
  begin
117
126
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
- result_mapper = ResponseWithContinuationSchedule.mapper()
119
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
127
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationSchedule.mapper()
128
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
129
  rescue Exception => e
121
130
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
131
  end
@@ -133,14 +142,17 @@ module Azure::ARM::DevTestLabs
133
142
  #
134
143
  # @param resource_group_name [String] The name of the resource group.
135
144
  # @param lab_name [String] The name of the lab.
145
+ # @param virtual_machine_name [String] The name of the virtual machine.
136
146
  # @param name [String] The name of the schedule.
147
+ # @param expand [String] Specify the $expand query. Example:
148
+ # 'properties($select=status)'
137
149
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
150
  # will be added to the HTTP request.
139
151
  #
140
152
  # @return [Schedule] operation results.
141
153
  #
142
- def get_resource(resource_group_name, lab_name, name, custom_headers = nil)
143
- response = get_resource_async(resource_group_name, lab_name, name, custom_headers).value!
154
+ def get(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
155
+ response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value!
144
156
  response.body unless response.nil?
145
157
  end
146
158
 
@@ -149,14 +161,17 @@ module Azure::ARM::DevTestLabs
149
161
  #
150
162
  # @param resource_group_name [String] The name of the resource group.
151
163
  # @param lab_name [String] The name of the lab.
164
+ # @param virtual_machine_name [String] The name of the virtual machine.
152
165
  # @param name [String] The name of the schedule.
166
+ # @param expand [String] Specify the $expand query. Example:
167
+ # 'properties($select=status)'
153
168
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
169
  # will be added to the HTTP request.
155
170
  #
156
171
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
157
172
  #
158
- def get_resource_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
159
- get_resource_async(resource_group_name, lab_name, name, custom_headers).value!
173
+ def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
174
+ get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value!
160
175
  end
161
176
 
162
177
  #
@@ -164,16 +179,20 @@ module Azure::ARM::DevTestLabs
164
179
  #
165
180
  # @param resource_group_name [String] The name of the resource group.
166
181
  # @param lab_name [String] The name of the lab.
182
+ # @param virtual_machine_name [String] The name of the virtual machine.
167
183
  # @param name [String] The name of the schedule.
184
+ # @param expand [String] Specify the $expand query. Example:
185
+ # 'properties($select=status)'
168
186
  # @param [Hash{String => String}] A hash of custom headers that will be added
169
187
  # to the HTTP request.
170
188
  #
171
189
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
172
190
  #
173
- def get_resource_async(resource_group_name, lab_name, name, custom_headers = nil)
191
+ def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
174
192
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
193
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
194
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
195
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
177
196
  fail ArgumentError, 'name is nil' if name.nil?
178
197
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
179
198
 
@@ -183,14 +202,14 @@ module Azure::ARM::DevTestLabs
183
202
  # Set Headers
184
203
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
185
204
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
186
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}'
205
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}'
187
206
 
188
207
  request_url = @base_url || @client.base_url
189
208
 
190
209
  options = {
191
210
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
192
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
193
- query_params: {'api-version' => @client.api_version},
211
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name},
212
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
194
213
  headers: request_headers.merge(custom_headers || {}),
195
214
  base_url: request_url
196
215
  }
@@ -210,8 +229,8 @@ module Azure::ARM::DevTestLabs
210
229
  if status_code == 200
211
230
  begin
212
231
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
213
- result_mapper = Schedule.mapper()
214
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
232
+ result_mapper = Azure::ARM::DevTestLabs::Models::Schedule.mapper()
233
+ result.body = @client.deserialize(result_mapper, parsed_response)
215
234
  rescue Exception => e
216
235
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
217
236
  end
@@ -228,15 +247,16 @@ module Azure::ARM::DevTestLabs
228
247
  #
229
248
  # @param resource_group_name [String] The name of the resource group.
230
249
  # @param lab_name [String] The name of the lab.
250
+ # @param virtual_machine_name [String] The name of the virtual machine.
231
251
  # @param name [String] The name of the schedule.
232
- # @param schedule [Schedule]
252
+ # @param schedule [Schedule] A schedule.
233
253
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
234
254
  # will be added to the HTTP request.
235
255
  #
236
256
  # @return [Schedule] operation results.
237
257
  #
238
- def create_or_update_resource(resource_group_name, lab_name, name, schedule, custom_headers = nil)
239
- response = create_or_update_resource_async(resource_group_name, lab_name, name, schedule, custom_headers).value!
258
+ def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
259
+ response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
240
260
  response.body unless response.nil?
241
261
  end
242
262
 
@@ -245,15 +265,16 @@ module Azure::ARM::DevTestLabs
245
265
  #
246
266
  # @param resource_group_name [String] The name of the resource group.
247
267
  # @param lab_name [String] The name of the lab.
268
+ # @param virtual_machine_name [String] The name of the virtual machine.
248
269
  # @param name [String] The name of the schedule.
249
- # @param schedule [Schedule]
270
+ # @param schedule [Schedule] A schedule.
250
271
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
251
272
  # will be added to the HTTP request.
252
273
  #
253
274
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
254
275
  #
255
- def create_or_update_resource_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil)
256
- create_or_update_resource_async(resource_group_name, lab_name, name, schedule, custom_headers).value!
276
+ def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
277
+ create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
257
278
  end
258
279
 
259
280
  #
@@ -261,17 +282,19 @@ module Azure::ARM::DevTestLabs
261
282
  #
262
283
  # @param resource_group_name [String] The name of the resource group.
263
284
  # @param lab_name [String] The name of the lab.
285
+ # @param virtual_machine_name [String] The name of the virtual machine.
264
286
  # @param name [String] The name of the schedule.
265
- # @param schedule [Schedule]
287
+ # @param schedule [Schedule] A schedule.
266
288
  # @param [Hash{String => String}] A hash of custom headers that will be added
267
289
  # to the HTTP request.
268
290
  #
269
291
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
270
292
  #
271
- def create_or_update_resource_async(resource_group_name, lab_name, name, schedule, custom_headers = nil)
293
+ def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
272
294
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
273
295
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
274
296
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
297
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
275
298
  fail ArgumentError, 'name is nil' if name.nil?
276
299
  fail ArgumentError, 'schedule is nil' if schedule.nil?
277
300
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -286,17 +309,17 @@ module Azure::ARM::DevTestLabs
286
309
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
287
310
 
288
311
  # Serialize Request
289
- request_mapper = Schedule.mapper()
290
- request_content = @client.serialize(request_mapper, schedule, 'schedule')
312
+ request_mapper = Azure::ARM::DevTestLabs::Models::Schedule.mapper()
313
+ request_content = @client.serialize(request_mapper, schedule)
291
314
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
292
315
 
293
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}'
316
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}'
294
317
 
295
318
  request_url = @base_url || @client.base_url
296
319
 
297
320
  options = {
298
321
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
299
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
322
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name},
300
323
  query_params: {'api-version' => @client.api_version},
301
324
  body: request_content,
302
325
  headers: request_headers.merge(custom_headers || {}),
@@ -318,8 +341,8 @@ module Azure::ARM::DevTestLabs
318
341
  if status_code == 200
319
342
  begin
320
343
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
321
- result_mapper = Schedule.mapper()
322
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
344
+ result_mapper = Azure::ARM::DevTestLabs::Models::Schedule.mapper()
345
+ result.body = @client.deserialize(result_mapper, parsed_response)
323
346
  rescue Exception => e
324
347
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
325
348
  end
@@ -328,8 +351,8 @@ module Azure::ARM::DevTestLabs
328
351
  if status_code == 201
329
352
  begin
330
353
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
331
- result_mapper = Schedule.mapper()
332
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
354
+ result_mapper = Azure::ARM::DevTestLabs::Models::Schedule.mapper()
355
+ result.body = @client.deserialize(result_mapper, parsed_response)
333
356
  rescue Exception => e
334
357
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
335
358
  end
@@ -346,13 +369,14 @@ module Azure::ARM::DevTestLabs
346
369
  #
347
370
  # @param resource_group_name [String] The name of the resource group.
348
371
  # @param lab_name [String] The name of the lab.
372
+ # @param virtual_machine_name [String] The name of the virtual machine.
349
373
  # @param name [String] The name of the schedule.
350
374
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
351
375
  # will be added to the HTTP request.
352
376
  #
353
377
  #
354
- def delete_resource(resource_group_name, lab_name, name, custom_headers = nil)
355
- response = delete_resource_async(resource_group_name, lab_name, name, custom_headers).value!
378
+ def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
379
+ response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
356
380
  nil
357
381
  end
358
382
 
@@ -361,14 +385,15 @@ module Azure::ARM::DevTestLabs
361
385
  #
362
386
  # @param resource_group_name [String] The name of the resource group.
363
387
  # @param lab_name [String] The name of the lab.
388
+ # @param virtual_machine_name [String] The name of the virtual machine.
364
389
  # @param name [String] The name of the schedule.
365
390
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
366
391
  # will be added to the HTTP request.
367
392
  #
368
393
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
369
394
  #
370
- def delete_resource_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
371
- delete_resource_async(resource_group_name, lab_name, name, custom_headers).value!
395
+ def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
396
+ delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
372
397
  end
373
398
 
374
399
  #
@@ -376,16 +401,18 @@ module Azure::ARM::DevTestLabs
376
401
  #
377
402
  # @param resource_group_name [String] The name of the resource group.
378
403
  # @param lab_name [String] The name of the lab.
404
+ # @param virtual_machine_name [String] The name of the virtual machine.
379
405
  # @param name [String] The name of the schedule.
380
406
  # @param [Hash{String => String}] A hash of custom headers that will be added
381
407
  # to the HTTP request.
382
408
  #
383
409
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
384
410
  #
385
- def delete_resource_async(resource_group_name, lab_name, name, custom_headers = nil)
411
+ def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
386
412
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
387
413
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
388
414
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
415
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
389
416
  fail ArgumentError, 'name is nil' if name.nil?
390
417
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
391
418
 
@@ -395,13 +422,13 @@ module Azure::ARM::DevTestLabs
395
422
  # Set Headers
396
423
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
397
424
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
398
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}'
425
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}'
399
426
 
400
427
  request_url = @base_url || @client.base_url
401
428
 
402
429
  options = {
403
430
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
404
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
431
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name},
405
432
  query_params: {'api-version' => @client.api_version},
406
433
  headers: request_headers.merge(custom_headers || {}),
407
434
  base_url: request_url
@@ -430,15 +457,16 @@ module Azure::ARM::DevTestLabs
430
457
  #
431
458
  # @param resource_group_name [String] The name of the resource group.
432
459
  # @param lab_name [String] The name of the lab.
460
+ # @param virtual_machine_name [String] The name of the virtual machine.
433
461
  # @param name [String] The name of the schedule.
434
- # @param schedule [Schedule]
462
+ # @param schedule [ScheduleFragment] A schedule.
435
463
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
436
464
  # will be added to the HTTP request.
437
465
  #
438
466
  # @return [Schedule] operation results.
439
467
  #
440
- def patch_resource(resource_group_name, lab_name, name, schedule, custom_headers = nil)
441
- response = patch_resource_async(resource_group_name, lab_name, name, schedule, custom_headers).value!
468
+ def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
469
+ response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
442
470
  response.body unless response.nil?
443
471
  end
444
472
 
@@ -447,15 +475,16 @@ module Azure::ARM::DevTestLabs
447
475
  #
448
476
  # @param resource_group_name [String] The name of the resource group.
449
477
  # @param lab_name [String] The name of the lab.
478
+ # @param virtual_machine_name [String] The name of the virtual machine.
450
479
  # @param name [String] The name of the schedule.
451
- # @param schedule [Schedule]
480
+ # @param schedule [ScheduleFragment] A schedule.
452
481
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
453
482
  # will be added to the HTTP request.
454
483
  #
455
484
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
456
485
  #
457
- def patch_resource_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil)
458
- patch_resource_async(resource_group_name, lab_name, name, schedule, custom_headers).value!
486
+ def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
487
+ update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
459
488
  end
460
489
 
461
490
  #
@@ -463,17 +492,19 @@ module Azure::ARM::DevTestLabs
463
492
  #
464
493
  # @param resource_group_name [String] The name of the resource group.
465
494
  # @param lab_name [String] The name of the lab.
495
+ # @param virtual_machine_name [String] The name of the virtual machine.
466
496
  # @param name [String] The name of the schedule.
467
- # @param schedule [Schedule]
497
+ # @param schedule [ScheduleFragment] A schedule.
468
498
  # @param [Hash{String => String}] A hash of custom headers that will be added
469
499
  # to the HTTP request.
470
500
  #
471
501
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
472
502
  #
473
- def patch_resource_async(resource_group_name, lab_name, name, schedule, custom_headers = nil)
503
+ def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
474
504
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
475
505
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
476
506
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
507
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
477
508
  fail ArgumentError, 'name is nil' if name.nil?
478
509
  fail ArgumentError, 'schedule is nil' if schedule.nil?
479
510
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -488,17 +519,17 @@ module Azure::ARM::DevTestLabs
488
519
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
489
520
 
490
521
  # Serialize Request
491
- request_mapper = Schedule.mapper()
492
- request_content = @client.serialize(request_mapper, schedule, 'schedule')
522
+ request_mapper = Azure::ARM::DevTestLabs::Models::ScheduleFragment.mapper()
523
+ request_content = @client.serialize(request_mapper, schedule)
493
524
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
494
525
 
495
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}'
526
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}'
496
527
 
497
528
  request_url = @base_url || @client.base_url
498
529
 
499
530
  options = {
500
531
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
501
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
532
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name},
502
533
  query_params: {'api-version' => @client.api_version},
503
534
  body: request_content,
504
535
  headers: request_headers.merge(custom_headers || {}),
@@ -520,8 +551,8 @@ module Azure::ARM::DevTestLabs
520
551
  if status_code == 200
521
552
  begin
522
553
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
523
- result_mapper = Schedule.mapper()
524
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
554
+ result_mapper = Azure::ARM::DevTestLabs::Models::Schedule.mapper()
555
+ result.body = @client.deserialize(result_mapper, parsed_response)
525
556
  rescue Exception => e
526
557
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
527
558
  end
@@ -538,18 +569,20 @@ module Azure::ARM::DevTestLabs
538
569
  #
539
570
  # @param resource_group_name [String] The name of the resource group.
540
571
  # @param lab_name [String] The name of the lab.
572
+ # @param virtual_machine_name [String] The name of the virtual machine.
541
573
  # @param name [String] The name of the schedule.
542
574
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
543
575
  # will be added to the HTTP request.
544
576
  #
545
- def execute(resource_group_name, lab_name, name, custom_headers = nil)
546
- response = execute_async(resource_group_name, lab_name, name, custom_headers).value!
577
+ def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
578
+ response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
547
579
  nil
548
580
  end
549
581
 
550
582
  #
551
583
  # @param resource_group_name [String] The name of the resource group.
552
584
  # @param lab_name [String] The name of the lab.
585
+ # @param virtual_machine_name [String] The name of the virtual machine.
553
586
  # @param name [String] The name of the schedule.
554
587
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
555
588
  # will be added to the HTTP request.
@@ -557,9 +590,9 @@ module Azure::ARM::DevTestLabs
557
590
  # @return [Concurrent::Promise] promise which provides async access to http
558
591
  # response.
559
592
  #
560
- def execute_async(resource_group_name, lab_name, name, custom_headers = nil)
593
+ def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
561
594
  # Send request
562
- promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers)
595
+ promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers)
563
596
 
564
597
  promise = promise.then do |response|
565
598
  # Defining deserialization method.
@@ -578,13 +611,14 @@ module Azure::ARM::DevTestLabs
578
611
  #
579
612
  # @param resource_group_name [String] The name of the resource group.
580
613
  # @param lab_name [String] The name of the lab.
614
+ # @param virtual_machine_name [String] The name of the virtual machine.
581
615
  # @param name [String] The name of the schedule.
582
616
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
583
617
  # will be added to the HTTP request.
584
618
  #
585
619
  #
586
- def begin_execute(resource_group_name, lab_name, name, custom_headers = nil)
587
- response = begin_execute_async(resource_group_name, lab_name, name, custom_headers).value!
620
+ def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
621
+ response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
588
622
  nil
589
623
  end
590
624
 
@@ -593,14 +627,15 @@ module Azure::ARM::DevTestLabs
593
627
  #
594
628
  # @param resource_group_name [String] The name of the resource group.
595
629
  # @param lab_name [String] The name of the lab.
630
+ # @param virtual_machine_name [String] The name of the virtual machine.
596
631
  # @param name [String] The name of the schedule.
597
632
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
598
633
  # will be added to the HTTP request.
599
634
  #
600
635
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
601
636
  #
602
- def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
603
- begin_execute_async(resource_group_name, lab_name, name, custom_headers).value!
637
+ def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
638
+ begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
604
639
  end
605
640
 
606
641
  #
@@ -608,16 +643,18 @@ module Azure::ARM::DevTestLabs
608
643
  #
609
644
  # @param resource_group_name [String] The name of the resource group.
610
645
  # @param lab_name [String] The name of the lab.
646
+ # @param virtual_machine_name [String] The name of the virtual machine.
611
647
  # @param name [String] The name of the schedule.
612
648
  # @param [Hash{String => String}] A hash of custom headers that will be added
613
649
  # to the HTTP request.
614
650
  #
615
651
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
616
652
  #
617
- def begin_execute_async(resource_group_name, lab_name, name, custom_headers = nil)
653
+ def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
618
654
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
619
655
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
620
656
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
657
+ fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil?
621
658
  fail ArgumentError, 'name is nil' if name.nil?
622
659
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
623
660
 
@@ -627,13 +664,13 @@ module Azure::ARM::DevTestLabs
627
664
  # Set Headers
628
665
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
629
666
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
630
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}/execute'
667
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute'
631
668
 
632
669
  request_url = @base_url || @client.base_url
633
670
 
634
671
  options = {
635
672
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
636
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
673
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name},
637
674
  query_params: {'api-version' => @client.api_version},
638
675
  headers: request_headers.merge(custom_headers || {}),
639
676
  base_url: request_url
@@ -658,7 +695,7 @@ module Azure::ARM::DevTestLabs
658
695
  end
659
696
 
660
697
  #
661
- # List schedules in a given lab.
698
+ # List schedules in a given virtual machine.
662
699
  #
663
700
  # @param next_page_link [String] The NextLink from the previous successful call
664
701
  # to List operation.
@@ -673,7 +710,7 @@ module Azure::ARM::DevTestLabs
673
710
  end
674
711
 
675
712
  #
676
- # List schedules in a given lab.
713
+ # List schedules in a given virtual machine.
677
714
  #
678
715
  # @param next_page_link [String] The NextLink from the previous successful call
679
716
  # to List operation.
@@ -687,7 +724,7 @@ module Azure::ARM::DevTestLabs
687
724
  end
688
725
 
689
726
  #
690
- # List schedules in a given lab.
727
+ # List schedules in a given virtual machine.
691
728
  #
692
729
  # @param next_page_link [String] The NextLink from the previous successful call
693
730
  # to List operation.
@@ -731,8 +768,8 @@ module Azure::ARM::DevTestLabs
731
768
  if status_code == 200
732
769
  begin
733
770
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
734
- result_mapper = ResponseWithContinuationSchedule.mapper()
735
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
771
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationSchedule.mapper()
772
+ result.body = @client.deserialize(result_mapper, parsed_response)
736
773
  rescue Exception => e
737
774
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
738
775
  end
@@ -745,14 +782,17 @@ module Azure::ARM::DevTestLabs
745
782
  end
746
783
 
747
784
  #
748
- # List schedules in a given lab.
785
+ # List schedules in a given virtual machine.
749
786
  #
750
787
  # @param resource_group_name [String] The name of the resource group.
751
788
  # @param lab_name [String] The name of the lab.
752
- # @param filter [String] The filter to apply on the operation.
789
+ # @param virtual_machine_name [String] The name of the virtual machine.
790
+ # @param expand [String] Specify the $expand query. Example:
791
+ # 'properties($select=status)'
792
+ # @param filter [String] The filter to apply to the operation.
753
793
  # @param top [Integer] The maximum number of resources to return from the
754
794
  # operation.
755
- # @param order_by [String] The ordering expression for the results, using OData
795
+ # @param orderby [String] The ordering expression for the results, using OData
756
796
  # notation.
757
797
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
758
798
  # will be added to the HTTP request.
@@ -760,8 +800,8 @@ module Azure::ARM::DevTestLabs
760
800
  # @return [ResponseWithContinuationSchedule] which provide lazy access to pages
761
801
  # of the response.
762
802
  #
763
- def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
764
- response = list_async(resource_group_name, lab_name, filter, top, order_by, custom_headers).value!
803
+ def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
804
+ response = list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value!
765
805
  unless response.nil?
766
806
  page = response.body
767
807
  page.next_method = Proc.new do |next_page_link|