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,47 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the connection.
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 connection_name [String] The name of connection.
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
  # @return [Connection] operation results.
34
34
  #
35
- def delete(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
36
- response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
35
+ def delete(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
36
+ response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
40
40
  #
41
41
  # Delete the connection.
42
42
  #
43
- # @param resource_group_name [String] The resource group name.
44
- # @param automation_account_name [String] The automation account name.
43
+ # @param resource_group_name [String] Name of an Azure Resource group.
44
+ # @param automation_account_name [String] The name of the automation account.
45
45
  # @param connection_name [String] The name of connection.
46
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
47
  # will be added to the HTTP request.
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
52
- delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
51
+ def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
52
+ delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
56
56
  # Delete the connection.
57
57
  #
58
- # @param resource_group_name [String] The resource group name.
59
- # @param automation_account_name [String] The automation account name.
58
+ # @param resource_group_name [String] Name of an Azure Resource group.
59
+ # @param automation_account_name [String] The name of the automation account.
60
60
  # @param connection_name [String] The name of connection.
61
61
  # @param [Hash{String => String}] A hash of custom headers that will be added
62
62
  # to the HTTP request.
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def delete_async(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
66
+ def delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
68
70
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
71
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
72
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
@@ -73,6 +75,7 @@ module Azure::Automation::Mgmt::V2015_10_31
73
75
 
74
76
 
75
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
79
 
77
80
  # Set Headers
78
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -120,47 +123,49 @@ module Azure::Automation::Mgmt::V2015_10_31
120
123
  #
121
124
  # Retrieve the connection identified by connection name.
122
125
  #
123
- # @param resource_group_name [String] The resource group name.
124
- # @param automation_account_name [String] The automation account name.
126
+ # @param resource_group_name [String] Name of an Azure Resource group.
127
+ # @param automation_account_name [String] The name of the automation account.
125
128
  # @param connection_name [String] The name of connection.
126
129
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
127
130
  # will be added to the HTTP request.
128
131
  #
129
132
  # @return [Connection] operation results.
130
133
  #
131
- def get(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
132
- response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
134
+ def get(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
135
+ response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
133
136
  response.body unless response.nil?
134
137
  end
135
138
 
136
139
  #
137
140
  # Retrieve the connection identified by connection name.
138
141
  #
139
- # @param resource_group_name [String] The resource group name.
140
- # @param automation_account_name [String] The automation account name.
142
+ # @param resource_group_name [String] Name of an Azure Resource group.
143
+ # @param automation_account_name [String] The name of the automation account.
141
144
  # @param connection_name [String] The name of connection.
142
145
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
146
  # will be added to the HTTP request.
144
147
  #
145
148
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
146
149
  #
147
- def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
148
- get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
150
+ def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
151
+ get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
149
152
  end
150
153
 
151
154
  #
152
155
  # Retrieve the connection identified by connection name.
153
156
  #
154
- # @param resource_group_name [String] The resource group name.
155
- # @param automation_account_name [String] The automation account name.
157
+ # @param resource_group_name [String] Name of an Azure Resource group.
158
+ # @param automation_account_name [String] The name of the automation account.
156
159
  # @param connection_name [String] The name of connection.
157
160
  # @param [Hash{String => String}] A hash of custom headers that will be added
158
161
  # to the HTTP request.
159
162
  #
160
163
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
164
  #
162
- def get_async(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
165
+ def get_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
163
166
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
167
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
168
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
164
169
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
165
170
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
166
171
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
@@ -169,6 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
169
174
 
170
175
 
171
176
  request_headers = {}
177
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
172
178
 
173
179
  # Set Headers
174
180
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -216,8 +222,8 @@ module Azure::Automation::Mgmt::V2015_10_31
216
222
  #
217
223
  # Create or update a connection.
218
224
  #
219
- # @param resource_group_name [String] The resource group name.
220
- # @param automation_account_name [String] The automation account name.
225
+ # @param resource_group_name [String] Name of an Azure Resource group.
226
+ # @param automation_account_name [String] The name of the automation account.
221
227
  # @param connection_name [String] The parameters supplied to the create or
222
228
  # update connection operation.
223
229
  # @param parameters [ConnectionCreateOrUpdateParameters] The parameters
@@ -227,16 +233,16 @@ module Azure::Automation::Mgmt::V2015_10_31
227
233
  #
228
234
  # @return [Connection] operation results.
229
235
  #
230
- def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
231
- response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
236
+ def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
237
+ response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
232
238
  response.body unless response.nil?
233
239
  end
234
240
 
235
241
  #
236
242
  # Create or update a connection.
237
243
  #
238
- # @param resource_group_name [String] The resource group name.
239
- # @param automation_account_name [String] The automation account name.
244
+ # @param resource_group_name [String] Name of an Azure Resource group.
245
+ # @param automation_account_name [String] The name of the automation account.
240
246
  # @param connection_name [String] The parameters supplied to the create or
241
247
  # update connection operation.
242
248
  # @param parameters [ConnectionCreateOrUpdateParameters] The parameters
@@ -246,15 +252,15 @@ module Azure::Automation::Mgmt::V2015_10_31
246
252
  #
247
253
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
248
254
  #
249
- def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
250
- create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
255
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
256
+ create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
251
257
  end
252
258
 
253
259
  #
254
260
  # Create or update a connection.
255
261
  #
256
- # @param resource_group_name [String] The resource group name.
257
- # @param automation_account_name [String] The automation account name.
262
+ # @param resource_group_name [String] Name of an Azure Resource group.
263
+ # @param automation_account_name [String] The name of the automation account.
258
264
  # @param connection_name [String] The parameters supplied to the create or
259
265
  # update connection operation.
260
266
  # @param parameters [ConnectionCreateOrUpdateParameters] The parameters
@@ -264,8 +270,10 @@ module Azure::Automation::Mgmt::V2015_10_31
264
270
  #
265
271
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
266
272
  #
267
- def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
273
+ def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
268
274
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
275
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
276
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
269
277
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
270
278
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
271
279
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
@@ -275,13 +283,12 @@ module Azure::Automation::Mgmt::V2015_10_31
275
283
 
276
284
 
277
285
  request_headers = {}
286
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
278
287
 
279
288
  # Set Headers
280
289
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
281
290
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
282
291
 
283
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
284
-
285
292
  # Serialize Request
286
293
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters.mapper()
287
294
  request_content = @client.serialize(request_mapper, parameters)
@@ -341,8 +348,8 @@ module Azure::Automation::Mgmt::V2015_10_31
341
348
  #
342
349
  # Update a connection.
343
350
  #
344
- # @param resource_group_name [String] The resource group name.
345
- # @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.
346
353
  # @param connection_name [String] The parameters supplied to the update a
347
354
  # connection operation.
348
355
  # @param parameters [ConnectionUpdateParameters] The parameters supplied to the
@@ -352,16 +359,16 @@ module Azure::Automation::Mgmt::V2015_10_31
352
359
  #
353
360
  # @return [Connection] operation results.
354
361
  #
355
- def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
356
- response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
362
+ def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
363
+ response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
357
364
  response.body unless response.nil?
358
365
  end
359
366
 
360
367
  #
361
368
  # Update a connection.
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 connection_name [String] The parameters supplied to the update a
366
373
  # connection operation.
367
374
  # @param parameters [ConnectionUpdateParameters] The parameters supplied to the
@@ -371,15 +378,15 @@ module Azure::Automation::Mgmt::V2015_10_31
371
378
  #
372
379
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
373
380
  #
374
- def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
375
- update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
381
+ def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
382
+ update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
376
383
  end
377
384
 
378
385
  #
379
386
  # Update a connection.
380
387
  #
381
- # @param resource_group_name [String] The resource group name.
382
- # @param automation_account_name [String] The automation account name.
388
+ # @param resource_group_name [String] Name of an Azure Resource group.
389
+ # @param automation_account_name [String] The name of the automation account.
383
390
  # @param connection_name [String] The parameters supplied to the update a
384
391
  # connection operation.
385
392
  # @param parameters [ConnectionUpdateParameters] The parameters supplied to the
@@ -389,8 +396,10 @@ module Azure::Automation::Mgmt::V2015_10_31
389
396
  #
390
397
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
391
398
  #
392
- def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
399
+ def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
393
400
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
401
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
402
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
394
403
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
395
404
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
396
405
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
@@ -400,13 +409,12 @@ module Azure::Automation::Mgmt::V2015_10_31
400
409
 
401
410
 
402
411
  request_headers = {}
412
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
403
413
 
404
414
  # Set Headers
405
415
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
406
416
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
407
417
 
408
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
409
-
410
418
  # Serialize Request
411
419
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters.mapper()
412
420
  request_content = @client.serialize(request_mapper, parameters)
@@ -456,44 +464,46 @@ module Azure::Automation::Mgmt::V2015_10_31
456
464
  #
457
465
  # Retrieve a list of connections.
458
466
  #
459
- # @param resource_group_name [String] The resource group name.
460
- # @param automation_account_name [String] The automation account name.
467
+ # @param resource_group_name [String] Name of an Azure Resource group.
468
+ # @param automation_account_name [String] The name of the automation account.
461
469
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
462
470
  # will be added to the HTTP request.
463
471
  #
464
472
  # @return [Array<Connection>] operation results.
465
473
  #
466
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
467
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
474
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
475
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
468
476
  first_page.get_all_items
469
477
  end
470
478
 
471
479
  #
472
480
  # Retrieve a list of connections.
473
481
  #
474
- # @param resource_group_name [String] The resource group name.
475
- # @param automation_account_name [String] The automation account name.
482
+ # @param resource_group_name [String] Name of an Azure Resource group.
483
+ # @param automation_account_name [String] The name of the automation account.
476
484
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
477
485
  # will be added to the HTTP request.
478
486
  #
479
487
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
480
488
  #
481
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
482
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
489
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
490
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
483
491
  end
484
492
 
485
493
  #
486
494
  # Retrieve a list of connections.
487
495
  #
488
- # @param resource_group_name [String] The resource group name.
489
- # @param automation_account_name [String] The automation account name.
496
+ # @param resource_group_name [String] Name of an Azure Resource group.
497
+ # @param automation_account_name [String] The name of the automation account.
490
498
  # @param [Hash{String => String}] A hash of custom headers that will be added
491
499
  # to the HTTP request.
492
500
  #
493
501
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
494
502
  #
495
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
503
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
496
504
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
505
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
497
507
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
498
508
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
499
509
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -501,6 +511,7 @@ module Azure::Automation::Mgmt::V2015_10_31
501
511
 
502
512
 
503
513
  request_headers = {}
514
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
504
515
 
505
516
  # Set Headers
506
517
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -555,8 +566,8 @@ module Azure::Automation::Mgmt::V2015_10_31
555
566
  #
556
567
  # @return [ConnectionListResult] operation results.
557
568
  #
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).value!
569
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
570
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
560
571
  response.body unless response.nil?
561
572
  end
562
573
 
@@ -570,8 +581,8 @@ module Azure::Automation::Mgmt::V2015_10_31
570
581
  #
571
582
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
572
583
  #
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).value!
584
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
585
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
575
586
  end
576
587
 
577
588
  #
@@ -584,11 +595,12 @@ module Azure::Automation::Mgmt::V2015_10_31
584
595
  #
585
596
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
597
  #
587
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
598
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
588
599
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
589
600
 
590
601
 
591
602
  request_headers = {}
603
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
592
604
 
593
605
  # Set Headers
594
606
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -635,20 +647,20 @@ module Azure::Automation::Mgmt::V2015_10_31
635
647
  #
636
648
  # Retrieve a list of connections.
637
649
  #
638
- # @param resource_group_name [String] The resource group name.
639
- # @param automation_account_name [String] The automation account name.
650
+ # @param resource_group_name [String] Name of an Azure Resource group.
651
+ # @param automation_account_name [String] The name of the automation account.
640
652
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
641
653
  # will be added to the HTTP request.
642
654
  #
643
655
  # @return [ConnectionListResult] which provide lazy access to pages of the
644
656
  # response.
645
657
  #
646
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
647
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
658
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
659
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
648
660
  unless response.nil?
649
661
  page = response.body
650
662
  page.next_method = Proc.new do |next_page_link|
651
- list_by_automation_account_next_async(next_page_link, custom_headers)
663
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
652
664
  end
653
665
  page
654
666
  end
@@ -24,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the connectiontype.
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 connection_type_name [String] The name of connectiontype.
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, connection_type_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
39
39
  #
40
40
  # Delete the connectiontype.
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 connection_type_name [String] The name of connectiontype.
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, connection_type_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
55
55
  # Delete the connectiontype.
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 connection_type_name [String] The name of connectiontype.
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, connection_type_name, custom_headers = nil)
65
+ def delete_async(resource_group_name, automation_account_name, connection_type_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, 'connection_type_name is nil' if connection_type_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 connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
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 [ConnectionType] operation results.
119
122
  #
120
- def get(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
122
125
  response.body unless response.nil?
123
126
  end
124
127
 
125
128
  #
126
129
  # Retrieve the connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
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, connection_type_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
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, connection_type_name, custom_headers = nil)
154
+ def get_async(resource_group_name, automation_account_name, connection_type_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, 'connection_type_name is nil' if connection_type_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 connectiontype.
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 connection_type_name [String] The parameters supplied to the create or
211
217
  # update connectiontype operation.
212
218
  # @param parameters [ConnectionTypeCreateOrUpdateParameters] The parameters
@@ -216,16 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
216
222
  #
217
223
  # @return [ConnectionType] operation results.
218
224
  #
219
- def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value!
225
+ def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(resource_group_name, automation_account_name, connection_type_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 connectiontype.
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 connection_type_name [String] The parameters supplied to the create or
230
236
  # update connectiontype operation.
231
237
  # @param parameters [ConnectionTypeCreateOrUpdateParameters] 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, connection_type_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value!
244
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil)
245
+ create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
240
246
  end
241
247
 
242
248
  #
243
249
  # Create a connectiontype.
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 connection_type_name [String] The parameters supplied to the create or
248
254
  # update connectiontype operation.
249
255
  # @param parameters [ConnectionTypeCreateOrUpdateParameters] 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, connection_type_name, parameters, custom_headers = nil)
262
+ def create_or_update_async(resource_group_name, automation_account_name, connection_type_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, 'connection_type_name is nil' if connection_type_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::ConnectionTypeCreateOrUpdateParameters.mapper()
276
283
  request_content = @client.serialize(request_mapper, parameters)
@@ -330,44 +337,46 @@ module Azure::Automation::Mgmt::V2015_10_31
330
337
  #
331
338
  # Retrieve a list of connectiontypes.
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 custom_headers [Hash{String => String}] A hash of custom headers that
336
343
  # will be added to the HTTP request.
337
344
  #
338
345
  # @return [Array<ConnectionType>] operation results.
339
346
  #
340
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
341
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
347
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
348
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
342
349
  first_page.get_all_items
343
350
  end
344
351
 
345
352
  #
346
353
  # Retrieve a list of connectiontypes.
347
354
  #
348
- # @param resource_group_name [String] The resource group name.
349
- # @param automation_account_name [String] The automation account name.
355
+ # @param resource_group_name [String] Name of an Azure Resource group.
356
+ # @param automation_account_name [String] The name of the automation account.
350
357
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
351
358
  # will be added to the HTTP request.
352
359
  #
353
360
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
354
361
  #
355
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
356
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
362
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
363
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
357
364
  end
358
365
 
359
366
  #
360
367
  # Retrieve a list of connectiontypes.
361
368
  #
362
- # @param resource_group_name [String] The resource group name.
363
- # @param automation_account_name [String] The automation account name.
369
+ # @param resource_group_name [String] Name of an Azure Resource group.
370
+ # @param automation_account_name [String] The name of the automation account.
364
371
  # @param [Hash{String => String}] A hash of custom headers that will be added
365
372
  # to the HTTP request.
366
373
  #
367
374
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
368
375
  #
369
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
376
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
370
377
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
378
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
379
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
371
380
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
372
381
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
373
382
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -375,6 +384,7 @@ module Azure::Automation::Mgmt::V2015_10_31
375
384
 
376
385
 
377
386
  request_headers = {}
387
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
378
388
 
379
389
  # Set Headers
380
390
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -429,8 +439,8 @@ module Azure::Automation::Mgmt::V2015_10_31
429
439
  #
430
440
  # @return [ConnectionTypeListResult] operation results.
431
441
  #
432
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
433
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
442
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
443
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
434
444
  response.body unless response.nil?
435
445
  end
436
446
 
@@ -444,8 +454,8 @@ module Azure::Automation::Mgmt::V2015_10_31
444
454
  #
445
455
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
446
456
  #
447
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
448
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
457
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
458
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
449
459
  end
450
460
 
451
461
  #
@@ -458,11 +468,12 @@ module Azure::Automation::Mgmt::V2015_10_31
458
468
  #
459
469
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
470
  #
461
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
471
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
462
472
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
463
473
 
464
474
 
465
475
  request_headers = {}
476
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
466
477
 
467
478
  # Set Headers
468
479
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -509,20 +520,20 @@ module Azure::Automation::Mgmt::V2015_10_31
509
520
  #
510
521
  # Retrieve a list of connectiontypes.
511
522
  #
512
- # @param resource_group_name [String] The resource group name.
513
- # @param automation_account_name [String] The automation account name.
523
+ # @param resource_group_name [String] Name of an Azure Resource group.
524
+ # @param automation_account_name [String] The name of the automation account.
514
525
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
515
526
  # will be added to the HTTP request.
516
527
  #
517
528
  # @return [ConnectionTypeListResult] which provide lazy access to pages of the
518
529
  # response.
519
530
  #
520
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
521
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
531
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
532
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
522
533
  unless response.nil?
523
534
  page = response.body
524
535
  page.next_method = Proc.new do |next_page_link|
525
- list_by_automation_account_next_async(next_page_link, custom_headers)
536
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
526
537
  end
527
538
  page
528
539
  end