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,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the credential.
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 credential_name [String] The name of credential.
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, credential_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
39
39
  #
40
40
  # Delete the credential.
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 credential_name [String] The name of credential.
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, credential_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
55
55
  # Delete the credential.
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 credential_name [String] The name of credential.
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, credential_name, custom_headers = nil)
65
+ def delete_async(resource_group_name, automation_account_name, credential_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, 'credential_name is nil' if credential_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 credential identified by credential 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 credential_name [String] The name of credential.
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 [Credential] operation results.
119
122
  #
120
- def get(resource_group_name, automation_account_name, credential_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
122
125
  response.body unless response.nil?
123
126
  end
124
127
 
125
128
  #
126
129
  # Retrieve the credential identified by credential 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 credential_name [String] The name of credential.
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, credential_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the credential identified by credential 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 credential_name [String] The name of credential.
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, credential_name, custom_headers = nil)
154
+ def get_async(resource_group_name, automation_account_name, credential_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, 'credential_name is nil' if credential_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 a credential.
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 credential_name [String] The parameters supplied to the create or
211
217
  # update credential operation.
212
218
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -216,16 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
216
222
  #
217
223
  # @return [Credential] operation results.
218
224
  #
219
- def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value!
225
+ def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
221
227
  response.body unless response.nil?
222
228
  end
223
229
 
224
230
  #
225
231
  # Create a credential.
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 credential_name [String] The parameters supplied to the create or
230
236
  # update credential operation.
231
237
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -235,15 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
235
241
  #
236
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
243
  #
238
- def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value!
244
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
245
+ create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
240
246
  end
241
247
 
242
248
  #
243
249
  # Create a credential.
244
250
  #
245
- # @param resource_group_name [String] The resource group name.
246
- # @param automation_account_name [String] The automation account name.
251
+ # @param resource_group_name [String] Name of an Azure Resource group.
252
+ # @param automation_account_name [String] The name of the automation account.
247
253
  # @param credential_name [String] The parameters supplied to the create or
248
254
  # update credential operation.
249
255
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -253,8 +259,10 @@ module Azure::Automation::Mgmt::V2015_10_31
253
259
  #
254
260
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
261
  #
256
- def create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
262
+ def create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
257
263
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
265
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
258
266
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
259
267
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
260
268
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
@@ -264,13 +272,12 @@ module Azure::Automation::Mgmt::V2015_10_31
264
272
 
265
273
 
266
274
  request_headers = {}
275
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
276
 
268
277
  # Set Headers
269
278
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
270
279
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
271
280
 
272
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
-
274
281
  # Serialize Request
275
282
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters.mapper()
276
283
  request_content = @client.serialize(request_mapper, parameters)
@@ -330,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31
330
337
  #
331
338
  # Update a credential.
332
339
  #
333
- # @param resource_group_name [String] The resource group name.
334
- # @param automation_account_name [String] The automation account name.
340
+ # @param resource_group_name [String] Name of an Azure Resource group.
341
+ # @param automation_account_name [String] The name of the automation account.
335
342
  # @param credential_name [String] The parameters supplied to the Update
336
343
  # credential operation.
337
344
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -341,16 +348,16 @@ module Azure::Automation::Mgmt::V2015_10_31
341
348
  #
342
349
  # @return [Credential] operation results.
343
350
  #
344
- def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
345
- response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value!
351
+ def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
352
+ response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
346
353
  response.body unless response.nil?
347
354
  end
348
355
 
349
356
  #
350
357
  # Update a credential.
351
358
  #
352
- # @param resource_group_name [String] The resource group name.
353
- # @param automation_account_name [String] The automation account name.
359
+ # @param resource_group_name [String] Name of an Azure Resource group.
360
+ # @param automation_account_name [String] The name of the automation account.
354
361
  # @param credential_name [String] The parameters supplied to the Update
355
362
  # credential operation.
356
363
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -360,15 +367,15 @@ module Azure::Automation::Mgmt::V2015_10_31
360
367
  #
361
368
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
362
369
  #
363
- def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
364
- update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value!
370
+ def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
371
+ update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
365
372
  end
366
373
 
367
374
  #
368
375
  # Update a credential.
369
376
  #
370
- # @param resource_group_name [String] The resource group name.
371
- # @param automation_account_name [String] The automation account name.
377
+ # @param resource_group_name [String] Name of an Azure Resource group.
378
+ # @param automation_account_name [String] The name of the automation account.
372
379
  # @param credential_name [String] The parameters supplied to the Update
373
380
  # credential operation.
374
381
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -378,8 +385,10 @@ module Azure::Automation::Mgmt::V2015_10_31
378
385
  #
379
386
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
380
387
  #
381
- def update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil)
388
+ def update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
382
389
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
391
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
383
392
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
384
393
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
385
394
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
@@ -389,13 +398,12 @@ module Azure::Automation::Mgmt::V2015_10_31
389
398
 
390
399
 
391
400
  request_headers = {}
401
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
402
 
393
403
  # Set Headers
394
404
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
395
405
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
396
406
 
397
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
398
-
399
407
  # Serialize Request
400
408
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters.mapper()
401
409
  request_content = @client.serialize(request_mapper, parameters)
@@ -445,44 +453,46 @@ module Azure::Automation::Mgmt::V2015_10_31
445
453
  #
446
454
  # Retrieve a list of credentials.
447
455
  #
448
- # @param resource_group_name [String] The resource group name.
449
- # @param automation_account_name [String] The automation account name.
456
+ # @param resource_group_name [String] Name of an Azure Resource group.
457
+ # @param automation_account_name [String] The name of the automation account.
450
458
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
451
459
  # will be added to the HTTP request.
452
460
  #
453
461
  # @return [Array<Credential>] operation results.
454
462
  #
455
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
456
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
463
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
464
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
457
465
  first_page.get_all_items
458
466
  end
459
467
 
460
468
  #
461
469
  # Retrieve a list of credentials.
462
470
  #
463
- # @param resource_group_name [String] The resource group name.
464
- # @param automation_account_name [String] The automation account name.
471
+ # @param resource_group_name [String] Name of an Azure Resource group.
472
+ # @param automation_account_name [String] The name of the automation account.
465
473
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
466
474
  # will be added to the HTTP request.
467
475
  #
468
476
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
469
477
  #
470
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
471
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
478
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
479
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
472
480
  end
473
481
 
474
482
  #
475
483
  # Retrieve a list of credentials.
476
484
  #
477
- # @param resource_group_name [String] The resource group name.
478
- # @param automation_account_name [String] The automation account name.
485
+ # @param resource_group_name [String] Name of an Azure Resource group.
486
+ # @param automation_account_name [String] The name of the automation account.
479
487
  # @param [Hash{String => String}] A hash of custom headers that will be added
480
488
  # to the HTTP request.
481
489
  #
482
490
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
483
491
  #
484
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
492
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
485
493
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
494
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
495
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
486
496
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
487
497
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
488
498
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -490,6 +500,7 @@ module Azure::Automation::Mgmt::V2015_10_31
490
500
 
491
501
 
492
502
  request_headers = {}
503
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
493
504
 
494
505
  # Set Headers
495
506
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -544,8 +555,8 @@ module Azure::Automation::Mgmt::V2015_10_31
544
555
  #
545
556
  # @return [CredentialListResult] operation results.
546
557
  #
547
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
548
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
558
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
559
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
549
560
  response.body unless response.nil?
550
561
  end
551
562
 
@@ -559,8 +570,8 @@ module Azure::Automation::Mgmt::V2015_10_31
559
570
  #
560
571
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
561
572
  #
562
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
563
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
573
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
574
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
564
575
  end
565
576
 
566
577
  #
@@ -573,11 +584,12 @@ module Azure::Automation::Mgmt::V2015_10_31
573
584
  #
574
585
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
575
586
  #
576
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
587
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
577
588
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
578
589
 
579
590
 
580
591
  request_headers = {}
592
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
581
593
 
582
594
  # Set Headers
583
595
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -624,20 +636,20 @@ module Azure::Automation::Mgmt::V2015_10_31
624
636
  #
625
637
  # Retrieve a list of credentials.
626
638
  #
627
- # @param resource_group_name [String] The resource group name.
628
- # @param automation_account_name [String] The automation account name.
639
+ # @param resource_group_name [String] Name of an Azure Resource group.
640
+ # @param automation_account_name [String] The name of the automation account.
629
641
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
630
642
  # will be added to the HTTP request.
631
643
  #
632
644
  # @return [CredentialListResult] which provide lazy access to pages of the
633
645
  # response.
634
646
  #
635
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
636
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
647
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
648
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
637
649
  unless response.nil?
638
650
  page = response.body
639
651
  page.next_method = Proc.new do |next_page_link|
640
- list_by_automation_account_next_async(next_page_link, custom_headers)
652
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
641
653
  end
642
654
  page
643
655
  end
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Creates the Dsc compilation job of the configuration.
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 compilation_job_id The the DSC configuration Id.
30
30
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
31
31
  # to the create compilation job operation.
@@ -34,16 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
34
34
  #
35
35
  # @return [DscCompilationJob] operation results.
36
36
  #
37
- def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil)
38
- response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value!
37
+ def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil)
38
+ response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
42
42
  #
43
43
  # Creates the Dsc compilation job of the configuration.
44
44
  #
45
- # @param resource_group_name [String] The resource group name.
46
- # @param automation_account_name [String] The automation account name.
45
+ # @param resource_group_name [String] Name of an Azure Resource group.
46
+ # @param automation_account_name [String] The name of the automation account.
47
47
  # @param compilation_job_id The the DSC configuration Id.
48
48
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
49
49
  # to the create compilation job operation.
@@ -52,15 +52,15 @@ module Azure::Automation::Mgmt::V2015_10_31
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil)
56
- create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value!
55
+ def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil)
56
+ create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
60
60
  # Creates the Dsc compilation job of the configuration.
61
61
  #
62
- # @param resource_group_name [String] The resource group name.
63
- # @param automation_account_name [String] The automation account name.
62
+ # @param resource_group_name [String] Name of an Azure Resource group.
63
+ # @param automation_account_name [String] The name of the automation account.
64
64
  # @param compilation_job_id The the DSC configuration Id.
65
65
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
66
66
  # to the create compilation job operation.
@@ -69,8 +69,10 @@ module Azure::Automation::Mgmt::V2015_10_31
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil)
72
+ def create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil)
73
73
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
74
76
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
75
77
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
76
78
  fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil?
@@ -80,13 +82,12 @@ module Azure::Automation::Mgmt::V2015_10_31
80
82
 
81
83
 
82
84
  request_headers = {}
85
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
86
 
84
87
  # Set Headers
85
88
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
89
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
90
 
88
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
89
-
90
91
  # Serialize Request
91
92
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters.mapper()
92
93
  request_content = @client.serialize(request_mapper, parameters)
@@ -136,47 +137,49 @@ module Azure::Automation::Mgmt::V2015_10_31
136
137
  #
137
138
  # Retrieve the Dsc configuration compilation job identified by job id.
138
139
  #
139
- # @param resource_group_name [String] The resource group name.
140
- # @param automation_account_name [String] The automation account name.
140
+ # @param resource_group_name [String] Name of an Azure Resource group.
141
+ # @param automation_account_name [String] The name of the automation account.
141
142
  # @param compilation_job_id The Dsc configuration compilation job id.
142
143
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
144
  # will be added to the HTTP request.
144
145
  #
145
146
  # @return [DscCompilationJob] operation results.
146
147
  #
147
- def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil)
148
- response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value!
148
+ def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
149
+ response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
149
150
  response.body unless response.nil?
150
151
  end
151
152
 
152
153
  #
153
154
  # Retrieve the Dsc configuration compilation job identified by job id.
154
155
  #
155
- # @param resource_group_name [String] The resource group name.
156
- # @param automation_account_name [String] The automation account name.
156
+ # @param resource_group_name [String] Name of an Azure Resource group.
157
+ # @param automation_account_name [String] The name of the automation account.
157
158
  # @param compilation_job_id The Dsc configuration compilation job id.
158
159
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
159
160
  # will be added to the HTTP request.
160
161
  #
161
162
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
163
  #
163
- def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil)
164
- get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value!
164
+ def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
165
+ get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
165
166
  end
166
167
 
167
168
  #
168
169
  # Retrieve the Dsc configuration compilation job identified by job id.
169
170
  #
170
- # @param resource_group_name [String] The resource group name.
171
- # @param automation_account_name [String] The automation account name.
171
+ # @param resource_group_name [String] Name of an Azure Resource group.
172
+ # @param automation_account_name [String] The name of the automation account.
172
173
  # @param compilation_job_id The Dsc configuration compilation job id.
173
174
  # @param [Hash{String => String}] A hash of custom headers that will be added
174
175
  # to the HTTP request.
175
176
  #
176
177
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
177
178
  #
178
- def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil)
179
+ def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
179
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
180
183
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
181
184
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
182
185
  fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil?
@@ -185,6 +188,7 @@ module Azure::Automation::Mgmt::V2015_10_31
185
188
 
186
189
 
187
190
  request_headers = {}
191
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
192
 
189
193
  # Set Headers
190
194
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -232,47 +236,49 @@ module Azure::Automation::Mgmt::V2015_10_31
232
236
  #
233
237
  # Retrieve a list of dsc compilation jobs.
234
238
  #
235
- # @param resource_group_name [String] The resource group name.
236
- # @param automation_account_name [String] The automation account name.
239
+ # @param resource_group_name [String] Name of an Azure Resource group.
240
+ # @param automation_account_name [String] The name of the automation account.
237
241
  # @param filter [String] The filter to apply on the operation.
238
242
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
239
243
  # will be added to the HTTP request.
240
244
  #
241
245
  # @return [Array<DscCompilationJob>] operation results.
242
246
  #
243
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
244
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
247
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
248
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
245
249
  first_page.get_all_items
246
250
  end
247
251
 
248
252
  #
249
253
  # Retrieve a list of dsc compilation jobs.
250
254
  #
251
- # @param resource_group_name [String] The resource group name.
252
- # @param automation_account_name [String] The automation account name.
255
+ # @param resource_group_name [String] Name of an Azure Resource group.
256
+ # @param automation_account_name [String] The name of the automation account.
253
257
  # @param filter [String] The filter to apply on the operation.
254
258
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
259
  # will be added to the HTTP request.
256
260
  #
257
261
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
258
262
  #
259
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
260
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
263
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
264
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
261
265
  end
262
266
 
263
267
  #
264
268
  # Retrieve a list of dsc compilation jobs.
265
269
  #
266
- # @param resource_group_name [String] The resource group name.
267
- # @param automation_account_name [String] The automation account name.
270
+ # @param resource_group_name [String] Name of an Azure Resource group.
271
+ # @param automation_account_name [String] The name of the automation account.
268
272
  # @param filter [String] The filter to apply on the operation.
269
273
  # @param [Hash{String => String}] A hash of custom headers that will be added
270
274
  # to the HTTP request.
271
275
  #
272
276
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
273
277
  #
274
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
278
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
275
279
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
280
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
281
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
276
282
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
277
283
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
278
284
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -280,6 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
280
286
 
281
287
 
282
288
  request_headers = {}
289
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
283
290
 
284
291
  # Set Headers
285
292
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -327,8 +334,8 @@ module Azure::Automation::Mgmt::V2015_10_31
327
334
  #
328
335
  # Retrieve the job stream identified by job stream id.
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 job_id The job id.
333
340
  # @param job_stream_id [String] The job stream id.
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 [JobStream] operation results.
338
345
  #
339
- def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
340
- response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value!
346
+ def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
347
+ response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
341
348
  response.body unless response.nil?
342
349
  end
343
350
 
344
351
  #
345
352
  # Retrieve the job stream identified by job stream id.
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 job_id The job id.
350
357
  # @param job_stream_id [String] The job stream id.
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 get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
357
- get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value!
363
+ def get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
364
+ get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
358
365
  end
359
366
 
360
367
  #
361
368
  # Retrieve the job stream identified by job stream id.
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 job_id The job id.
366
373
  # @param job_stream_id [String] The job stream id.
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 get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
379
+ def get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, 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, 'job_id is nil' if job_id.nil?
@@ -380,6 +389,7 @@ 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
@@ -434,8 +444,8 @@ module Azure::Automation::Mgmt::V2015_10_31
434
444
  #
435
445
  # @return [DscCompilationJobListResult] operation results.
436
446
  #
437
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
438
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
447
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
448
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
439
449
  response.body unless response.nil?
440
450
  end
441
451
 
@@ -449,8 +459,8 @@ module Azure::Automation::Mgmt::V2015_10_31
449
459
  #
450
460
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
451
461
  #
452
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
453
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
462
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
463
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
454
464
  end
455
465
 
456
466
  #
@@ -463,11 +473,12 @@ module Azure::Automation::Mgmt::V2015_10_31
463
473
  #
464
474
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
465
475
  #
466
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
476
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
467
477
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
468
478
 
469
479
 
470
480
  request_headers = {}
481
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
471
482
 
472
483
  # Set Headers
473
484
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -514,8 +525,8 @@ module Azure::Automation::Mgmt::V2015_10_31
514
525
  #
515
526
  # Retrieve a list of dsc compilation jobs.
516
527
  #
517
- # @param resource_group_name [String] The resource group name.
518
- # @param automation_account_name [String] The automation account name.
528
+ # @param resource_group_name [String] Name of an Azure Resource group.
529
+ # @param automation_account_name [String] The name of the automation account.
519
530
  # @param filter [String] The filter to apply on the operation.
520
531
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
521
532
  # will be added to the HTTP request.
@@ -523,12 +534,12 @@ module Azure::Automation::Mgmt::V2015_10_31
523
534
  # @return [DscCompilationJobListResult] which provide lazy access to pages of
524
535
  # the response.
525
536
  #
526
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
527
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
537
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
538
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
528
539
  unless response.nil?
529
540
  page = response.body
530
541
  page.next_method = Proc.new do |next_page_link|
531
- list_by_automation_account_next_async(next_page_link, custom_headers)
542
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
532
543
  end
533
544
  page
534
545
  end