azure_mgmt_automation 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +183 -0
  3. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/activity_operations.rb +4 -4
  4. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/agent_registration_information.rb +4 -4
  5. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/automation_account_operations.rb +11 -11
  6. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/automation_client.rb +3 -3
  7. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/certificate_operations.rb +9 -9
  8. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/connection_operations.rb +10 -10
  9. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/connection_type_operations.rb +7 -7
  10. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/credential_operations.rb +9 -9
  11. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/dsc_compilation_job_operations.rb +7 -7
  12. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/dsc_configuration_operations.rb +7 -7
  13. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/dsc_node_configuration_operations.rb +7 -7
  14. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/dsc_node_operations.rb +7 -7
  15. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/fields.rb +2 -2
  16. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +6 -6
  17. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/job_operations.rb +6 -6
  18. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/job_schedule_operations.rb +6 -6
  19. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/job_stream_operations.rb +4 -4
  20. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/activity.rb +1 -1
  21. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/activity_list_result.rb +1 -1
  22. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/activity_output_type.rb +1 -1
  23. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/activity_parameter.rb +1 -1
  24. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/activity_parameter_set.rb +1 -1
  25. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/advanced_schedule.rb +1 -1
  26. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  27. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/agent_registration.rb +1 -1
  28. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/agent_registration_key_name.rb +1 -1
  29. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/agent_registration_keys.rb +1 -1
  30. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +1 -1
  31. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/automation_account.rb +1 -1
  32. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb +1 -1
  33. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/automation_account_list_result.rb +1 -1
  34. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/automation_account_state.rb +1 -1
  35. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/automation_account_update_parameters.rb +1 -1
  36. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/certificate.rb +1 -1
  37. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb +1 -1
  38. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/certificate_list_result.rb +1 -1
  39. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  40. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection.rb +1 -1
  41. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_create_or_update_parameters.rb +1 -1
  42. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_list_result.rb +1 -1
  43. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_type.rb +1 -1
  44. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_type_association_property.rb +1 -1
  45. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb +1 -1
  46. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_type_list_result.rb +1 -1
  47. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/connection_update_parameters.rb +1 -1
  48. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/content_hash.rb +1 -1
  49. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/content_link.rb +1 -1
  50. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/content_source.rb +1 -1
  51. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/content_source_type.rb +1 -1
  52. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/credential.rb +1 -1
  53. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/credential_create_or_update_parameters.rb +1 -1
  54. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/credential_list_result.rb +1 -1
  55. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  56. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_compilation_job.rb +1 -1
  57. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +1 -1
  58. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +1 -1
  59. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration.rb +1 -1
  60. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_association_property.rb +1 -1
  61. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb +1 -1
  62. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_list_result.rb +1 -1
  63. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_parameter.rb +1 -1
  64. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_provisioning_state.rb +1 -1
  65. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_configuration_state.rb +1 -1
  66. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_meta_configuration.rb +1 -1
  67. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node.rb +1 -1
  68. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_configuration.rb +1 -1
  69. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb +1 -1
  70. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +1 -1
  71. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +1 -1
  72. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_list_result.rb +1 -1
  73. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_report.rb +1 -1
  74. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_report_list_result.rb +1 -1
  75. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_node_update_parameters.rb +1 -1
  76. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_report_error.rb +1 -1
  77. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_report_resource.rb +1 -1
  78. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/dsc_report_resource_navigation.rb +1 -1
  79. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/error_response.rb +1 -1
  80. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/field_definition.rb +1 -1
  81. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/http_status_code.rb +1 -1
  82. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/hybrid_runbook_worker.rb +1 -1
  83. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +1 -1
  84. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb +1 -1
  85. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +1 -1
  86. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job.rb +1 -1
  87. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_create_parameters.rb +1 -1
  88. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_list_result.rb +1 -1
  89. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_schedule.rb +1 -1
  90. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_schedule_create_parameters.rb +1 -1
  91. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_schedule_list_result.rb +1 -1
  92. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_status.rb +1 -1
  93. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_stream.rb +1 -1
  94. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_stream_list_result.rb +1 -1
  95. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/job_stream_type.rb +1 -1
  96. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_create_or_update_parameters.rb +1 -1
  97. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_error_info.rb +1 -1
  98. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_list_result.rb +1 -1
  99. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_model.rb +1 -1
  100. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_provisioning_state.rb +1 -1
  101. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/module_update_parameters.rb +1 -1
  102. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/operation.rb +1 -1
  103. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/operation_display.rb +1 -1
  104. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/operation_list_result.rb +1 -1
  105. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/resource.rb +1 -1
  106. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/run_as_credential_association_property.rb +1 -1
  107. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook.rb +1 -1
  108. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_association_property.rb +1 -1
  109. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb +1 -1
  110. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb +1 -1
  111. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb +1 -1
  112. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_draft.rb +1 -1
  113. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb +1 -1
  114. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_list_result.rb +1 -1
  115. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_parameter.rb +1 -1
  116. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_provisioning_state.rb +1 -1
  117. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_state.rb +1 -1
  118. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_type_enum.rb +1 -1
  119. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/runbook_update_parameters.rb +1 -1
  120. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule.rb +1 -1
  121. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  122. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
  123. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_day.rb +1 -1
  124. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_frequency.rb +1 -1
  125. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_list_result.rb +1 -1
  126. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  127. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/sku.rb +1 -1
  128. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/sku_name_enum.rb +1 -1
  129. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/statistics.rb +1 -1
  130. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/statistics_list_result.rb +1 -1
  131. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/sub_resource.rb +1 -1
  132. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/test_job.rb +1 -1
  133. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/test_job_create_parameters.rb +1 -1
  134. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/type_field.rb +1 -1
  135. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/type_field_list_result.rb +1 -1
  136. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/usage.rb +1 -1
  137. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/usage_counter_name.rb +1 -1
  138. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/usage_list_result.rb +1 -1
  139. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/variable.rb +1 -1
  140. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/variable_create_or_update_parameters.rb +1 -1
  141. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/variable_list_result.rb +1 -1
  142. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  143. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/webhook.rb +1 -1
  144. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb +1 -1
  145. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/webhook_list_result.rb +1 -1
  146. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  147. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/module_definition.rb +3 -2
  148. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/module_model_operations.rb +9 -9
  149. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/node_reports.rb +4 -4
  150. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/object_data_types.rb +3 -3
  151. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/operations.rb +2 -2
  152. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/runbook_draft_operations.rb +5 -5
  153. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/runbook_operations.rb +7 -7
  154. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/schedule_operations.rb +8 -8
  155. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/statistics_operations.rb +2 -2
  156. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/test_job_streams.rb +4 -4
  157. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/test_jobs.rb +4 -4
  158. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/usages.rb +2 -2
  159. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/variable_operations.rb +9 -9
  160. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/version.rb +2 -2
  161. data/lib/{generated → 2015-10-31/generated}/azure_mgmt_automation/webhook_operations.rb +9 -9
  162. data/lib/azure_mgmt_automation.rb +2 -2
  163. data/lib/module_definition.rb +7 -0
  164. data/lib/profiles/common/configurable.rb +73 -0
  165. data/lib/profiles/common/default.rb +68 -0
  166. data/lib/profiles/latest/automation_latest_profile_client.rb +33 -0
  167. data/lib/profiles/latest/automation_module_definition.rb +9 -0
  168. data/lib/profiles/latest/modules/automation_profile_module.rb +606 -0
  169. data/lib/version.rb +7 -0
  170. metadata +169 -162
  171. data/lib/generated/azure_mgmt_automation.rb +0 -183
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -102,7 +102,7 @@ module Azure::ARM::Automation
102
102
  if status_code == 200
103
103
  begin
104
104
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
- result_mapper = Azure::ARM::Automation::Models::StatisticsListResult.mapper()
105
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult.mapper()
106
106
  result.body = @client.deserialize(result_mapper, parsed_response)
107
107
  rescue Exception => e
108
108
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -107,7 +107,7 @@ module Azure::ARM::Automation
107
107
  if status_code == 200
108
108
  begin
109
109
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
110
- result_mapper = Azure::ARM::Automation::Models::JobStream.mapper()
110
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStream.mapper()
111
111
  result.body = @client.deserialize(result_mapper, parsed_response)
112
112
  rescue Exception => e
113
113
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -205,7 +205,7 @@ module Azure::ARM::Automation
205
205
  if status_code == 200
206
206
  begin
207
207
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
208
- result_mapper = Azure::ARM::Automation::Models::JobStreamListResult.mapper()
208
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult.mapper()
209
209
  result.body = @client.deserialize(result_mapper, parsed_response)
210
210
  rescue Exception => e
211
211
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -292,7 +292,7 @@ module Azure::ARM::Automation
292
292
  if status_code == 200
293
293
  begin
294
294
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
295
- result_mapper = Azure::ARM::Automation::Models::JobStreamListResult.mapper()
295
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult.mapper()
296
296
  result.body = @client.deserialize(result_mapper, parsed_response)
297
297
  rescue Exception => e
298
298
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -90,7 +90,7 @@ module Azure::ARM::Automation
90
90
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
91
 
92
92
  # Serialize Request
93
- request_mapper = Azure::ARM::Automation::Models::TestJobCreateParameters.mapper()
93
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters.mapper()
94
94
  request_content = @client.serialize(request_mapper, parameters)
95
95
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
96
96
 
@@ -122,7 +122,7 @@ module Azure::ARM::Automation
122
122
  if status_code == 201
123
123
  begin
124
124
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
125
- result_mapper = Azure::ARM::Automation::Models::TestJob.mapper()
125
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob.mapper()
126
126
  result.body = @client.deserialize(result_mapper, parsed_response)
127
127
  rescue Exception => e
128
128
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -217,7 +217,7 @@ module Azure::ARM::Automation
217
217
  if status_code == 200
218
218
  begin
219
219
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
220
- result_mapper = Azure::ARM::Automation::Models::TestJob.mapper()
220
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob.mapper()
221
221
  result.body = @client.deserialize(result_mapper, parsed_response)
222
222
  rescue Exception => e
223
223
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -99,7 +99,7 @@ module Azure::ARM::Automation
99
99
  if status_code == 200
100
100
  begin
101
101
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
102
- result_mapper = Azure::ARM::Automation::Models::UsageListResult.mapper()
102
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult.mapper()
103
103
  result.body = @client.deserialize(result_mapper, parsed_response)
104
104
  rescue Exception => e
105
105
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -87,7 +87,7 @@ module Azure::ARM::Automation
87
87
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
88
88
 
89
89
  # Serialize Request
90
- request_mapper = Azure::ARM::Automation::Models::VariableCreateOrUpdateParameters.mapper()
90
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters.mapper()
91
91
  request_content = @client.serialize(request_mapper, parameters)
92
92
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
93
93
 
@@ -119,7 +119,7 @@ module Azure::ARM::Automation
119
119
  if status_code == 200
120
120
  begin
121
121
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
122
- result_mapper = Azure::ARM::Automation::Models::Variable.mapper()
122
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Variable.mapper()
123
123
  result.body = @client.deserialize(result_mapper, parsed_response)
124
124
  rescue Exception => e
125
125
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -129,7 +129,7 @@ module Azure::ARM::Automation
129
129
  if status_code == 201
130
130
  begin
131
131
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
132
- result_mapper = Azure::ARM::Automation::Models::Variable.mapper()
132
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Variable.mapper()
133
133
  result.body = @client.deserialize(result_mapper, parsed_response)
134
134
  rescue Exception => e
135
135
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -208,7 +208,7 @@ module Azure::ARM::Automation
208
208
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
209
209
 
210
210
  # Serialize Request
211
- request_mapper = Azure::ARM::Automation::Models::VariableUpdateParameters.mapper()
211
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters.mapper()
212
212
  request_content = @client.serialize(request_mapper, parameters)
213
213
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
214
214
 
@@ -240,7 +240,7 @@ module Azure::ARM::Automation
240
240
  if status_code == 200
241
241
  begin
242
242
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
243
- result_mapper = Azure::ARM::Automation::Models::Variable.mapper()
243
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Variable.mapper()
244
244
  result.body = @client.deserialize(result_mapper, parsed_response)
245
245
  rescue Exception => e
246
246
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -419,7 +419,7 @@ module Azure::ARM::Automation
419
419
  if status_code == 200
420
420
  begin
421
421
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
422
- result_mapper = Azure::ARM::Automation::Models::Variable.mapper()
422
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Variable.mapper()
423
423
  result.body = @client.deserialize(result_mapper, parsed_response)
424
424
  rescue Exception => e
425
425
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -510,7 +510,7 @@ module Azure::ARM::Automation
510
510
  if status_code == 200
511
511
  begin
512
512
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
513
- result_mapper = Azure::ARM::Automation::Models::VariableListResult.mapper()
513
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult.mapper()
514
514
  result.body = @client.deserialize(result_mapper, parsed_response)
515
515
  rescue Exception => e
516
516
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -597,7 +597,7 @@ module Azure::ARM::Automation
597
597
  if status_code == 200
598
598
  begin
599
599
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
600
- result_mapper = Azure::ARM::Automation::Models::VariableListResult.mapper()
600
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult.mapper()
601
601
  result.body = @client.deserialize(result_mapper, parsed_response)
602
602
  rescue Exception => e
603
603
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
7
- VERSION = '0.14.0'
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
+ VERSION = '0.15.0'
8
8
  end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Automation
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
@@ -284,7 +284,7 @@ module Azure::ARM::Automation
284
284
  if status_code == 200
285
285
  begin
286
286
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
287
- result_mapper = Azure::ARM::Automation::Models::Webhook.mapper()
287
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook.mapper()
288
288
  result.body = @client.deserialize(result_mapper, parsed_response)
289
289
  rescue Exception => e
290
290
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -363,7 +363,7 @@ module Azure::ARM::Automation
363
363
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
364
364
 
365
365
  # Serialize Request
366
- request_mapper = Azure::ARM::Automation::Models::WebhookCreateOrUpdateParameters.mapper()
366
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters.mapper()
367
367
  request_content = @client.serialize(request_mapper, parameters)
368
368
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
369
369
 
@@ -395,7 +395,7 @@ module Azure::ARM::Automation
395
395
  if status_code == 200
396
396
  begin
397
397
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
398
- result_mapper = Azure::ARM::Automation::Models::Webhook.mapper()
398
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook.mapper()
399
399
  result.body = @client.deserialize(result_mapper, parsed_response)
400
400
  rescue Exception => e
401
401
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -405,7 +405,7 @@ module Azure::ARM::Automation
405
405
  if status_code == 201
406
406
  begin
407
407
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
408
- result_mapper = Azure::ARM::Automation::Models::Webhook.mapper()
408
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook.mapper()
409
409
  result.body = @client.deserialize(result_mapper, parsed_response)
410
410
  rescue Exception => e
411
411
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -484,7 +484,7 @@ module Azure::ARM::Automation
484
484
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
485
485
 
486
486
  # Serialize Request
487
- request_mapper = Azure::ARM::Automation::Models::WebhookUpdateParameters.mapper()
487
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters.mapper()
488
488
  request_content = @client.serialize(request_mapper, parameters)
489
489
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
490
490
 
@@ -516,7 +516,7 @@ module Azure::ARM::Automation
516
516
  if status_code == 200
517
517
  begin
518
518
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
519
- result_mapper = Azure::ARM::Automation::Models::Webhook.mapper()
519
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook.mapper()
520
520
  result.body = @client.deserialize(result_mapper, parsed_response)
521
521
  rescue Exception => e
522
522
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -610,7 +610,7 @@ module Azure::ARM::Automation
610
610
  if status_code == 200
611
611
  begin
612
612
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
613
- result_mapper = Azure::ARM::Automation::Models::WebhookListResult.mapper()
613
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult.mapper()
614
614
  result.body = @client.deserialize(result_mapper, parsed_response)
615
615
  rescue Exception => e
616
616
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -697,7 +697,7 @@ module Azure::ARM::Automation
697
697
  if status_code == 200
698
698
  begin
699
699
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
700
- result_mapper = Azure::ARM::Automation::Models::WebhookListResult.mapper()
700
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult.mapper()
701
701
  result.body = @client.deserialize(result_mapper, parsed_response)
702
702
  rescue Exception => e
703
703
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_automation'
6
-
5
+ require '2015-10-31/generated/azure_mgmt_automation'
6
+ require 'profiles/latest/automation_latest_profile_client'
@@ -0,0 +1,7 @@
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
+ module Azure end
6
+ module Azure::Automation end
7
+ module Azure::Automation::Mgmt end
@@ -0,0 +1,73 @@
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
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,68 @@
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
+ module Azure::ARM
6
+ # Default configuration options for {Azure::ARM.Client}
7
+ module Default
8
+ class << self
9
+ #
10
+ # Default Azure Tenant Id.
11
+ # @return [String] Azure Tenant Id.
12
+ #
13
+ def tenant_id
14
+ ENV['AZURE_TENANT_ID']
15
+ end
16
+
17
+ #
18
+ # Default Azure Client Id.
19
+ # @return [String] Azure Client Id.
20
+ #
21
+ def client_id
22
+ ENV['AZURE_CLIENT_ID']
23
+ end
24
+
25
+ #
26
+ # Default Azure Client Secret.
27
+ # @return [String] Azure Client Secret.
28
+ #
29
+ def client_secret
30
+ ENV['AZURE_CLIENT_SECRET']
31
+ end
32
+
33
+ #
34
+ # Default Azure Subscription Id.
35
+ # @return [String] Azure Subscription Id.
36
+ #
37
+ def subscription_id
38
+ ENV['AZURE_SUBSCRIPTION_ID']
39
+ end
40
+
41
+ #
42
+ # Default Azure credentials to authorize HTTP requests made by the service client.
43
+ # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
44
+ #
45
+ def credentials
46
+ MsRest::TokenCredentials.new(
47
+ MsRestAzure::ApplicationTokenProvider.new(
48
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
49
+ end
50
+
51
+ #
52
+ # Default Azure Active Directory Service Settings.
53
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
54
+ #
55
+ def active_directory_settings
56
+ MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
57
+ end
58
+
59
+ #
60
+ # Configuration options.
61
+ # @return [Hash] Configuration options.
62
+ #
63
+ def options
64
+ Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,33 @@
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 'profiles/latest/automation_module_definition'
6
+ require 'profiles/latest/modules/automation_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::Automation::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < AutomationClass
15
+ include Azure::ARM::Configurable
16
+
17
+
18
+ def initialize(options = {})
19
+ super(options)
20
+ end
21
+
22
+ def credentials
23
+ if @credentials.nil?
24
+ self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
25
+
26
+ @credentials = MsRest::TokenCredentials.new(
27
+ MsRestAzure::ApplicationTokenProvider.new(
28
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
29
+ end
30
+ @credentials
31
+ end
32
+ end
33
+ end