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
@@ -24,44 +24,46 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Generates a Uri for use in creating a webhook.
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 custom_headers [Hash{String => String}] A hash of custom headers that
30
30
  # will be added to the HTTP request.
31
31
  #
32
32
  # @return [String] operation results.
33
33
  #
34
- def generate_uri(resource_group_name, automation_account_name, custom_headers = nil)
35
- response = generate_uri_async(resource_group_name, automation_account_name, custom_headers).value!
34
+ def generate_uri(resource_group_name, automation_account_name, custom_headers:nil)
35
+ response = generate_uri_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
36
36
  response.body unless response.nil?
37
37
  end
38
38
 
39
39
  #
40
40
  # Generates a Uri for use in creating a webhook.
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 custom_headers [Hash{String => String}] A hash of custom headers that
45
45
  # will be added to the HTTP request.
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
50
- generate_uri_async(resource_group_name, automation_account_name, custom_headers).value!
49
+ def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
50
+ generate_uri_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
54
54
  # Generates a Uri for use in creating a webhook.
55
55
  #
56
- # @param resource_group_name [String] The resource group name.
57
- # @param automation_account_name [String] The automation account name.
56
+ # @param resource_group_name [String] Name of an Azure Resource group.
57
+ # @param automation_account_name [String] The name of the automation account.
58
58
  # @param [Hash{String => String}] A hash of custom headers that will be added
59
59
  # to the HTTP request.
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def generate_uri_async(resource_group_name, automation_account_name, custom_headers = nil)
63
+ def generate_uri_async(resource_group_name, automation_account_name, custom_headers:nil)
64
64
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
66
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
65
67
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
66
68
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
67
69
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -69,6 +71,7 @@ module Azure::Automation::Mgmt::V2015_10_31
69
71
 
70
72
 
71
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
75
 
73
76
  # Set Headers
74
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,46 +126,48 @@ module Azure::Automation::Mgmt::V2015_10_31
123
126
  #
124
127
  # Delete the webhook by name.
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 webhook_name [String] The webhook name.
129
132
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
133
  # will be added to the HTTP request.
131
134
  #
132
135
  #
133
- def delete(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
134
- response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
136
+ def delete(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
137
+ response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value!
135
138
  nil
136
139
  end
137
140
 
138
141
  #
139
142
  # Delete the webhook by name.
140
143
  #
141
- # @param resource_group_name [String] The resource group name.
142
- # @param automation_account_name [String] The automation account name.
144
+ # @param resource_group_name [String] Name of an Azure Resource group.
145
+ # @param automation_account_name [String] The name of the automation account.
143
146
  # @param webhook_name [String] The webhook name.
144
147
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
148
  # will be added to the HTTP request.
146
149
  #
147
150
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
151
  #
149
- def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
150
- delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
152
+ def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
153
+ delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value!
151
154
  end
152
155
 
153
156
  #
154
157
  # Delete the webhook by name.
155
158
  #
156
- # @param resource_group_name [String] The resource group name.
157
- # @param automation_account_name [String] The automation account name.
159
+ # @param resource_group_name [String] Name of an Azure Resource group.
160
+ # @param automation_account_name [String] The name of the automation account.
158
161
  # @param webhook_name [String] The webhook name.
159
162
  # @param [Hash{String => String}] A hash of custom headers that will be added
160
163
  # to the HTTP request.
161
164
  #
162
165
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
166
  #
164
- def delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
167
+ def delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
165
168
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
169
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
170
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
166
171
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
167
172
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
168
173
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
@@ -171,6 +176,7 @@ module Azure::Automation::Mgmt::V2015_10_31
171
176
 
172
177
 
173
178
  request_headers = {}
179
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
174
180
 
175
181
  # Set Headers
176
182
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -208,47 +214,49 @@ module Azure::Automation::Mgmt::V2015_10_31
208
214
  #
209
215
  # Retrieve the webhook identified by webhook name.
210
216
  #
211
- # @param resource_group_name [String] The resource group name.
212
- # @param automation_account_name [String] The automation account name.
217
+ # @param resource_group_name [String] Name of an Azure Resource group.
218
+ # @param automation_account_name [String] The name of the automation account.
213
219
  # @param webhook_name [String] The webhook name.
214
220
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
215
221
  # will be added to the HTTP request.
216
222
  #
217
223
  # @return [Webhook] operation results.
218
224
  #
219
- def get(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
220
- response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
225
+ def get(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
226
+ response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value!
221
227
  response.body unless response.nil?
222
228
  end
223
229
 
224
230
  #
225
231
  # Retrieve the webhook identified by webhook name.
226
232
  #
227
- # @param resource_group_name [String] The resource group name.
228
- # @param automation_account_name [String] The automation account name.
233
+ # @param resource_group_name [String] Name of an Azure Resource group.
234
+ # @param automation_account_name [String] The name of the automation account.
229
235
  # @param webhook_name [String] The webhook name.
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
239
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
240
  #
235
- def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
236
- get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
241
+ def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
242
+ get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value!
237
243
  end
238
244
 
239
245
  #
240
246
  # Retrieve the webhook identified by webhook name.
241
247
  #
242
- # @param resource_group_name [String] The resource group name.
243
- # @param automation_account_name [String] The automation account name.
248
+ # @param resource_group_name [String] Name of an Azure Resource group.
249
+ # @param automation_account_name [String] The name of the automation account.
244
250
  # @param webhook_name [String] The webhook name.
245
251
  # @param [Hash{String => String}] A hash of custom headers that will be added
246
252
  # to the HTTP request.
247
253
  #
248
254
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
249
255
  #
250
- def get_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
256
+ def get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:nil)
251
257
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
258
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
259
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
252
260
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
253
261
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
254
262
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
@@ -257,6 +265,7 @@ module Azure::Automation::Mgmt::V2015_10_31
257
265
 
258
266
 
259
267
  request_headers = {}
268
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
269
 
261
270
  # Set Headers
262
271
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -304,8 +313,8 @@ module Azure::Automation::Mgmt::V2015_10_31
304
313
  #
305
314
  # Create the webhook identified by webhook name.
306
315
  #
307
- # @param resource_group_name [String] The resource group name.
308
- # @param automation_account_name [String] The automation account name.
316
+ # @param resource_group_name [String] Name of an Azure Resource group.
317
+ # @param automation_account_name [String] The name of the automation account.
309
318
  # @param webhook_name [String] The webhook name.
310
319
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
311
320
  # parameters for webhook.
@@ -314,16 +323,16 @@ module Azure::Automation::Mgmt::V2015_10_31
314
323
  #
315
324
  # @return [Webhook] operation results.
316
325
  #
317
- def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
318
- response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
326
+ def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
327
+ response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
319
328
  response.body unless response.nil?
320
329
  end
321
330
 
322
331
  #
323
332
  # Create the webhook identified by webhook name.
324
333
  #
325
- # @param resource_group_name [String] The resource group name.
326
- # @param automation_account_name [String] The automation account name.
334
+ # @param resource_group_name [String] Name of an Azure Resource group.
335
+ # @param automation_account_name [String] The name of the automation account.
327
336
  # @param webhook_name [String] The webhook name.
328
337
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
329
338
  # parameters for webhook.
@@ -332,15 +341,15 @@ module Azure::Automation::Mgmt::V2015_10_31
332
341
  #
333
342
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
334
343
  #
335
- def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
336
- create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
344
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
345
+ create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
337
346
  end
338
347
 
339
348
  #
340
349
  # Create the webhook identified by webhook name.
341
350
  #
342
- # @param resource_group_name [String] The resource group name.
343
- # @param automation_account_name [String] The automation account name.
351
+ # @param resource_group_name [String] Name of an Azure Resource group.
352
+ # @param automation_account_name [String] The name of the automation account.
344
353
  # @param webhook_name [String] The webhook name.
345
354
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
346
355
  # parameters for webhook.
@@ -349,8 +358,10 @@ module Azure::Automation::Mgmt::V2015_10_31
349
358
  #
350
359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
351
360
  #
352
- def create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
361
+ def create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
353
362
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
363
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
364
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
354
365
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
355
366
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
356
367
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
@@ -360,13 +371,12 @@ module Azure::Automation::Mgmt::V2015_10_31
360
371
 
361
372
 
362
373
  request_headers = {}
374
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
363
375
 
364
376
  # Set Headers
365
377
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
366
378
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
367
379
 
368
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
369
-
370
380
  # Serialize Request
371
381
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters.mapper()
372
382
  request_content = @client.serialize(request_mapper, parameters)
@@ -426,8 +436,8 @@ module Azure::Automation::Mgmt::V2015_10_31
426
436
  #
427
437
  # Update the webhook identified by webhook name.
428
438
  #
429
- # @param resource_group_name [String] The resource group name.
430
- # @param automation_account_name [String] The automation account name.
439
+ # @param resource_group_name [String] Name of an Azure Resource group.
440
+ # @param automation_account_name [String] The name of the automation account.
431
441
  # @param webhook_name [String] The webhook name.
432
442
  # @param parameters [WebhookUpdateParameters] The update parameters for
433
443
  # webhook.
@@ -436,16 +446,16 @@ module Azure::Automation::Mgmt::V2015_10_31
436
446
  #
437
447
  # @return [Webhook] operation results.
438
448
  #
439
- def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
440
- response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
449
+ def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
450
+ response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
441
451
  response.body unless response.nil?
442
452
  end
443
453
 
444
454
  #
445
455
  # Update the webhook identified by webhook name.
446
456
  #
447
- # @param resource_group_name [String] The resource group name.
448
- # @param automation_account_name [String] The automation account name.
457
+ # @param resource_group_name [String] Name of an Azure Resource group.
458
+ # @param automation_account_name [String] The name of the automation account.
449
459
  # @param webhook_name [String] The webhook name.
450
460
  # @param parameters [WebhookUpdateParameters] The update parameters for
451
461
  # webhook.
@@ -454,15 +464,15 @@ module Azure::Automation::Mgmt::V2015_10_31
454
464
  #
455
465
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
456
466
  #
457
- def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
458
- update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
467
+ def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
468
+ update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
459
469
  end
460
470
 
461
471
  #
462
472
  # Update the webhook identified by webhook name.
463
473
  #
464
- # @param resource_group_name [String] The resource group name.
465
- # @param automation_account_name [String] The automation account name.
474
+ # @param resource_group_name [String] Name of an Azure Resource group.
475
+ # @param automation_account_name [String] The name of the automation account.
466
476
  # @param webhook_name [String] The webhook name.
467
477
  # @param parameters [WebhookUpdateParameters] The update parameters for
468
478
  # webhook.
@@ -471,8 +481,10 @@ module Azure::Automation::Mgmt::V2015_10_31
471
481
  #
472
482
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
473
483
  #
474
- def update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
484
+ def update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil)
475
485
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
486
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
487
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
476
488
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
477
489
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
478
490
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
@@ -482,13 +494,12 @@ module Azure::Automation::Mgmt::V2015_10_31
482
494
 
483
495
 
484
496
  request_headers = {}
497
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
485
498
 
486
499
  # Set Headers
487
500
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
488
501
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
489
502
 
490
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
491
-
492
503
  # Serialize Request
493
504
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters.mapper()
494
505
  request_content = @client.serialize(request_mapper, parameters)
@@ -538,47 +549,49 @@ module Azure::Automation::Mgmt::V2015_10_31
538
549
  #
539
550
  # Retrieve a list of webhooks.
540
551
  #
541
- # @param resource_group_name [String] The resource group name.
542
- # @param automation_account_name [String] The automation account name.
552
+ # @param resource_group_name [String] Name of an Azure Resource group.
553
+ # @param automation_account_name [String] The name of the automation account.
543
554
  # @param filter [String] The filter to apply on the operation.
544
555
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
545
556
  # will be added to the HTTP request.
546
557
  #
547
558
  # @return [Array<Webhook>] operation results.
548
559
  #
549
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
550
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
560
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
561
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
551
562
  first_page.get_all_items
552
563
  end
553
564
 
554
565
  #
555
566
  # Retrieve a list of webhooks.
556
567
  #
557
- # @param resource_group_name [String] The resource group name.
558
- # @param automation_account_name [String] The automation account name.
568
+ # @param resource_group_name [String] Name of an Azure Resource group.
569
+ # @param automation_account_name [String] The name of the automation account.
559
570
  # @param filter [String] The filter to apply on the operation.
560
571
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
561
572
  # will be added to the HTTP request.
562
573
  #
563
574
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
564
575
  #
565
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
566
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
576
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
577
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
567
578
  end
568
579
 
569
580
  #
570
581
  # Retrieve a list of webhooks.
571
582
  #
572
- # @param resource_group_name [String] The resource group name.
573
- # @param automation_account_name [String] The automation account name.
583
+ # @param resource_group_name [String] Name of an Azure Resource group.
584
+ # @param automation_account_name [String] The name of the automation account.
574
585
  # @param filter [String] The filter to apply on the operation.
575
586
  # @param [Hash{String => String}] A hash of custom headers that will be added
576
587
  # to the HTTP request.
577
588
  #
578
589
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
579
590
  #
580
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
591
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
581
592
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
593
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
594
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
582
595
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
583
596
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
584
597
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -586,6 +599,7 @@ module Azure::Automation::Mgmt::V2015_10_31
586
599
 
587
600
 
588
601
  request_headers = {}
602
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
589
603
 
590
604
  # Set Headers
591
605
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -640,8 +654,8 @@ module Azure::Automation::Mgmt::V2015_10_31
640
654
  #
641
655
  # @return [WebhookListResult] operation results.
642
656
  #
643
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
644
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
657
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
658
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
645
659
  response.body unless response.nil?
646
660
  end
647
661
 
@@ -655,8 +669,8 @@ module Azure::Automation::Mgmt::V2015_10_31
655
669
  #
656
670
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
657
671
  #
658
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
659
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
672
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
673
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
660
674
  end
661
675
 
662
676
  #
@@ -669,11 +683,12 @@ module Azure::Automation::Mgmt::V2015_10_31
669
683
  #
670
684
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
671
685
  #
672
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
686
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
673
687
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
674
688
 
675
689
 
676
690
  request_headers = {}
691
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
677
692
 
678
693
  # Set Headers
679
694
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -720,8 +735,8 @@ module Azure::Automation::Mgmt::V2015_10_31
720
735
  #
721
736
  # Retrieve a list of webhooks.
722
737
  #
723
- # @param resource_group_name [String] The resource group name.
724
- # @param automation_account_name [String] The automation account name.
738
+ # @param resource_group_name [String] Name of an Azure Resource group.
739
+ # @param automation_account_name [String] The name of the automation account.
725
740
  # @param filter [String] The filter to apply on the operation.
726
741
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
727
742
  # will be added to the HTTP request.
@@ -729,12 +744,12 @@ module Azure::Automation::Mgmt::V2015_10_31
729
744
  # @return [WebhookListResult] which provide lazy access to pages of the
730
745
  # response.
731
746
  #
732
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
733
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
747
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
748
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
734
749
  unless response.nil?
735
750
  page = response.body
736
751
  page.next_method = Proc.new do |next_page_link|
737
- list_by_automation_account_next_async(next_page_link, custom_headers)
752
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
738
753
  end
739
754
  page
740
755
  end