azure_mgmt_automation 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_automation.rb +6 -0
  4. data/lib/generated/azure_mgmt_automation.rb +183 -0
  5. data/lib/generated/azure_mgmt_automation/activity_operations.rb +332 -0
  6. data/lib/generated/azure_mgmt_automation/agent_registration_information.rb +223 -0
  7. data/lib/generated/azure_mgmt_automation/automation_account_operations.rb +822 -0
  8. data/lib/generated/azure_mgmt_automation/automation_client.rb +245 -0
  9. data/lib/generated/azure_mgmt_automation/certificate_operations.rb +642 -0
  10. data/lib/generated/azure_mgmt_automation/connection_operations.rb +653 -0
  11. data/lib/generated/azure_mgmt_automation/connection_type_operations.rb +528 -0
  12. data/lib/generated/azure_mgmt_automation/credential_operations.rb +642 -0
  13. data/lib/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +534 -0
  14. data/lib/generated/azure_mgmt_automation/dsc_configuration_operations.rb +629 -0
  15. data/lib/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +532 -0
  16. data/lib/generated/azure_mgmt_automation/dsc_node_operations.rb +530 -0
  17. data/lib/generated/azure_mgmt_automation/fields.rb +124 -0
  18. data/lib/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +524 -0
  19. data/lib/generated/azure_mgmt_automation/job_operations.rb +888 -0
  20. data/lib/generated/azure_mgmt_automation/job_schedule_operations.rb +515 -0
  21. data/lib/generated/azure_mgmt_automation/job_stream_operations.rb +333 -0
  22. data/lib/generated/azure_mgmt_automation/models/activity.rb +133 -0
  23. data/lib/generated/azure_mgmt_automation/models/activity_list_result.rb +94 -0
  24. data/lib/generated/azure_mgmt_automation/models/activity_output_type.rb +54 -0
  25. data/lib/generated/azure_mgmt_automation/models/activity_parameter.rb +129 -0
  26. data/lib/generated/azure_mgmt_automation/models/activity_parameter_set.rb +63 -0
  27. data/lib/generated/azure_mgmt_automation/models/advanced_schedule.rb +89 -0
  28. data/lib/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +58 -0
  29. data/lib/generated/azure_mgmt_automation/models/agent_registration.rb +76 -0
  30. data/lib/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +16 -0
  31. data/lib/generated/azure_mgmt_automation/models/agent_registration_keys.rb +54 -0
  32. data/lib/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +84 -0
  33. data/lib/generated/azure_mgmt_automation/models/automation_account.rb +154 -0
  34. data/lib/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb +85 -0
  35. data/lib/generated/azure_mgmt_automation/models/automation_account_list_result.rb +94 -0
  36. data/lib/generated/azure_mgmt_automation/models/automation_account_state.rb +17 -0
  37. data/lib/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb +83 -0
  38. data/lib/generated/azure_mgmt_automation/models/certificate.rb +121 -0
  39. data/lib/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb +87 -0
  40. data/lib/generated/azure_mgmt_automation/models/certificate_list_result.rb +94 -0
  41. data/lib/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +54 -0
  42. data/lib/generated/azure_mgmt_automation/models/connection.rb +119 -0
  43. data/lib/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb +84 -0
  44. data/lib/generated/azure_mgmt_automation/models/connection_list_result.rb +94 -0
  45. data/lib/generated/azure_mgmt_automation/models/connection_type.rb +118 -0
  46. data/lib/generated/azure_mgmt_automation/models/connection_type_association_property.rb +44 -0
  47. data/lib/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb +75 -0
  48. data/lib/generated/azure_mgmt_automation/models/connection_type_list_result.rb +95 -0
  49. data/lib/generated/azure_mgmt_automation/models/connection_update_parameters.rb +72 -0
  50. data/lib/generated/azure_mgmt_automation/models/content_hash.rb +55 -0
  51. data/lib/generated/azure_mgmt_automation/models/content_link.rb +65 -0
  52. data/lib/generated/azure_mgmt_automation/models/content_source.rb +77 -0
  53. data/lib/generated/azure_mgmt_automation/models/content_source_type.rb +16 -0
  54. data/lib/generated/azure_mgmt_automation/models/credential.rb +98 -0
  55. data/lib/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb +74 -0
  56. data/lib/generated/azure_mgmt_automation/models/credential_list_result.rb +94 -0
  57. data/lib/generated/azure_mgmt_automation/models/credential_update_parameters.rb +74 -0
  58. data/lib/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +186 -0
  59. data/lib/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +102 -0
  60. data/lib/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +95 -0
  61. data/lib/generated/azure_mgmt_automation/models/dsc_configuration.rb +193 -0
  62. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb +44 -0
  63. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb +132 -0
  64. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +95 -0
  65. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb +75 -0
  66. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_provisioning_state.rb +15 -0
  67. data/lib/generated/azure_mgmt_automation/models/dsc_configuration_state.rb +17 -0
  68. data/lib/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb +111 -0
  69. data/lib/generated/azure_mgmt_automation/models/dsc_node.rb +161 -0
  70. data/lib/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +86 -0
  71. data/lib/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb +44 -0
  72. data/lib/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +69 -0
  73. data/lib/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +95 -0
  74. data/lib/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +94 -0
  75. data/lib/generated/azure_mgmt_automation/models/dsc_node_report.rb +265 -0
  76. data/lib/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +94 -0
  77. data/lib/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb +56 -0
  78. data/lib/generated/azure_mgmt_automation/models/dsc_report_error.rb +95 -0
  79. data/lib/generated/azure_mgmt_automation/models/dsc_report_resource.rb +143 -0
  80. data/lib/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb +44 -0
  81. data/lib/generated/azure_mgmt_automation/models/error_response.rb +54 -0
  82. data/lib/generated/azure_mgmt_automation/models/field_definition.rb +67 -0
  83. data/lib/generated/azure_mgmt_automation/models/http_status_code.rb +61 -0
  84. data/lib/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +65 -0
  85. data/lib/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +85 -0
  86. data/lib/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb +46 -0
  87. data/lib/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +95 -0
  88. data/lib/generated/azure_mgmt_automation/models/job.rb +188 -0
  89. data/lib/generated/azure_mgmt_automation/models/job_create_parameters.rb +112 -0
  90. data/lib/generated/azure_mgmt_automation/models/job_list_result.rb +94 -0
  91. data/lib/generated/azure_mgmt_automation/models/job_schedule.rb +105 -0
  92. data/lib/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb +84 -0
  93. data/lib/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +94 -0
  94. data/lib/generated/azure_mgmt_automation/models/job_status.rb +27 -0
  95. data/lib/generated/azure_mgmt_automation/models/job_stream.rb +113 -0
  96. data/lib/generated/azure_mgmt_automation/models/job_stream_list_result.rb +94 -0
  97. data/lib/generated/azure_mgmt_automation/models/job_stream_type.rb +21 -0
  98. data/lib/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb +83 -0
  99. data/lib/generated/azure_mgmt_automation/models/module_error_info.rb +54 -0
  100. data/lib/generated/azure_mgmt_automation/models/module_list_result.rb +94 -0
  101. data/lib/generated/azure_mgmt_automation/models/module_model.rb +198 -0
  102. data/lib/generated/azure_mgmt_automation/models/module_provisioning_state.rb +30 -0
  103. data/lib/generated/azure_mgmt_automation/models/module_update_parameters.rb +83 -0
  104. data/lib/generated/azure_mgmt_automation/models/operation.rb +55 -0
  105. data/lib/generated/azure_mgmt_automation/models/operation_display.rb +65 -0
  106. data/lib/generated/azure_mgmt_automation/models/operation_list_result.rb +53 -0
  107. data/lib/generated/azure_mgmt_automation/models/resource.rb +94 -0
  108. data/lib/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb +44 -0
  109. data/lib/generated/azure_mgmt_automation/models/runbook.rb +263 -0
  110. data/lib/generated/azure_mgmt_automation/models/runbook_association_property.rb +44 -0
  111. data/lib/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb +44 -0
  112. data/lib/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb +99 -0
  113. data/lib/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb +147 -0
  114. data/lib/generated/azure_mgmt_automation/models/runbook_draft.rb +112 -0
  115. data/lib/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb +68 -0
  116. data/lib/generated/azure_mgmt_automation/models/runbook_list_result.rb +94 -0
  117. data/lib/generated/azure_mgmt_automation/models/runbook_parameter.rb +75 -0
  118. data/lib/generated/azure_mgmt_automation/models/runbook_provisioning_state.rb +15 -0
  119. data/lib/generated/azure_mgmt_automation/models/runbook_state.rb +17 -0
  120. data/lib/generated/azure_mgmt_automation/models/runbook_type_enum.rb +20 -0
  121. data/lib/generated/azure_mgmt_automation/models/runbook_update_parameters.rb +113 -0
  122. data/lib/generated/azure_mgmt_automation/models/schedule.rb +199 -0
  123. data/lib/generated/azure_mgmt_automation/models/schedule_association_property.rb +44 -0
  124. data/lib/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +116 -0
  125. data/lib/generated/azure_mgmt_automation/models/schedule_day.rb +21 -0
  126. data/lib/generated/azure_mgmt_automation/models/schedule_frequency.rb +19 -0
  127. data/lib/generated/azure_mgmt_automation/models/schedule_list_result.rb +94 -0
  128. data/lib/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +65 -0
  129. data/lib/generated/azure_mgmt_automation/models/sku.rb +65 -0
  130. data/lib/generated/azure_mgmt_automation/models/sku_name_enum.rb +16 -0
  131. data/lib/generated/azure_mgmt_automation/models/statistics.rb +89 -0
  132. data/lib/generated/azure_mgmt_automation/models/statistics_list_result.rb +52 -0
  133. data/lib/generated/azure_mgmt_automation/models/sub_resource.rb +44 -0
  134. data/lib/generated/azure_mgmt_automation/models/test_job.rb +144 -0
  135. data/lib/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +73 -0
  136. data/lib/generated/azure_mgmt_automation/models/type_field.rb +54 -0
  137. data/lib/generated/azure_mgmt_automation/models/type_field_list_result.rb +52 -0
  138. data/lib/generated/azure_mgmt_automation/models/usage.rb +95 -0
  139. data/lib/generated/azure_mgmt_automation/models/usage_counter_name.rb +54 -0
  140. data/lib/generated/azure_mgmt_automation/models/usage_list_result.rb +52 -0
  141. data/lib/generated/azure_mgmt_automation/models/variable.rb +104 -0
  142. data/lib/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb +74 -0
  143. data/lib/generated/azure_mgmt_automation/models/variable_list_result.rb +94 -0
  144. data/lib/generated/azure_mgmt_automation/models/variable_update_parameters.rb +64 -0
  145. data/lib/generated/azure_mgmt_automation/models/webhook.rb +168 -0
  146. data/lib/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb +115 -0
  147. data/lib/generated/azure_mgmt_automation/models/webhook_list_result.rb +94 -0
  148. data/lib/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +94 -0
  149. data/lib/generated/azure_mgmt_automation/module_definition.rb +8 -0
  150. data/lib/generated/azure_mgmt_automation/module_model_operations.rb +633 -0
  151. data/lib/generated/azure_mgmt_automation/node_reports.rb +438 -0
  152. data/lib/generated/azure_mgmt_automation/object_data_types.rb +219 -0
  153. data/lib/generated/azure_mgmt_automation/operations.rb +106 -0
  154. data/lib/generated/azure_mgmt_automation/runbook_draft_operations.rb +605 -0
  155. data/lib/generated/azure_mgmt_automation/runbook_operations.rb +719 -0
  156. data/lib/generated/azure_mgmt_automation/schedule_operations.rb +626 -0
  157. data/lib/generated/azure_mgmt_automation/statistics_operations.rb +119 -0
  158. data/lib/generated/azure_mgmt_automation/test_job_streams.rb +333 -0
  159. data/lib/generated/azure_mgmt_automation/test_jobs.rb +486 -0
  160. data/lib/generated/azure_mgmt_automation/usages.rb +116 -0
  161. data/lib/generated/azure_mgmt_automation/variable_operations.rb +636 -0
  162. data/lib/generated/azure_mgmt_automation/version.rb +8 -0
  163. data/lib/generated/azure_mgmt_automation/webhook_operations.rb +737 -0
  164. metadata +275 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 47a8858d943f68268d0fdc882651cc27e5176524
4
+ data.tar.gz: 860d74e7aacad12757c1ad1e4a3a9d9c1e8029b3
5
+ SHA512:
6
+ metadata.gz: 9d0e1b431817e09edbdf5e57e3996a942f177e5bb9d953e49ab41dc2089f83313be2d92934a8daca3ac5627a288d8565ab798b434f03c923880fe7b25690c0c0
7
+ data.tar.gz: e09f16106b8776ab1134c0c0eaf02d39507935890e515c2c44d9d4c9d40f1453361a8586f1c703609f1d20b1c10f8b066e6d1ea2f22bb6fcdfe4f23635da5cc1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'generated/azure_mgmt_automation'
6
+
@@ -0,0 +1,183 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require 'generated/azure_mgmt_automation/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::Automation
23
+ autoload :AutomationAccountOperations, 'generated/azure_mgmt_automation/automation_account_operations.rb'
24
+ autoload :Operations, 'generated/azure_mgmt_automation/operations.rb'
25
+ autoload :StatisticsOperations, 'generated/azure_mgmt_automation/statistics_operations.rb'
26
+ autoload :Usages, 'generated/azure_mgmt_automation/usages.rb'
27
+ autoload :CertificateOperations, 'generated/azure_mgmt_automation/certificate_operations.rb'
28
+ autoload :ConnectionOperations, 'generated/azure_mgmt_automation/connection_operations.rb'
29
+ autoload :ConnectionTypeOperations, 'generated/azure_mgmt_automation/connection_type_operations.rb'
30
+ autoload :CredentialOperations, 'generated/azure_mgmt_automation/credential_operations.rb'
31
+ autoload :DscCompilationJobOperations, 'generated/azure_mgmt_automation/dsc_compilation_job_operations.rb'
32
+ autoload :DscConfigurationOperations, 'generated/azure_mgmt_automation/dsc_configuration_operations.rb'
33
+ autoload :AgentRegistrationInformation, 'generated/azure_mgmt_automation/agent_registration_information.rb'
34
+ autoload :DscNodeOperations, 'generated/azure_mgmt_automation/dsc_node_operations.rb'
35
+ autoload :NodeReports, 'generated/azure_mgmt_automation/node_reports.rb'
36
+ autoload :DscNodeConfigurationOperations, 'generated/azure_mgmt_automation/dsc_node_configuration_operations.rb'
37
+ autoload :HybridRunbookWorkerGroupOperations, 'generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb'
38
+ autoload :JobOperations, 'generated/azure_mgmt_automation/job_operations.rb'
39
+ autoload :JobStreamOperations, 'generated/azure_mgmt_automation/job_stream_operations.rb'
40
+ autoload :JobScheduleOperations, 'generated/azure_mgmt_automation/job_schedule_operations.rb'
41
+ autoload :ActivityOperations, 'generated/azure_mgmt_automation/activity_operations.rb'
42
+ autoload :ModuleModelOperations, 'generated/azure_mgmt_automation/module_model_operations.rb'
43
+ autoload :ObjectDataTypes, 'generated/azure_mgmt_automation/object_data_types.rb'
44
+ autoload :Fields, 'generated/azure_mgmt_automation/fields.rb'
45
+ autoload :RunbookDraftOperations, 'generated/azure_mgmt_automation/runbook_draft_operations.rb'
46
+ autoload :RunbookOperations, 'generated/azure_mgmt_automation/runbook_operations.rb'
47
+ autoload :TestJobStreams, 'generated/azure_mgmt_automation/test_job_streams.rb'
48
+ autoload :TestJobs, 'generated/azure_mgmt_automation/test_jobs.rb'
49
+ autoload :ScheduleOperations, 'generated/azure_mgmt_automation/schedule_operations.rb'
50
+ autoload :VariableOperations, 'generated/azure_mgmt_automation/variable_operations.rb'
51
+ autoload :WebhookOperations, 'generated/azure_mgmt_automation/webhook_operations.rb'
52
+ autoload :AutomationClient, 'generated/azure_mgmt_automation/automation_client.rb'
53
+
54
+ module Models
55
+ autoload :DscCompilationJob, 'generated/azure_mgmt_automation/models/dsc_compilation_job.rb'
56
+ autoload :ErrorResponse, 'generated/azure_mgmt_automation/models/error_response.rb'
57
+ autoload :DscCompilationJobListResult, 'generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb'
58
+ autoload :Usage, 'generated/azure_mgmt_automation/models/usage.rb'
59
+ autoload :DscConfigurationListResult, 'generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb'
60
+ autoload :Statistics, 'generated/azure_mgmt_automation/models/statistics.rb'
61
+ autoload :DscConfigurationCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb'
62
+ autoload :RunbookParameter, 'generated/azure_mgmt_automation/models/runbook_parameter.rb'
63
+ autoload :DscMetaConfiguration, 'generated/azure_mgmt_automation/models/dsc_meta_configuration.rb'
64
+ autoload :ContentLink, 'generated/azure_mgmt_automation/models/content_link.rb'
65
+ autoload :DscNodeConfigurationCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb'
66
+ autoload :ContentHash, 'generated/azure_mgmt_automation/models/content_hash.rb'
67
+ autoload :ModuleErrorInfo, 'generated/azure_mgmt_automation/models/module_error_info.rb'
68
+ autoload :RunbookDraft, 'generated/azure_mgmt_automation/models/runbook_draft.rb'
69
+ autoload :DscNodeConfigurationAssociationProperty, 'generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb'
70
+ autoload :WebhookCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb'
71
+ autoload :ContentSource, 'generated/azure_mgmt_automation/models/content_source.rb'
72
+ autoload :DscNodeConfiguration, 'generated/azure_mgmt_automation/models/dsc_node_configuration.rb'
73
+ autoload :WebhookListResult, 'generated/azure_mgmt_automation/models/webhook_list_result.rb'
74
+ autoload :DscNodeConfigurationListResult, 'generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb'
75
+ autoload :Webhook, 'generated/azure_mgmt_automation/models/webhook.rb'
76
+ autoload :DscNodeListResult, 'generated/azure_mgmt_automation/models/dsc_node_list_result.rb'
77
+ autoload :AutomationAccountListResult, 'generated/azure_mgmt_automation/models/automation_account_list_result.rb'
78
+ autoload :DscNodeUpdateParameters, 'generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb'
79
+ autoload :Operation, 'generated/azure_mgmt_automation/models/operation.rb'
80
+ autoload :DscReportError, 'generated/azure_mgmt_automation/models/dsc_report_error.rb'
81
+ autoload :AutomationAccountCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb'
82
+ autoload :DscReportResourceNavigation, 'generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb'
83
+ autoload :Certificate, 'generated/azure_mgmt_automation/models/certificate.rb'
84
+ autoload :DscReportResource, 'generated/azure_mgmt_automation/models/dsc_report_resource.rb'
85
+ autoload :CertificateUpdateParameters, 'generated/azure_mgmt_automation/models/certificate_update_parameters.rb'
86
+ autoload :DscNodeReport, 'generated/azure_mgmt_automation/models/dsc_node_report.rb'
87
+ autoload :ConnectionTypeAssociationProperty, 'generated/azure_mgmt_automation/models/connection_type_association_property.rb'
88
+ autoload :DscNodeReportListResult, 'generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb'
89
+ autoload :ConnectionListResult, 'generated/azure_mgmt_automation/models/connection_list_result.rb'
90
+ autoload :HybridRunbookWorker, 'generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb'
91
+ autoload :ConnectionCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb'
92
+ autoload :RunAsCredentialAssociationProperty, 'generated/azure_mgmt_automation/models/run_as_credential_association_property.rb'
93
+ autoload :ConnectionType, 'generated/azure_mgmt_automation/models/connection_type.rb'
94
+ autoload :HybridRunbookWorkerGroup, 'generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb'
95
+ autoload :ConnectionTypeCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb'
96
+ autoload :HybridRunbookWorkerGroupsListResult, 'generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb'
97
+ autoload :CredentialListResult, 'generated/azure_mgmt_automation/models/credential_list_result.rb'
98
+ autoload :HybridRunbookWorkerGroupUpdateParameters, 'generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb'
99
+ autoload :CredentialCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb'
100
+ autoload :RunbookAssociationProperty, 'generated/azure_mgmt_automation/models/runbook_association_property.rb'
101
+ autoload :ActivityParameterSet, 'generated/azure_mgmt_automation/models/activity_parameter_set.rb'
102
+ autoload :Job, 'generated/azure_mgmt_automation/models/job.rb'
103
+ autoload :Activity, 'generated/azure_mgmt_automation/models/activity.rb'
104
+ autoload :JobCreateParameters, 'generated/azure_mgmt_automation/models/job_create_parameters.rb'
105
+ autoload :AdvancedScheduleMonthlyOccurrence, 'generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb'
106
+ autoload :JobListResult, 'generated/azure_mgmt_automation/models/job_list_result.rb'
107
+ autoload :AgentRegistrationKeys, 'generated/azure_mgmt_automation/models/agent_registration_keys.rb'
108
+ autoload :ScheduleAssociationProperty, 'generated/azure_mgmt_automation/models/schedule_association_property.rb'
109
+ autoload :AgentRegistrationRegenerateKeyParameter, 'generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb'
110
+ autoload :JobScheduleCreateParameters, 'generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb'
111
+ autoload :DscCompilationJobCreateParameters, 'generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb'
112
+ autoload :JobSchedule, 'generated/azure_mgmt_automation/models/job_schedule.rb'
113
+ autoload :UsageListResult, 'generated/azure_mgmt_automation/models/usage_list_result.rb'
114
+ autoload :JobScheduleListResult, 'generated/azure_mgmt_automation/models/job_schedule_list_result.rb'
115
+ autoload :JobStream, 'generated/azure_mgmt_automation/models/job_stream.rb'
116
+ autoload :DscConfigurationParameter, 'generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb'
117
+ autoload :JobStreamListResult, 'generated/azure_mgmt_automation/models/job_stream_list_result.rb'
118
+ autoload :Resource, 'generated/azure_mgmt_automation/models/resource.rb'
119
+ autoload :ModuleCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb'
120
+ autoload :OperationListResult, 'generated/azure_mgmt_automation/models/operation_list_result.rb'
121
+ autoload :ModuleListResult, 'generated/azure_mgmt_automation/models/module_list_result.rb'
122
+ autoload :CertificateListResult, 'generated/azure_mgmt_automation/models/certificate_list_result.rb'
123
+ autoload :ModuleUpdateParameters, 'generated/azure_mgmt_automation/models/module_update_parameters.rb'
124
+ autoload :Connection, 'generated/azure_mgmt_automation/models/connection.rb'
125
+ autoload :RunbookDraftUndoEditResult, 'generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb'
126
+ autoload :FieldDefinition, 'generated/azure_mgmt_automation/models/field_definition.rb'
127
+ autoload :RunbookCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb'
128
+ autoload :Credential, 'generated/azure_mgmt_automation/models/credential.rb'
129
+ autoload :RunbookCreateOrUpdateDraftProperties, 'generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb'
130
+ autoload :ActivityParameter, 'generated/azure_mgmt_automation/models/activity_parameter.rb'
131
+ autoload :RunbookCreateOrUpdateDraftParameters, 'generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb'
132
+ autoload :ActivityListResult, 'generated/azure_mgmt_automation/models/activity_list_result.rb'
133
+ autoload :RunbookUpdateParameters, 'generated/azure_mgmt_automation/models/runbook_update_parameters.rb'
134
+ autoload :AgentRegistration, 'generated/azure_mgmt_automation/models/agent_registration.rb'
135
+ autoload :RunbookListResult, 'generated/azure_mgmt_automation/models/runbook_list_result.rb'
136
+ autoload :UsageCounterName, 'generated/azure_mgmt_automation/models/usage_counter_name.rb'
137
+ autoload :ScheduleCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb'
138
+ autoload :WebhookUpdateParameters, 'generated/azure_mgmt_automation/models/webhook_update_parameters.rb'
139
+ autoload :Schedule, 'generated/azure_mgmt_automation/models/schedule.rb'
140
+ autoload :OperationDisplay, 'generated/azure_mgmt_automation/models/operation_display.rb'
141
+ autoload :ScheduleUpdateParameters, 'generated/azure_mgmt_automation/models/schedule_update_parameters.rb'
142
+ autoload :CertificateCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb'
143
+ autoload :ScheduleListResult, 'generated/azure_mgmt_automation/models/schedule_list_result.rb'
144
+ autoload :ConnectionTypeListResult, 'generated/azure_mgmt_automation/models/connection_type_list_result.rb'
145
+ autoload :SubResource, 'generated/azure_mgmt_automation/models/sub_resource.rb'
146
+ autoload :ActivityOutputType, 'generated/azure_mgmt_automation/models/activity_output_type.rb'
147
+ autoload :TestJobCreateParameters, 'generated/azure_mgmt_automation/models/test_job_create_parameters.rb'
148
+ autoload :DscConfigurationAssociationProperty, 'generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb'
149
+ autoload :TestJob, 'generated/azure_mgmt_automation/models/test_job.rb'
150
+ autoload :Sku, 'generated/azure_mgmt_automation/models/sku.rb'
151
+ autoload :TypeField, 'generated/azure_mgmt_automation/models/type_field.rb'
152
+ autoload :ConnectionUpdateParameters, 'generated/azure_mgmt_automation/models/connection_update_parameters.rb'
153
+ autoload :TypeFieldListResult, 'generated/azure_mgmt_automation/models/type_field_list_result.rb'
154
+ autoload :AdvancedSchedule, 'generated/azure_mgmt_automation/models/advanced_schedule.rb'
155
+ autoload :VariableCreateOrUpdateParameters, 'generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb'
156
+ autoload :AutomationAccountUpdateParameters, 'generated/azure_mgmt_automation/models/automation_account_update_parameters.rb'
157
+ autoload :Variable, 'generated/azure_mgmt_automation/models/variable.rb'
158
+ autoload :StatisticsListResult, 'generated/azure_mgmt_automation/models/statistics_list_result.rb'
159
+ autoload :VariableListResult, 'generated/azure_mgmt_automation/models/variable_list_result.rb'
160
+ autoload :CredentialUpdateParameters, 'generated/azure_mgmt_automation/models/credential_update_parameters.rb'
161
+ autoload :VariableUpdateParameters, 'generated/azure_mgmt_automation/models/variable_update_parameters.rb'
162
+ autoload :Runbook, 'generated/azure_mgmt_automation/models/runbook.rb'
163
+ autoload :ModuleModel, 'generated/azure_mgmt_automation/models/module_model.rb'
164
+ autoload :DscNode, 'generated/azure_mgmt_automation/models/dsc_node.rb'
165
+ autoload :DscConfiguration, 'generated/azure_mgmt_automation/models/dsc_configuration.rb'
166
+ autoload :AutomationAccount, 'generated/azure_mgmt_automation/models/automation_account.rb'
167
+ autoload :RunbookTypeEnum, 'generated/azure_mgmt_automation/models/runbook_type_enum.rb'
168
+ autoload :RunbookState, 'generated/azure_mgmt_automation/models/runbook_state.rb'
169
+ autoload :RunbookProvisioningState, 'generated/azure_mgmt_automation/models/runbook_provisioning_state.rb'
170
+ autoload :ModuleProvisioningState, 'generated/azure_mgmt_automation/models/module_provisioning_state.rb'
171
+ autoload :ContentSourceType, 'generated/azure_mgmt_automation/models/content_source_type.rb'
172
+ autoload :DscConfigurationProvisioningState, 'generated/azure_mgmt_automation/models/dsc_configuration_provisioning_state.rb'
173
+ autoload :DscConfigurationState, 'generated/azure_mgmt_automation/models/dsc_configuration_state.rb'
174
+ autoload :SkuNameEnum, 'generated/azure_mgmt_automation/models/sku_name_enum.rb'
175
+ autoload :AutomationAccountState, 'generated/azure_mgmt_automation/models/automation_account_state.rb'
176
+ autoload :ScheduleDay, 'generated/azure_mgmt_automation/models/schedule_day.rb'
177
+ autoload :AgentRegistrationKeyName, 'generated/azure_mgmt_automation/models/agent_registration_key_name.rb'
178
+ autoload :JobStatus, 'generated/azure_mgmt_automation/models/job_status.rb'
179
+ autoload :JobStreamType, 'generated/azure_mgmt_automation/models/job_stream_type.rb'
180
+ autoload :HttpStatusCode, 'generated/azure_mgmt_automation/models/http_status_code.rb'
181
+ autoload :ScheduleFrequency, 'generated/azure_mgmt_automation/models/schedule_frequency.rb'
182
+ end
183
+ end
@@ -0,0 +1,332 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Automation
7
+ #
8
+ # Automation Client
9
+ #
10
+ class ActivityOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ActivityOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AutomationClient] reference to the AutomationClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Retrieve the activity in the module identified by module name and activity
26
+ # name.
27
+ #
28
+ # @param resource_group_name [String] The resource group name.
29
+ # @param automation_account_name [String] The automation account name.
30
+ # @param module_name [String] The name of module.
31
+ # @param activity_name [String] The name of activity.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Activity] operation results.
36
+ #
37
+ def get(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil)
38
+ response = get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Retrieve the activity in the module identified by module name and activity
44
+ # name.
45
+ #
46
+ # @param resource_group_name [String] The resource group name.
47
+ # @param automation_account_name [String] The automation account name.
48
+ # @param module_name [String] The name of module.
49
+ # @param activity_name [String] The name of activity.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def get_with_http_info(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil)
56
+ get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Retrieve the activity in the module identified by module name and activity
61
+ # name.
62
+ #
63
+ # @param resource_group_name [String] The resource group name.
64
+ # @param automation_account_name [String] The automation account name.
65
+ # @param module_name [String] The name of module.
66
+ # @param activity_name [String] The name of activity.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil)
73
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
75
+ fail ArgumentError, 'module_name is nil' if module_name.nil?
76
+ fail ArgumentError, 'activity_name is nil' if activity_name.nil?
77
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
78
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
79
+
80
+
81
+ request_headers = {}
82
+
83
+ # Set Headers
84
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
85
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
86
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}'
87
+
88
+ request_url = @base_url || @client.base_url
89
+
90
+ options = {
91
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
92
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'activityName' => activity_name,'subscriptionId' => @client.subscription_id},
93
+ query_params: {'api-version' => @client.api_version},
94
+ headers: request_headers.merge(custom_headers || {}),
95
+ base_url: request_url
96
+ }
97
+ promise = @client.make_request_async(:get, path_template, options)
98
+
99
+ promise = promise.then do |result|
100
+ http_response = result.response
101
+ status_code = http_response.status
102
+ response_content = http_response.body
103
+ unless status_code == 200
104
+ error_model = JSON.load(response_content)
105
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
106
+ end
107
+
108
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
109
+ # Deserialize Response
110
+ if status_code == 200
111
+ begin
112
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
113
+ result_mapper = Azure::ARM::Automation::Models::Activity.mapper()
114
+ result.body = @client.deserialize(result_mapper, parsed_response)
115
+ rescue Exception => e
116
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
117
+ end
118
+ end
119
+
120
+ result
121
+ end
122
+
123
+ promise.execute
124
+ end
125
+
126
+ #
127
+ # Retrieve a list of activities in the module identified by module name.
128
+ #
129
+ # @param resource_group_name [String] The resource group name.
130
+ # @param automation_account_name [String] The automation account name.
131
+ # @param module_name [String] The name of module.
132
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
+ # will be added to the HTTP request.
134
+ #
135
+ # @return [Array<Activity>] operation results.
136
+ #
137
+ def list_by_module(resource_group_name, automation_account_name, module_name, custom_headers = nil)
138
+ first_page = list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers)
139
+ first_page.get_all_items
140
+ end
141
+
142
+ #
143
+ # Retrieve a list of activities in the module identified by module name.
144
+ #
145
+ # @param resource_group_name [String] The resource group name.
146
+ # @param automation_account_name [String] The automation account name.
147
+ # @param module_name [String] The name of module.
148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
+ # will be added to the HTTP request.
150
+ #
151
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
+ #
153
+ def list_by_module_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil)
154
+ list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
155
+ end
156
+
157
+ #
158
+ # Retrieve a list of activities in the module identified by module name.
159
+ #
160
+ # @param resource_group_name [String] The resource group name.
161
+ # @param automation_account_name [String] The automation account name.
162
+ # @param module_name [String] The name of module.
163
+ # @param [Hash{String => String}] A hash of custom headers that will be added
164
+ # to the HTTP request.
165
+ #
166
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
167
+ #
168
+ def list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers = nil)
169
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
170
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
171
+ fail ArgumentError, 'module_name is nil' if module_name.nil?
172
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
173
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
174
+
175
+
176
+ request_headers = {}
177
+
178
+ # Set Headers
179
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
180
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
181
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities'
182
+
183
+ request_url = @base_url || @client.base_url
184
+
185
+ options = {
186
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
187
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
188
+ query_params: {'api-version' => @client.api_version},
189
+ headers: request_headers.merge(custom_headers || {}),
190
+ base_url: request_url
191
+ }
192
+ promise = @client.make_request_async(:get, path_template, options)
193
+
194
+ promise = promise.then do |result|
195
+ http_response = result.response
196
+ status_code = http_response.status
197
+ response_content = http_response.body
198
+ unless status_code == 200
199
+ error_model = JSON.load(response_content)
200
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
201
+ end
202
+
203
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
204
+ # Deserialize Response
205
+ if status_code == 200
206
+ begin
207
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
208
+ result_mapper = Azure::ARM::Automation::Models::ActivityListResult.mapper()
209
+ result.body = @client.deserialize(result_mapper, parsed_response)
210
+ rescue Exception => e
211
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
212
+ end
213
+ end
214
+
215
+ result
216
+ end
217
+
218
+ promise.execute
219
+ end
220
+
221
+ #
222
+ # Retrieve a list of activities in the module identified by module name.
223
+ #
224
+ # @param next_page_link [String] The NextLink from the previous successful call
225
+ # to List operation.
226
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
227
+ # will be added to the HTTP request.
228
+ #
229
+ # @return [ActivityListResult] operation results.
230
+ #
231
+ def list_by_module_next(next_page_link, custom_headers = nil)
232
+ response = list_by_module_next_async(next_page_link, custom_headers).value!
233
+ response.body unless response.nil?
234
+ end
235
+
236
+ #
237
+ # Retrieve a list of activities in the module identified by module name.
238
+ #
239
+ # @param next_page_link [String] The NextLink from the previous successful call
240
+ # to List operation.
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
245
+ #
246
+ def list_by_module_next_with_http_info(next_page_link, custom_headers = nil)
247
+ list_by_module_next_async(next_page_link, custom_headers).value!
248
+ end
249
+
250
+ #
251
+ # Retrieve a list of activities in the module identified by module name.
252
+ #
253
+ # @param next_page_link [String] The NextLink from the previous successful call
254
+ # to List operation.
255
+ # @param [Hash{String => String}] A hash of custom headers that will be added
256
+ # to the HTTP request.
257
+ #
258
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
259
+ #
260
+ def list_by_module_next_async(next_page_link, custom_headers = nil)
261
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
262
+
263
+
264
+ request_headers = {}
265
+
266
+ # Set Headers
267
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
268
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
269
+ path_template = '{nextLink}'
270
+
271
+ request_url = @base_url || @client.base_url
272
+
273
+ options = {
274
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
275
+ skip_encoding_path_params: {'nextLink' => next_page_link},
276
+ headers: request_headers.merge(custom_headers || {}),
277
+ base_url: request_url
278
+ }
279
+ promise = @client.make_request_async(:get, path_template, options)
280
+
281
+ promise = promise.then do |result|
282
+ http_response = result.response
283
+ status_code = http_response.status
284
+ response_content = http_response.body
285
+ unless status_code == 200
286
+ error_model = JSON.load(response_content)
287
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
288
+ end
289
+
290
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
291
+ # Deserialize Response
292
+ if status_code == 200
293
+ begin
294
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
295
+ result_mapper = Azure::ARM::Automation::Models::ActivityListResult.mapper()
296
+ result.body = @client.deserialize(result_mapper, parsed_response)
297
+ rescue Exception => e
298
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
299
+ end
300
+ end
301
+
302
+ result
303
+ end
304
+
305
+ promise.execute
306
+ end
307
+
308
+ #
309
+ # Retrieve a list of activities in the module identified by module name.
310
+ #
311
+ # @param resource_group_name [String] The resource group name.
312
+ # @param automation_account_name [String] The automation account name.
313
+ # @param module_name [String] The name of module.
314
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
315
+ # will be added to the HTTP request.
316
+ #
317
+ # @return [ActivityListResult] which provide lazy access to pages of the
318
+ # response.
319
+ #
320
+ def list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers = nil)
321
+ response = list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
322
+ unless response.nil?
323
+ page = response.body
324
+ page.next_method = Proc.new do |next_page_link|
325
+ list_by_module_next_async(next_page_link, custom_headers)
326
+ end
327
+ page
328
+ end
329
+ end
330
+
331
+ end
332
+ end