azure_mgmt_automation 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +111 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +39 -32
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +28 -24
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +92 -81
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +25 -9
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +81 -69
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +81 -69
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +67 -56
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +81 -69
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +67 -56
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +215 -70
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +68 -67
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +67 -56
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +14 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +72 -57
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +123 -100
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +72 -57
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +39 -32
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +1 -1
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +1 -1
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +10 -7
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +1 -1
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +10 -7
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +1 -1
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +1 -1
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +11 -7
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +1 -1
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +1 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +13 -1
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +22 -25
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +13 -1
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +1 -1
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +1 -1
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +1 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +1 -1
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +1 -1
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +1 -1
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +11 -32
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +1 -1
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +12 -7
  78. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  79. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +3 -3
  80. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +1 -1
  81. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +2 -2
  82. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  83. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  84. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  85. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +12 -7
  86. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +1 -1
  87. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  88. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  89. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +1 -1
  90. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  91. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +81 -69
  92. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +54 -61
  93. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +28 -22
  94. data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
  95. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +144 -118
  96. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +131 -95
  97. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +93 -71
  98. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +14 -11
  99. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +82 -69
  100. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +49 -39
  101. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +14 -11
  102. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +81 -69
  103. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +95 -80
  104. data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
  105. data/lib/profiles/latest/automation_module_definition.rb +0 -1
  106. data/lib/profiles/latest/modules/automation_profile_module.rb +585 -516
  107. data/lib/version.rb +1 -1
  108. metadata +21 -7
@@ -46,7 +46,7 @@ module Azure::Automation::Mgmt::V2015_10_31
46
46
  model_properties: {
47
47
  name: {
48
48
  client_side_validation: true,
49
- required: true,
49
+ required: false,
50
50
  serialized_name: 'name',
51
51
  type: {
52
52
  name: 'String'
@@ -24,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the module by name.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
29
  # @param module_name [String] The module name.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
33
  #
34
- def delete(resource_group_name, automation_account_name, module_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, module_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
39
39
  #
40
40
  # Delete the module by name.
41
41
  #
42
- # @param resource_group_name [String] The resource group name.
43
- # @param automation_account_name [String] The automation account name.
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
44
44
  # @param module_name [String] The module name.
45
45
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
46
  # will be added to the HTTP request.
47
47
  #
48
48
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
49
  #
50
- def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
55
55
  # Delete the module by name.
56
56
  #
57
- # @param resource_group_name [String] The resource group name.
58
- # @param automation_account_name [String] The automation account name.
57
+ # @param resource_group_name [String] Name of an Azure Resource group.
58
+ # @param automation_account_name [String] The name of the automation account.
59
59
  # @param module_name [String] The module name.
60
60
  # @param [Hash{String => String}] A hash of custom headers that will be added
61
61
  # to the HTTP request.
62
62
  #
63
63
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
64
64
  #
65
- def delete_async(resource_group_name, automation_account_name, module_name, custom_headers = nil)
65
+ def delete_async(resource_group_name, automation_account_name, module_name, custom_headers:nil)
66
66
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
67
69
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
68
70
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
71
  fail ArgumentError, 'module_name is nil' if module_name.nil?
@@ -72,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
72
74
 
73
75
 
74
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
78
 
76
79
  # Set Headers
77
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -109,47 +112,49 @@ module Azure::Automation::Mgmt::V2015_10_31
109
112
  #
110
113
  # Retrieve the module identified by module name.
111
114
  #
112
- # @param resource_group_name [String] The resource group name.
113
- # @param automation_account_name [String] The automation account name.
115
+ # @param resource_group_name [String] Name of an Azure Resource group.
116
+ # @param automation_account_name [String] The name of the automation account.
114
117
  # @param module_name [String] The module name.
115
118
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
116
119
  # will be added to the HTTP request.
117
120
  #
118
121
  # @return [ModuleModel] operation results.
119
122
  #
120
- def get(resource_group_name, automation_account_name, module_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, module_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
122
125
  response.body unless response.nil?
123
126
  end
124
127
 
125
128
  #
126
129
  # Retrieve the module identified by module name.
127
130
  #
128
- # @param resource_group_name [String] The resource group name.
129
- # @param automation_account_name [String] The automation account name.
131
+ # @param resource_group_name [String] Name of an Azure Resource group.
132
+ # @param automation_account_name [String] The name of the automation account.
130
133
  # @param module_name [String] The module name.
131
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
132
135
  # will be added to the HTTP request.
133
136
  #
134
137
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
135
138
  #
136
- def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, module_name, custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the module identified by module name.
142
145
  #
143
- # @param resource_group_name [String] The resource group name.
144
- # @param automation_account_name [String] The automation account name.
146
+ # @param resource_group_name [String] Name of an Azure Resource group.
147
+ # @param automation_account_name [String] The name of the automation account.
145
148
  # @param module_name [String] The module name.
146
149
  # @param [Hash{String => String}] A hash of custom headers that will be added
147
150
  # to the HTTP request.
148
151
  #
149
152
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
153
  #
151
- def get_async(resource_group_name, automation_account_name, module_name, custom_headers = nil)
154
+ def get_async(resource_group_name, automation_account_name, module_name, custom_headers:nil)
152
155
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
156
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
157
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
153
158
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
154
159
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
155
160
  fail ArgumentError, 'module_name is nil' if module_name.nil?
@@ -158,6 +163,7 @@ module Azure::Automation::Mgmt::V2015_10_31
158
163
 
159
164
 
160
165
  request_headers = {}
166
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
161
167
 
162
168
  # Set Headers
163
169
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -205,8 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
205
211
  #
206
212
  # Create or Update the module identified by module name.
207
213
  #
208
- # @param resource_group_name [String] The resource group name.
209
- # @param automation_account_name [String] The automation account name.
214
+ # @param resource_group_name [String] Name of an Azure Resource group.
215
+ # @param automation_account_name [String] The name of the automation account.
210
216
  # @param module_name [String] The name of module.
211
217
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
212
218
  # parameters for module.
@@ -215,16 +221,16 @@ module Azure::Automation::Mgmt::V2015_10_31
215
221
  #
216
222
  # @return [ModuleModel] operation results.
217
223
  #
218
- def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
219
- response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value!
224
+ def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
225
+ response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
220
226
  response.body unless response.nil?
221
227
  end
222
228
 
223
229
  #
224
230
  # Create or Update the module identified by module name.
225
231
  #
226
- # @param resource_group_name [String] The resource group name.
227
- # @param automation_account_name [String] The automation account name.
232
+ # @param resource_group_name [String] Name of an Azure Resource group.
233
+ # @param automation_account_name [String] The name of the automation account.
228
234
  # @param module_name [String] The name of module.
229
235
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
230
236
  # parameters for module.
@@ -233,15 +239,15 @@ module Azure::Automation::Mgmt::V2015_10_31
233
239
  #
234
240
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
235
241
  #
236
- def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
237
- create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value!
242
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
243
+ create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
238
244
  end
239
245
 
240
246
  #
241
247
  # Create or Update the module identified by module name.
242
248
  #
243
- # @param resource_group_name [String] The resource group name.
244
- # @param automation_account_name [String] The automation account name.
249
+ # @param resource_group_name [String] Name of an Azure Resource group.
250
+ # @param automation_account_name [String] The name of the automation account.
245
251
  # @param module_name [String] The name of module.
246
252
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
247
253
  # parameters for module.
@@ -250,8 +256,10 @@ module Azure::Automation::Mgmt::V2015_10_31
250
256
  #
251
257
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
252
258
  #
253
- def create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
259
+ def create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
254
260
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
261
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
262
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
255
263
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
256
264
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
257
265
  fail ArgumentError, 'module_name is nil' if module_name.nil?
@@ -261,13 +269,12 @@ module Azure::Automation::Mgmt::V2015_10_31
261
269
 
262
270
 
263
271
  request_headers = {}
272
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
264
273
 
265
274
  # Set Headers
266
275
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
267
276
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
268
277
 
269
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
270
-
271
278
  # Serialize Request
272
279
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters.mapper()
273
280
  request_content = @client.serialize(request_mapper, parameters)
@@ -327,8 +334,8 @@ module Azure::Automation::Mgmt::V2015_10_31
327
334
  #
328
335
  # Update the module identified by module name.
329
336
  #
330
- # @param resource_group_name [String] The resource group name.
331
- # @param automation_account_name [String] The automation account name.
337
+ # @param resource_group_name [String] Name of an Azure Resource group.
338
+ # @param automation_account_name [String] The name of the automation account.
332
339
  # @param module_name [String] The name of module.
333
340
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
334
341
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -336,16 +343,16 @@ module Azure::Automation::Mgmt::V2015_10_31
336
343
  #
337
344
  # @return [ModuleModel] operation results.
338
345
  #
339
- def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
340
- response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value!
346
+ def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
347
+ response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
341
348
  response.body unless response.nil?
342
349
  end
343
350
 
344
351
  #
345
352
  # Update the module identified by module name.
346
353
  #
347
- # @param resource_group_name [String] The resource group name.
348
- # @param automation_account_name [String] The automation account name.
354
+ # @param resource_group_name [String] Name of an Azure Resource group.
355
+ # @param automation_account_name [String] The name of the automation account.
349
356
  # @param module_name [String] The name of module.
350
357
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
351
358
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -353,15 +360,15 @@ module Azure::Automation::Mgmt::V2015_10_31
353
360
  #
354
361
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
355
362
  #
356
- def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
357
- update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value!
363
+ def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
364
+ update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
358
365
  end
359
366
 
360
367
  #
361
368
  # Update the module identified by module name.
362
369
  #
363
- # @param resource_group_name [String] The resource group name.
364
- # @param automation_account_name [String] The automation account name.
370
+ # @param resource_group_name [String] Name of an Azure Resource group.
371
+ # @param automation_account_name [String] The name of the automation account.
365
372
  # @param module_name [String] The name of module.
366
373
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
367
374
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -369,8 +376,10 @@ module Azure::Automation::Mgmt::V2015_10_31
369
376
  #
370
377
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
378
  #
372
- def update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil)
379
+ def update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
373
380
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
374
383
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
375
384
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
376
385
  fail ArgumentError, 'module_name is nil' if module_name.nil?
@@ -380,13 +389,12 @@ module Azure::Automation::Mgmt::V2015_10_31
380
389
 
381
390
 
382
391
  request_headers = {}
392
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
383
393
 
384
394
  # Set Headers
385
395
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
386
396
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
387
397
 
388
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
389
-
390
398
  # Serialize Request
391
399
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters.mapper()
392
400
  request_content = @client.serialize(request_mapper, parameters)
@@ -436,44 +444,46 @@ module Azure::Automation::Mgmt::V2015_10_31
436
444
  #
437
445
  # Retrieve a list of modules.
438
446
  #
439
- # @param resource_group_name [String] The resource group name.
440
- # @param automation_account_name [String] The automation account name.
447
+ # @param resource_group_name [String] Name of an Azure Resource group.
448
+ # @param automation_account_name [String] The name of the automation account.
441
449
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
442
450
  # will be added to the HTTP request.
443
451
  #
444
452
  # @return [Array<ModuleModel>] operation results.
445
453
  #
446
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
447
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
454
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
455
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
448
456
  first_page.get_all_items
449
457
  end
450
458
 
451
459
  #
452
460
  # Retrieve a list of modules.
453
461
  #
454
- # @param resource_group_name [String] The resource group name.
455
- # @param automation_account_name [String] The automation account name.
462
+ # @param resource_group_name [String] Name of an Azure Resource group.
463
+ # @param automation_account_name [String] The name of the automation account.
456
464
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
457
465
  # will be added to the HTTP request.
458
466
  #
459
467
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
460
468
  #
461
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
462
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
469
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
470
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
463
471
  end
464
472
 
465
473
  #
466
474
  # Retrieve a list of modules.
467
475
  #
468
- # @param resource_group_name [String] The resource group name.
469
- # @param automation_account_name [String] The automation account name.
476
+ # @param resource_group_name [String] Name of an Azure Resource group.
477
+ # @param automation_account_name [String] The name of the automation account.
470
478
  # @param [Hash{String => String}] A hash of custom headers that will be added
471
479
  # to the HTTP request.
472
480
  #
473
481
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
474
482
  #
475
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
483
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
476
484
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
485
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
486
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
477
487
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
478
488
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
479
489
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -481,6 +491,7 @@ module Azure::Automation::Mgmt::V2015_10_31
481
491
 
482
492
 
483
493
  request_headers = {}
494
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
484
495
 
485
496
  # Set Headers
486
497
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -535,8 +546,8 @@ module Azure::Automation::Mgmt::V2015_10_31
535
546
  #
536
547
  # @return [ModuleListResult] operation results.
537
548
  #
538
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
539
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
549
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
550
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
540
551
  response.body unless response.nil?
541
552
  end
542
553
 
@@ -550,8 +561,8 @@ module Azure::Automation::Mgmt::V2015_10_31
550
561
  #
551
562
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
552
563
  #
553
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
554
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
564
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
565
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
555
566
  end
556
567
 
557
568
  #
@@ -564,11 +575,12 @@ module Azure::Automation::Mgmt::V2015_10_31
564
575
  #
565
576
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
566
577
  #
567
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
578
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
568
579
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
569
580
 
570
581
 
571
582
  request_headers = {}
583
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
572
584
 
573
585
  # Set Headers
574
586
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -615,20 +627,20 @@ module Azure::Automation::Mgmt::V2015_10_31
615
627
  #
616
628
  # Retrieve a list of modules.
617
629
  #
618
- # @param resource_group_name [String] The resource group name.
619
- # @param automation_account_name [String] The automation account name.
630
+ # @param resource_group_name [String] Name of an Azure Resource group.
631
+ # @param automation_account_name [String] The name of the automation account.
620
632
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
621
633
  # will be added to the HTTP request.
622
634
  #
623
635
  # @return [ModuleListResult] which provide lazy access to pages of the
624
636
  # response.
625
637
  #
626
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
627
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
638
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
639
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
628
640
  unless response.nil?
629
641
  page = response.body
630
642
  page.next_method = Proc.new do |next_page_link|
631
- list_by_automation_account_next_async(next_page_link, custom_headers)
643
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
632
644
  end
633
645
  page
634
646
  end
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the Dsc node report list by node id.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
29
  # @param node_id [String] The parameters supplied to the list operation.
30
30
  # @param filter [String] The filter to apply on the operation.
31
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -33,16 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
33
33
  #
34
34
  # @return [Array<DscNodeReport>] operation results.
35
35
  #
36
- def list_by_node(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil)
37
- first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter, custom_headers)
36
+ def list_by_node(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
37
+ first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers)
38
38
  first_page.get_all_items
39
39
  end
40
40
 
41
41
  #
42
42
  # Retrieve the Dsc node report list by node id.
43
43
  #
44
- # @param resource_group_name [String] The resource group name.
45
- # @param automation_account_name [String] The automation account name.
44
+ # @param resource_group_name [String] Name of an Azure Resource group.
45
+ # @param automation_account_name [String] The name of the automation account.
46
46
  # @param node_id [String] The parameters supplied to the list operation.
47
47
  # @param filter [String] The filter to apply on the operation.
48
48
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -50,15 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil)
54
- list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value!
53
+ def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
54
+ list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
58
58
  # Retrieve the Dsc node report list by node id.
59
59
  #
60
- # @param resource_group_name [String] The resource group name.
61
- # @param automation_account_name [String] The automation account name.
60
+ # @param resource_group_name [String] Name of an Azure Resource group.
61
+ # @param automation_account_name [String] The name of the automation account.
62
62
  # @param node_id [String] The parameters supplied to the list operation.
63
63
  # @param filter [String] The filter to apply on the operation.
64
64
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -66,8 +66,10 @@ module Azure::Automation::Mgmt::V2015_10_31
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def list_by_node_async(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil)
69
+ def list_by_node_async(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
71
73
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
74
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
75
  fail ArgumentError, 'node_id is nil' if node_id.nil?
@@ -76,6 +78,7 @@ module Azure::Automation::Mgmt::V2015_10_31
76
78
 
77
79
 
78
80
  request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
82
 
80
83
  # Set Headers
81
84
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,8 +126,8 @@ module Azure::Automation::Mgmt::V2015_10_31
123
126
  #
124
127
  # Retrieve the Dsc node report data by node id and report id.
125
128
  #
126
- # @param resource_group_name [String] The resource group name.
127
- # @param automation_account_name [String] The automation account name.
129
+ # @param resource_group_name [String] Name of an Azure Resource group.
130
+ # @param automation_account_name [String] The name of the automation account.
128
131
  # @param node_id [String] The Dsc node id.
129
132
  # @param report_id [String] The report id.
130
133
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -132,16 +135,16 @@ module Azure::Automation::Mgmt::V2015_10_31
132
135
  #
133
136
  # @return [DscNodeReport] operation results.
134
137
  #
135
- def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
136
- response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value!
138
+ def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
139
+ response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
137
140
  response.body unless response.nil?
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the Dsc node report data by node id and report id.
142
145
  #
143
- # @param resource_group_name [String] The resource group name.
144
- # @param automation_account_name [String] The automation account name.
146
+ # @param resource_group_name [String] Name of an Azure Resource group.
147
+ # @param automation_account_name [String] The name of the automation account.
145
148
  # @param node_id [String] The Dsc node id.
146
149
  # @param report_id [String] The report id.
147
150
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -149,15 +152,15 @@ module Azure::Automation::Mgmt::V2015_10_31
149
152
  #
150
153
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
151
154
  #
152
- def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
153
- get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value!
155
+ def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
156
+ get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
154
157
  end
155
158
 
156
159
  #
157
160
  # Retrieve the Dsc node report data by node id and report id.
158
161
  #
159
- # @param resource_group_name [String] The resource group name.
160
- # @param automation_account_name [String] The automation account name.
162
+ # @param resource_group_name [String] Name of an Azure Resource group.
163
+ # @param automation_account_name [String] The name of the automation account.
161
164
  # @param node_id [String] The Dsc node id.
162
165
  # @param report_id [String] The report id.
163
166
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -165,8 +168,10 @@ module Azure::Automation::Mgmt::V2015_10_31
165
168
  #
166
169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
167
170
  #
168
- def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
171
+ def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
169
172
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
173
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
170
175
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
171
176
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
172
177
  fail ArgumentError, 'node_id is nil' if node_id.nil?
@@ -176,6 +181,7 @@ module Azure::Automation::Mgmt::V2015_10_31
176
181
 
177
182
 
178
183
  request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
185
 
180
186
  # Set Headers
181
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -223,25 +229,25 @@ module Azure::Automation::Mgmt::V2015_10_31
223
229
  #
224
230
  # Retrieve the Dsc node reports by node id and report id.
225
231
  #
226
- # @param resource_group_name [String] The resource group name.
227
- # @param automation_account_name [String] The automation account name.
232
+ # @param resource_group_name [String] Name of an Azure Resource group.
233
+ # @param automation_account_name [String] The name of the automation account.
228
234
  # @param node_id [String] The Dsc node id.
229
235
  # @param report_id [String] The report id.
230
236
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
231
237
  # will be added to the HTTP request.
232
238
  #
233
- # @return [NOT_IMPLEMENTED] operation results.
239
+ # @return [Object] operation results.
234
240
  #
235
- def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
236
- response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value!
241
+ def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
242
+ response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
237
243
  response.body unless response.nil?
238
244
  end
239
245
 
240
246
  #
241
247
  # Retrieve the Dsc node reports by node id and report id.
242
248
  #
243
- # @param resource_group_name [String] The resource group name.
244
- # @param automation_account_name [String] The automation account name.
249
+ # @param resource_group_name [String] Name of an Azure Resource group.
250
+ # @param automation_account_name [String] The name of the automation account.
245
251
  # @param node_id [String] The Dsc node id.
246
252
  # @param report_id [String] The report id.
247
253
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -249,15 +255,15 @@ module Azure::Automation::Mgmt::V2015_10_31
249
255
  #
250
256
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
251
257
  #
252
- def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
253
- get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value!
258
+ def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
259
+ get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
254
260
  end
255
261
 
256
262
  #
257
263
  # Retrieve the Dsc node reports by node id and report id.
258
264
  #
259
- # @param resource_group_name [String] The resource group name.
260
- # @param automation_account_name [String] The automation account name.
265
+ # @param resource_group_name [String] Name of an Azure Resource group.
266
+ # @param automation_account_name [String] The name of the automation account.
261
267
  # @param node_id [String] The Dsc node id.
262
268
  # @param report_id [String] The report id.
263
269
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -265,8 +271,10 @@ module Azure::Automation::Mgmt::V2015_10_31
265
271
  #
266
272
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
267
273
  #
268
- def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil)
274
+ def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
269
275
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
276
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
277
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
270
278
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
271
279
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
272
280
  fail ArgumentError, 'node_id is nil' if node_id.nil?
@@ -276,6 +284,7 @@ module Azure::Automation::Mgmt::V2015_10_31
276
284
 
277
285
 
278
286
  request_headers = {}
287
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
279
288
 
280
289
  # Set Headers
281
290
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -303,23 +312,6 @@ module Azure::Automation::Mgmt::V2015_10_31
303
312
  end
304
313
 
305
314
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
306
- # Deserialize Response
307
- if status_code == 200
308
- begin
309
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
310
- result_mapper = {
311
- client_side_validation: true,
312
- required: false,
313
- serialized_name: 'parsed_response',
314
- type: {
315
- name: 'Stream'
316
- }
317
- }
318
- result.body = @client.deserialize(result_mapper, parsed_response)
319
- rescue Exception => e
320
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
321
- end
322
- end
323
315
 
324
316
  result
325
317
  end
@@ -337,8 +329,8 @@ module Azure::Automation::Mgmt::V2015_10_31
337
329
  #
338
330
  # @return [DscNodeReportListResult] operation results.
339
331
  #
340
- def list_by_node_next(next_page_link, custom_headers = nil)
341
- response = list_by_node_next_async(next_page_link, custom_headers).value!
332
+ def list_by_node_next(next_page_link, custom_headers:nil)
333
+ response = list_by_node_next_async(next_page_link, custom_headers:custom_headers).value!
342
334
  response.body unless response.nil?
343
335
  end
344
336
 
@@ -352,8 +344,8 @@ module Azure::Automation::Mgmt::V2015_10_31
352
344
  #
353
345
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
354
346
  #
355
- def list_by_node_next_with_http_info(next_page_link, custom_headers = nil)
356
- list_by_node_next_async(next_page_link, custom_headers).value!
347
+ def list_by_node_next_with_http_info(next_page_link, custom_headers:nil)
348
+ list_by_node_next_async(next_page_link, custom_headers:custom_headers).value!
357
349
  end
358
350
 
359
351
  #
@@ -366,11 +358,12 @@ module Azure::Automation::Mgmt::V2015_10_31
366
358
  #
367
359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
368
360
  #
369
- def list_by_node_next_async(next_page_link, custom_headers = nil)
361
+ def list_by_node_next_async(next_page_link, custom_headers:nil)
370
362
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
371
363
 
372
364
 
373
365
  request_headers = {}
366
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
367
 
375
368
  # Set Headers
376
369
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -417,8 +410,8 @@ module Azure::Automation::Mgmt::V2015_10_31
417
410
  #
418
411
  # Retrieve the Dsc node report list by node id.
419
412
  #
420
- # @param resource_group_name [String] The resource group name.
421
- # @param automation_account_name [String] The automation account name.
413
+ # @param resource_group_name [String] Name of an Azure Resource group.
414
+ # @param automation_account_name [String] The name of the automation account.
422
415
  # @param node_id [String] The parameters supplied to the list operation.
423
416
  # @param filter [String] The filter to apply on the operation.
424
417
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -427,12 +420,12 @@ module Azure::Automation::Mgmt::V2015_10_31
427
420
  # @return [DscNodeReportListResult] which provide lazy access to pages of the
428
421
  # response.
429
422
  #
430
- def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil)
431
- response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value!
423
+ def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
424
+ response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
432
425
  unless response.nil?
433
426
  page = response.body
434
427
  page.next_method = Proc.new do |next_page_link|
435
- list_by_node_next_async(next_page_link, custom_headers)
428
+ list_by_node_next_async(next_page_link, custom_headers:custom_headers)
436
429
  end
437
430
  page
438
431
  end