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,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 FormulaOperations
11
- include Azure::ARM::DevTestLabs::Models
10
+ class Formulas
12
11
  include MsRestAzure
13
12
 
14
13
  #
15
- # Creates and initializes a new instance of the FormulaOperations class.
14
+ # Creates and initializes a new instance of the Formulas class.
16
15
  # @param client service class for accessing basic functionality.
17
16
  #
18
17
  def initialize(client)
@@ -27,18 +26,20 @@ module Azure::ARM::DevTestLabs
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 expand [String] Specify the $expand query. Example:
30
+ # 'properties($select=description)'
31
+ # @param filter [String] The filter to apply to the operation.
31
32
  # @param top [Integer] The maximum number of resources to return from the
32
33
  # operation.
33
- # @param order_by [String] The ordering expression for the results, using OData
34
+ # @param orderby [String] The ordering expression for the results, using OData
34
35
  # notation.
35
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
37
  # will be added to the HTTP request.
37
38
  #
38
39
  # @return [Array<Formula>] operation results.
39
40
  #
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)
41
+ def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
42
+ first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
42
43
  first_page.get_all_items
43
44
  end
44
45
 
@@ -47,18 +48,20 @@ module Azure::ARM::DevTestLabs
47
48
  #
48
49
  # @param resource_group_name [String] The name of the resource group.
49
50
  # @param lab_name [String] The name of the lab.
50
- # @param filter [String] The filter to apply on the operation.
51
+ # @param expand [String] Specify the $expand query. Example:
52
+ # 'properties($select=description)'
53
+ # @param filter [String] The filter to apply to the operation.
51
54
  # @param top [Integer] The maximum number of resources to return from the
52
55
  # operation.
53
- # @param order_by [String] The ordering expression for the results, using OData
56
+ # @param orderby [String] The ordering expression for the results, using OData
54
57
  # notation.
55
58
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
59
  # will be added to the HTTP request.
57
60
  #
58
61
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
62
  #
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!
63
+ def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
64
+ list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
62
65
  end
63
66
 
64
67
  #
@@ -66,17 +69,19 @@ module Azure::ARM::DevTestLabs
66
69
  #
67
70
  # @param resource_group_name [String] The name of the resource group.
68
71
  # @param lab_name [String] The name of the lab.
69
- # @param filter [String] The filter to apply on the operation.
72
+ # @param expand [String] Specify the $expand query. Example:
73
+ # 'properties($select=description)'
74
+ # @param filter [String] The filter to apply to the operation.
70
75
  # @param top [Integer] The maximum number of resources to return from the
71
76
  # operation.
72
- # @param order_by [String] The ordering expression for the results, using OData
77
+ # @param orderby [String] The ordering expression for the results, using OData
73
78
  # notation.
74
79
  # @param [Hash{String => String}] A hash of custom headers that will be added
75
80
  # to the HTTP request.
76
81
  #
77
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
78
83
  #
79
- def list_async(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
84
+ def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
80
85
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
86
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
82
87
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -88,14 +93,14 @@ module Azure::ARM::DevTestLabs
88
93
  # Set Headers
89
94
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
90
95
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
91
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas'
96
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas'
92
97
 
93
98
  request_url = @base_url || @client.base_url
94
99
 
95
100
  options = {
96
101
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
102
  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},
103
+ query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
99
104
  headers: request_headers.merge(custom_headers || {}),
100
105
  base_url: request_url
101
106
  }
@@ -115,8 +120,8 @@ module Azure::ARM::DevTestLabs
115
120
  if status_code == 200
116
121
  begin
117
122
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
- result_mapper = ResponseWithContinuationFormula.mapper()
119
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
123
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationFormula.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
125
  rescue Exception => e
121
126
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
127
  end
@@ -134,13 +139,15 @@ module Azure::ARM::DevTestLabs
134
139
  # @param resource_group_name [String] The name of the resource group.
135
140
  # @param lab_name [String] The name of the lab.
136
141
  # @param name [String] The name of the formula.
142
+ # @param expand [String] Specify the $expand query. Example:
143
+ # 'properties($select=description)'
137
144
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
145
  # will be added to the HTTP request.
139
146
  #
140
147
  # @return [Formula] operation results.
141
148
  #
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!
149
+ def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
150
+ response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
144
151
  response.body unless response.nil?
145
152
  end
146
153
 
@@ -150,13 +157,15 @@ module Azure::ARM::DevTestLabs
150
157
  # @param resource_group_name [String] The name of the resource group.
151
158
  # @param lab_name [String] The name of the lab.
152
159
  # @param name [String] The name of the formula.
160
+ # @param expand [String] Specify the $expand query. Example:
161
+ # 'properties($select=description)'
153
162
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
163
  # will be added to the HTTP request.
155
164
  #
156
165
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
157
166
  #
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!
167
+ def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
168
+ get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
160
169
  end
161
170
 
162
171
  #
@@ -165,12 +174,14 @@ module Azure::ARM::DevTestLabs
165
174
  # @param resource_group_name [String] The name of the resource group.
166
175
  # @param lab_name [String] The name of the lab.
167
176
  # @param name [String] The name of the formula.
177
+ # @param expand [String] Specify the $expand query. Example:
178
+ # 'properties($select=description)'
168
179
  # @param [Hash{String => String}] A hash of custom headers that will be added
169
180
  # to the HTTP request.
170
181
  #
171
182
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
172
183
  #
173
- def get_resource_async(resource_group_name, lab_name, name, custom_headers = nil)
184
+ def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
174
185
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
186
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
187
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -183,14 +194,14 @@ module Azure::ARM::DevTestLabs
183
194
  # Set Headers
184
195
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
185
196
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
186
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
197
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
187
198
 
188
199
  request_url = @base_url || @client.base_url
189
200
 
190
201
  options = {
191
202
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
192
203
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
193
- query_params: {'api-version' => @client.api_version},
204
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
194
205
  headers: request_headers.merge(custom_headers || {}),
195
206
  base_url: request_url
196
207
  }
@@ -210,8 +221,8 @@ module Azure::ARM::DevTestLabs
210
221
  if status_code == 200
211
222
  begin
212
223
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
213
- result_mapper = Formula.mapper()
214
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
224
+ result_mapper = Azure::ARM::DevTestLabs::Models::Formula.mapper()
225
+ result.body = @client.deserialize(result_mapper, parsed_response)
215
226
  rescue Exception => e
216
227
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
217
228
  end
@@ -230,14 +241,15 @@ module Azure::ARM::DevTestLabs
230
241
  # @param resource_group_name [String] The name of the resource group.
231
242
  # @param lab_name [String] The name of the lab.
232
243
  # @param name [String] The name of the formula.
233
- # @param formula [Formula]
244
+ # @param formula [Formula] A formula for creating a VM, specifying an image
245
+ # base and other parameters
234
246
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
247
  # will be added to the HTTP request.
236
248
  #
237
249
  # @return [Formula] operation results.
238
250
  #
239
- def create_or_update_resource(resource_group_name, lab_name, name, formula, custom_headers = nil)
240
- response = create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers).value!
251
+ def create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil)
252
+ response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
241
253
  response.body unless response.nil?
242
254
  end
243
255
 
@@ -245,22 +257,23 @@ module Azure::ARM::DevTestLabs
245
257
  # @param resource_group_name [String] The name of the resource group.
246
258
  # @param lab_name [String] The name of the lab.
247
259
  # @param name [String] The name of the formula.
248
- # @param formula [Formula]
260
+ # @param formula [Formula] A formula for creating a VM, specifying an image
261
+ # base and other parameters
249
262
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
250
263
  # will be added to the HTTP request.
251
264
  #
252
265
  # @return [Concurrent::Promise] promise which provides async access to http
253
266
  # response.
254
267
  #
255
- def create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers = nil)
268
+ def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil)
256
269
  # Send request
257
- promise = begin_create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers)
270
+ promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers)
258
271
 
259
272
  promise = promise.then do |response|
260
273
  # Defining deserialization method.
261
274
  deserialize_method = lambda do |parsed_response|
262
- result_mapper = Formula.mapper()
263
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
275
+ result_mapper = Azure::ARM::DevTestLabs::Models::Formula.mapper()
276
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
264
277
  end
265
278
 
266
279
  # Waiting for response.
@@ -280,8 +293,8 @@ module Azure::ARM::DevTestLabs
280
293
  # will be added to the HTTP request.
281
294
  #
282
295
  #
283
- def delete_resource(resource_group_name, lab_name, name, custom_headers = nil)
284
- response = delete_resource_async(resource_group_name, lab_name, name, custom_headers).value!
296
+ def delete(resource_group_name, lab_name, name, custom_headers = nil)
297
+ response = delete_async(resource_group_name, lab_name, name, custom_headers).value!
285
298
  nil
286
299
  end
287
300
 
@@ -296,8 +309,8 @@ module Azure::ARM::DevTestLabs
296
309
  #
297
310
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
298
311
  #
299
- def delete_resource_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
300
- delete_resource_async(resource_group_name, lab_name, name, custom_headers).value!
312
+ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
313
+ delete_async(resource_group_name, lab_name, name, custom_headers).value!
301
314
  end
302
315
 
303
316
  #
@@ -311,7 +324,7 @@ module Azure::ARM::DevTestLabs
311
324
  #
312
325
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
313
326
  #
314
- def delete_resource_async(resource_group_name, lab_name, name, custom_headers = nil)
327
+ def delete_async(resource_group_name, lab_name, name, custom_headers = nil)
315
328
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
316
329
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
317
330
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -324,7 +337,7 @@ module Azure::ARM::DevTestLabs
324
337
  # Set Headers
325
338
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
326
339
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
327
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
340
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
328
341
 
329
342
  request_url = @base_url || @client.base_url
330
343
 
@@ -361,14 +374,15 @@ module Azure::ARM::DevTestLabs
361
374
  # @param resource_group_name [String] The name of the resource group.
362
375
  # @param lab_name [String] The name of the lab.
363
376
  # @param name [String] The name of the formula.
364
- # @param formula [Formula]
377
+ # @param formula [Formula] A formula for creating a VM, specifying an image
378
+ # base and other parameters
365
379
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
366
380
  # will be added to the HTTP request.
367
381
  #
368
382
  # @return [Formula] operation results.
369
383
  #
370
- def begin_create_or_update_resource(resource_group_name, lab_name, name, formula, custom_headers = nil)
371
- response = begin_create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers).value!
384
+ def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil)
385
+ response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
372
386
  response.body unless response.nil?
373
387
  end
374
388
 
@@ -379,14 +393,15 @@ module Azure::ARM::DevTestLabs
379
393
  # @param resource_group_name [String] The name of the resource group.
380
394
  # @param lab_name [String] The name of the lab.
381
395
  # @param name [String] The name of the formula.
382
- # @param formula [Formula]
396
+ # @param formula [Formula] A formula for creating a VM, specifying an image
397
+ # base and other parameters
383
398
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
399
  # will be added to the HTTP request.
385
400
  #
386
401
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
387
402
  #
388
- def begin_create_or_update_resource_with_http_info(resource_group_name, lab_name, name, formula, custom_headers = nil)
389
- begin_create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers).value!
403
+ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers = nil)
404
+ begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
390
405
  end
391
406
 
392
407
  #
@@ -396,13 +411,14 @@ module Azure::ARM::DevTestLabs
396
411
  # @param resource_group_name [String] The name of the resource group.
397
412
  # @param lab_name [String] The name of the lab.
398
413
  # @param name [String] The name of the formula.
399
- # @param formula [Formula]
414
+ # @param formula [Formula] A formula for creating a VM, specifying an image
415
+ # base and other parameters
400
416
  # @param [Hash{String => String}] A hash of custom headers that will be added
401
417
  # to the HTTP request.
402
418
  #
403
419
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
404
420
  #
405
- def begin_create_or_update_resource_async(resource_group_name, lab_name, name, formula, custom_headers = nil)
421
+ def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil)
406
422
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
407
423
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
408
424
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -420,11 +436,11 @@ module Azure::ARM::DevTestLabs
420
436
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
421
437
 
422
438
  # Serialize Request
423
- request_mapper = Formula.mapper()
424
- request_content = @client.serialize(request_mapper, formula, 'formula')
439
+ request_mapper = Azure::ARM::DevTestLabs::Models::Formula.mapper()
440
+ request_content = @client.serialize(request_mapper, formula)
425
441
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
426
442
 
427
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
443
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}'
428
444
 
429
445
  request_url = @base_url || @client.base_url
430
446
 
@@ -452,8 +468,8 @@ module Azure::ARM::DevTestLabs
452
468
  if status_code == 200
453
469
  begin
454
470
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
455
- result_mapper = Formula.mapper()
456
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
471
+ result_mapper = Azure::ARM::DevTestLabs::Models::Formula.mapper()
472
+ result.body = @client.deserialize(result_mapper, parsed_response)
457
473
  rescue Exception => e
458
474
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
459
475
  end
@@ -462,8 +478,8 @@ module Azure::ARM::DevTestLabs
462
478
  if status_code == 201
463
479
  begin
464
480
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
465
- result_mapper = Formula.mapper()
466
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
481
+ result_mapper = Azure::ARM::DevTestLabs::Models::Formula.mapper()
482
+ result.body = @client.deserialize(result_mapper, parsed_response)
467
483
  rescue Exception => e
468
484
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
469
485
  end
@@ -549,8 +565,8 @@ module Azure::ARM::DevTestLabs
549
565
  if status_code == 200
550
566
  begin
551
567
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
552
- result_mapper = ResponseWithContinuationFormula.mapper()
553
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
568
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationFormula.mapper()
569
+ result.body = @client.deserialize(result_mapper, parsed_response)
554
570
  rescue Exception => e
555
571
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
556
572
  end
@@ -567,10 +583,12 @@ module Azure::ARM::DevTestLabs
567
583
  #
568
584
  # @param resource_group_name [String] The name of the resource group.
569
585
  # @param lab_name [String] The name of the lab.
570
- # @param filter [String] The filter to apply on the operation.
586
+ # @param expand [String] Specify the $expand query. Example:
587
+ # 'properties($select=description)'
588
+ # @param filter [String] The filter to apply to the operation.
571
589
  # @param top [Integer] The maximum number of resources to return from the
572
590
  # operation.
573
- # @param order_by [String] The ordering expression for the results, using OData
591
+ # @param orderby [String] The ordering expression for the results, using OData
574
592
  # notation.
575
593
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
576
594
  # will be added to the HTTP request.
@@ -578,8 +596,8 @@ module Azure::ARM::DevTestLabs
578
596
  # @return [ResponseWithContinuationFormula] which provide lazy access to pages
579
597
  # of the response.
580
598
  #
581
- def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
582
- response = list_async(resource_group_name, lab_name, filter, top, order_by, custom_headers).value!
599
+ def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
600
+ response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
583
601
  unless response.nil?
584
602
  page = response.body
585
603
  page.next_method = Proc.new do |next_page_link|
@@ -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 GalleryImageOperations
11
- include Azure::ARM::DevTestLabs::Models
10
+ class GalleryImages
12
11
  include MsRestAzure
13
12
 
14
13
  #
15
- # Creates and initializes a new instance of the GalleryImageOperations class.
14
+ # Creates and initializes a new instance of the GalleryImages class.
16
15
  # @param client service class for accessing basic functionality.
17
16
  #
18
17
  def initialize(client)
@@ -27,18 +26,20 @@ module Azure::ARM::DevTestLabs
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 expand [String] Specify the $expand query. Example:
30
+ # 'properties($select=author)'
31
+ # @param filter [String] The filter to apply to the operation.
31
32
  # @param top [Integer] The maximum number of resources to return from the
32
33
  # operation.
33
- # @param order_by [String] The ordering expression for the results, using OData
34
+ # @param orderby [String] The ordering expression for the results, using OData
34
35
  # notation.
35
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
37
  # will be added to the HTTP request.
37
38
  #
38
39
  # @return [Array<GalleryImage>] operation results.
39
40
  #
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)
41
+ def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
42
+ first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
42
43
  first_page.get_all_items
43
44
  end
44
45
 
@@ -47,18 +48,20 @@ module Azure::ARM::DevTestLabs
47
48
  #
48
49
  # @param resource_group_name [String] The name of the resource group.
49
50
  # @param lab_name [String] The name of the lab.
50
- # @param filter [String] The filter to apply on the operation.
51
+ # @param expand [String] Specify the $expand query. Example:
52
+ # 'properties($select=author)'
53
+ # @param filter [String] The filter to apply to the operation.
51
54
  # @param top [Integer] The maximum number of resources to return from the
52
55
  # operation.
53
- # @param order_by [String] The ordering expression for the results, using OData
56
+ # @param orderby [String] The ordering expression for the results, using OData
54
57
  # notation.
55
58
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
59
  # will be added to the HTTP request.
57
60
  #
58
61
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
62
  #
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!
63
+ def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
64
+ list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
62
65
  end
63
66
 
64
67
  #
@@ -66,17 +69,19 @@ module Azure::ARM::DevTestLabs
66
69
  #
67
70
  # @param resource_group_name [String] The name of the resource group.
68
71
  # @param lab_name [String] The name of the lab.
69
- # @param filter [String] The filter to apply on the operation.
72
+ # @param expand [String] Specify the $expand query. Example:
73
+ # 'properties($select=author)'
74
+ # @param filter [String] The filter to apply to the operation.
70
75
  # @param top [Integer] The maximum number of resources to return from the
71
76
  # operation.
72
- # @param order_by [String] The ordering expression for the results, using OData
77
+ # @param orderby [String] The ordering expression for the results, using OData
73
78
  # notation.
74
79
  # @param [Hash{String => String}] A hash of custom headers that will be added
75
80
  # to the HTTP request.
76
81
  #
77
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
78
83
  #
79
- def list_async(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
84
+ def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
80
85
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
86
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
82
87
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -88,14 +93,14 @@ module Azure::ARM::DevTestLabs
88
93
  # Set Headers
89
94
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
90
95
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
91
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages'
96
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages'
92
97
 
93
98
  request_url = @base_url || @client.base_url
94
99
 
95
100
  options = {
96
101
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
102
  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},
103
+ query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
99
104
  headers: request_headers.merge(custom_headers || {}),
100
105
  base_url: request_url
101
106
  }
@@ -115,8 +120,8 @@ module Azure::ARM::DevTestLabs
115
120
  if status_code == 200
116
121
  begin
117
122
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
- result_mapper = ResponseWithContinuationGalleryImage.mapper()
119
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
123
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationGalleryImage.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
125
  rescue Exception => e
121
126
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
127
  end
@@ -202,8 +207,8 @@ module Azure::ARM::DevTestLabs
202
207
  if status_code == 200
203
208
  begin
204
209
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
205
- result_mapper = ResponseWithContinuationGalleryImage.mapper()
206
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
210
+ result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationGalleryImage.mapper()
211
+ result.body = @client.deserialize(result_mapper, parsed_response)
207
212
  rescue Exception => e
208
213
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
209
214
  end
@@ -220,10 +225,12 @@ module Azure::ARM::DevTestLabs
220
225
  #
221
226
  # @param resource_group_name [String] The name of the resource group.
222
227
  # @param lab_name [String] The name of the lab.
223
- # @param filter [String] The filter to apply on the operation.
228
+ # @param expand [String] Specify the $expand query. Example:
229
+ # 'properties($select=author)'
230
+ # @param filter [String] The filter to apply to the operation.
224
231
  # @param top [Integer] The maximum number of resources to return from the
225
232
  # operation.
226
- # @param order_by [String] The ordering expression for the results, using OData
233
+ # @param orderby [String] The ordering expression for the results, using OData
227
234
  # notation.
228
235
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
229
236
  # will be added to the HTTP request.
@@ -231,8 +238,8 @@ module Azure::ARM::DevTestLabs
231
238
  # @return [ResponseWithContinuationGalleryImage] which provide lazy access to
232
239
  # pages of the response.
233
240
  #
234
- def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, order_by = nil, custom_headers = nil)
235
- response = list_async(resource_group_name, lab_name, filter, top, order_by, custom_headers).value!
241
+ def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
242
+ response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
236
243
  unless response.nil?
237
244
  page = response.body
238
245
  page.next_method = Proc.new do |next_page_link|