azure_mgmt_automation 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +54 -53
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +27 -31
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +18 -24
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +54 -50
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +7 -1
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +54 -68
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +54 -68
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +45 -55
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +54 -68
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +45 -55
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +54 -66
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +45 -55
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +45 -55
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +9 -11
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +45 -55
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +81 -99
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +45 -55
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +27 -31
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +12 -0
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +12 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +13 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +21 -0
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +12 -0
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +16 -2
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +2 -2
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +16 -2
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +54 -68
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +36 -42
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +18 -22
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +53 -70
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +63 -79
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +54 -68
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +6 -5
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +27 -31
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +45 -57
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +6 -5
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +54 -68
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +63 -79
  49. data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
  50. data/lib/profiles/latest/automation_module_definition.rb +0 -1
  51. data/lib/profiles/latest/modules/automation_profile_module.rb +494 -471
  52. data/lib/version.rb +1 -1
  53. metadata +3 -2
@@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31
33
33
  #
34
34
  # @return [AutomationAccount] operation results.
35
35
  #
36
- def update(resource_group_name, automation_account_name, parameters, custom_headers = nil)
37
- response = update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
36
+ def update(resource_group_name, automation_account_name, parameters, custom_headers:nil)
37
+ response = update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil)
54
- update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
53
+ def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil)
54
+ update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def update_async(resource_group_name, automation_account_name, parameters, custom_headers = nil)
69
+ def update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
71
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
72
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
@@ -76,13 +76,12 @@ module Azure::Automation::Mgmt::V2015_10_31
76
76
 
77
77
 
78
78
  request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
80
 
80
81
  # Set Headers
81
82
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
83
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
84
 
84
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
85
-
86
85
  # Serialize Request
87
86
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters.mapper()
88
87
  request_content = @client.serialize(request_mapper, parameters)
@@ -142,8 +141,8 @@ module Azure::Automation::Mgmt::V2015_10_31
142
141
  #
143
142
  # @return [AutomationAccount] operation results.
144
143
  #
145
- def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers = nil)
146
- response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
144
+ def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers:nil)
145
+ response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
147
146
  response.body unless response.nil?
148
147
  end
149
148
 
@@ -160,8 +159,8 @@ module Azure::Automation::Mgmt::V2015_10_31
160
159
  #
161
160
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
161
  #
163
- def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil)
164
- create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
162
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil)
163
+ create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
165
164
  end
166
165
 
167
166
  #
@@ -177,7 +176,7 @@ module Azure::Automation::Mgmt::V2015_10_31
177
176
  #
178
177
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
179
178
  #
180
- def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers = nil)
179
+ def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
181
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
182
181
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
183
182
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
@@ -187,13 +186,12 @@ module Azure::Automation::Mgmt::V2015_10_31
187
186
 
188
187
 
189
188
  request_headers = {}
189
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
190
190
 
191
191
  # Set Headers
192
192
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
193
193
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
194
194
 
195
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
-
197
195
  # Serialize Request
198
196
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters.mapper()
199
197
  request_content = @client.serialize(request_mapper, parameters)
@@ -259,8 +257,8 @@ module Azure::Automation::Mgmt::V2015_10_31
259
257
  # will be added to the HTTP request.
260
258
  #
261
259
  #
262
- def delete(resource_group_name, automation_account_name, custom_headers = nil)
263
- response = delete_async(resource_group_name, automation_account_name, custom_headers).value!
260
+ def delete(resource_group_name, automation_account_name, custom_headers:nil)
261
+ response = delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
264
262
  nil
265
263
  end
266
264
 
@@ -274,8 +272,8 @@ module Azure::Automation::Mgmt::V2015_10_31
274
272
  #
275
273
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
276
274
  #
277
- def delete_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
278
- delete_async(resource_group_name, automation_account_name, custom_headers).value!
275
+ def delete_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
276
+ delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
279
277
  end
280
278
 
281
279
  #
@@ -288,7 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
288
286
  #
289
287
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
290
288
  #
291
- def delete_async(resource_group_name, automation_account_name, custom_headers = nil)
289
+ def delete_async(resource_group_name, automation_account_name, custom_headers:nil)
292
290
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
293
291
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
294
292
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
@@ -297,6 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31
297
295
 
298
296
 
299
297
  request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
300
299
 
301
300
  # Set Headers
302
301
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -341,8 +340,8 @@ module Azure::Automation::Mgmt::V2015_10_31
341
340
  #
342
341
  # @return [AutomationAccount] operation results.
343
342
  #
344
- def get(resource_group_name, automation_account_name, custom_headers = nil)
345
- response = get_async(resource_group_name, automation_account_name, custom_headers).value!
343
+ def get(resource_group_name, automation_account_name, custom_headers:nil)
344
+ response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
346
345
  response.body unless response.nil?
347
346
  end
348
347
 
@@ -356,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31
356
355
  #
357
356
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
358
357
  #
359
- def get_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
360
- get_async(resource_group_name, automation_account_name, custom_headers).value!
358
+ def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
359
+ get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
361
360
  end
362
361
 
363
362
  #
@@ -370,7 +369,7 @@ module Azure::Automation::Mgmt::V2015_10_31
370
369
  #
371
370
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
372
371
  #
373
- def get_async(resource_group_name, automation_account_name, custom_headers = nil)
372
+ def get_async(resource_group_name, automation_account_name, custom_headers:nil)
374
373
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
375
374
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
376
375
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
@@ -379,6 +378,7 @@ module Azure::Automation::Mgmt::V2015_10_31
379
378
 
380
379
 
381
380
  request_headers = {}
381
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
382
382
 
383
383
  # Set Headers
384
384
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -432,8 +432,8 @@ module Azure::Automation::Mgmt::V2015_10_31
432
432
  #
433
433
  # @return [Array<AutomationAccount>] operation results.
434
434
  #
435
- def list_by_resource_group(resource_group_name, custom_headers = nil)
436
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
435
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
436
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
437
437
  first_page.get_all_items
438
438
  end
439
439
 
@@ -446,8 +446,8 @@ module Azure::Automation::Mgmt::V2015_10_31
446
446
  #
447
447
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
448
448
  #
449
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
450
- list_by_resource_group_async(resource_group_name, custom_headers).value!
449
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
450
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
451
451
  end
452
452
 
453
453
  #
@@ -459,7 +459,7 @@ module Azure::Automation::Mgmt::V2015_10_31
459
459
  #
460
460
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
461
461
  #
462
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
462
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
463
463
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
464
464
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
465
465
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -467,6 +467,7 @@ module Azure::Automation::Mgmt::V2015_10_31
467
467
 
468
468
 
469
469
  request_headers = {}
470
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
470
471
 
471
472
  # Set Headers
472
473
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -521,8 +522,8 @@ module Azure::Automation::Mgmt::V2015_10_31
521
522
  #
522
523
  # @return [Array<AutomationAccount>] operation results.
523
524
  #
524
- def list(custom_headers = nil)
525
- first_page = list_as_lazy(custom_headers)
525
+ def list(custom_headers:nil)
526
+ first_page = list_as_lazy(custom_headers:custom_headers)
526
527
  first_page.get_all_items
527
528
  end
528
529
 
@@ -536,8 +537,8 @@ module Azure::Automation::Mgmt::V2015_10_31
536
537
  #
537
538
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
538
539
  #
539
- def list_with_http_info(custom_headers = nil)
540
- list_async(custom_headers).value!
540
+ def list_with_http_info(custom_headers:nil)
541
+ list_async(custom_headers:custom_headers).value!
541
542
  end
542
543
 
543
544
  #
@@ -550,12 +551,13 @@ module Azure::Automation::Mgmt::V2015_10_31
550
551
  #
551
552
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
552
553
  #
553
- def list_async(custom_headers = nil)
554
+ def list_async(custom_headers:nil)
554
555
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
555
556
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
556
557
 
557
558
 
558
559
  request_headers = {}
560
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
559
561
 
560
562
  # Set Headers
561
563
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -610,8 +612,8 @@ module Azure::Automation::Mgmt::V2015_10_31
610
612
  #
611
613
  # @return [AutomationAccountListResult] operation results.
612
614
  #
613
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
614
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
615
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
616
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
615
617
  response.body unless response.nil?
616
618
  end
617
619
 
@@ -625,8 +627,8 @@ module Azure::Automation::Mgmt::V2015_10_31
625
627
  #
626
628
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
627
629
  #
628
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
629
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
630
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
631
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
630
632
  end
631
633
 
632
634
  #
@@ -639,11 +641,12 @@ module Azure::Automation::Mgmt::V2015_10_31
639
641
  #
640
642
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
641
643
  #
642
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
644
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
643
645
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
644
646
 
645
647
 
646
648
  request_headers = {}
649
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
647
650
 
648
651
  # Set Headers
649
652
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -699,8 +702,8 @@ module Azure::Automation::Mgmt::V2015_10_31
699
702
  #
700
703
  # @return [AutomationAccountListResult] operation results.
701
704
  #
702
- def list_next(next_page_link, custom_headers = nil)
703
- response = list_next_async(next_page_link, custom_headers).value!
705
+ def list_next(next_page_link, custom_headers:nil)
706
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
704
707
  response.body unless response.nil?
705
708
  end
706
709
 
@@ -716,8 +719,8 @@ module Azure::Automation::Mgmt::V2015_10_31
716
719
  #
717
720
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
718
721
  #
719
- def list_next_with_http_info(next_page_link, custom_headers = nil)
720
- list_next_async(next_page_link, custom_headers).value!
722
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
723
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
721
724
  end
722
725
 
723
726
  #
@@ -732,11 +735,12 @@ module Azure::Automation::Mgmt::V2015_10_31
732
735
  #
733
736
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
734
737
  #
735
- def list_next_async(next_page_link, custom_headers = nil)
738
+ def list_next_async(next_page_link, custom_headers:nil)
736
739
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
737
740
 
738
741
 
739
742
  request_headers = {}
743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
740
744
 
741
745
  # Set Headers
742
746
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -790,12 +794,12 @@ module Azure::Automation::Mgmt::V2015_10_31
790
794
  # @return [AutomationAccountListResult] which provide lazy access to pages of
791
795
  # the response.
792
796
  #
793
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
794
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
797
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
798
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
795
799
  unless response.nil?
796
800
  page = response.body
797
801
  page.next_method = Proc.new do |next_page_link|
798
- list_by_resource_group_next_async(next_page_link, custom_headers)
802
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
799
803
  end
800
804
  page
801
805
  end
@@ -812,12 +816,12 @@ module Azure::Automation::Mgmt::V2015_10_31
812
816
  # @return [AutomationAccountListResult] which provide lazy access to pages of
813
817
  # the response.
814
818
  #
815
- def list_as_lazy(custom_headers = nil)
816
- response = list_async(custom_headers).value!
819
+ def list_as_lazy(custom_headers:nil)
820
+ response = list_async(custom_headers:custom_headers).value!
817
821
  unless response.nil?
818
822
  page = response.body
819
823
  page.next_method = Proc.new do |next_page_link|
820
- list_next_async(next_page_link, custom_headers)
824
+ list_next_async(next_page_link, custom_headers:custom_headers)
821
825
  end
822
826
  page
823
827
  end
@@ -25,6 +25,9 @@ module Azure::Automation::Mgmt::V2015_10_31
25
25
  # for every service call.
26
26
  attr_accessor :subscription_id
27
27
 
28
+ # @return [String] The resource group name.
29
+ attr_accessor :resource_group_name
30
+
28
31
  # @return [String] Gets or sets the preferred language for the response.
29
32
  attr_accessor :accept_language
30
33
 
@@ -220,6 +223,9 @@ module Azure::Automation::Mgmt::V2015_10_31
220
223
  fail ArgumentError, 'path is nil' if path.nil?
221
224
 
222
225
  request_url = options[:base_url] || @base_url
226
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
227
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
228
+ end
223
229
 
224
230
  request_headers = @request_headers
225
231
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -236,7 +242,7 @@ module Azure::Automation::Mgmt::V2015_10_31
236
242
  #
237
243
  def add_telemetry
238
244
  sdk_information = 'azure_mgmt_automation'
239
- sdk_information = "#{sdk_information}/0.15.2"
245
+ sdk_information = "#{sdk_information}/0.16.0"
240
246
  add_user_agent_information(sdk_information)
241
247
  end
242
248
  end
@@ -24,22 +24,20 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the certificate.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] The automation account name.
29
28
  # @param certificate_name [String] The name of certificate.
30
29
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
30
  # will be added to the HTTP request.
32
31
  #
33
32
  #
34
- def delete(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
33
+ def delete(automation_account_name, certificate_name, custom_headers:nil)
34
+ response = delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
36
35
  nil
37
36
  end
38
37
 
39
38
  #
40
39
  # Delete the certificate.
41
40
  #
42
- # @param resource_group_name [String] The resource group name.
43
41
  # @param automation_account_name [String] The automation account name.
44
42
  # @param certificate_name [String] The name of certificate.
45
43
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -47,14 +45,13 @@ module Azure::Automation::Mgmt::V2015_10_31
47
45
  #
48
46
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
47
  #
50
- def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
48
+ def delete_with_http_info(automation_account_name, certificate_name, custom_headers:nil)
49
+ delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
52
50
  end
53
51
 
54
52
  #
55
53
  # Delete the certificate.
56
54
  #
57
- # @param resource_group_name [String] The resource group name.
58
55
  # @param automation_account_name [String] The automation account name.
59
56
  # @param certificate_name [String] The name of certificate.
60
57
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -62,9 +59,9 @@ module Azure::Automation::Mgmt::V2015_10_31
62
59
  #
63
60
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
64
61
  #
65
- def delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
66
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
62
+ def delete_async(automation_account_name, certificate_name, custom_headers:nil)
63
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
64
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
68
65
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
66
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
70
67
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -72,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31
72
69
 
73
70
 
74
71
  request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
73
 
76
74
  # Set Headers
77
75
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -82,7 +80,7 @@ module Azure::Automation::Mgmt::V2015_10_31
82
80
 
83
81
  options = {
84
82
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
83
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
86
84
  query_params: {'api-version' => @client.api_version},
87
85
  headers: request_headers.merge(custom_headers || {}),
88
86
  base_url: request_url
@@ -109,7 +107,6 @@ module Azure::Automation::Mgmt::V2015_10_31
109
107
  #
110
108
  # Retrieve the certificate identified by certificate name.
111
109
  #
112
- # @param resource_group_name [String] The resource group name.
113
110
  # @param automation_account_name [String] The automation account name.
114
111
  # @param certificate_name [String] The name of certificate.
115
112
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -117,15 +114,14 @@ module Azure::Automation::Mgmt::V2015_10_31
117
114
  #
118
115
  # @return [Certificate] operation results.
119
116
  #
120
- def get(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
117
+ def get(automation_account_name, certificate_name, custom_headers:nil)
118
+ response = get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
122
119
  response.body unless response.nil?
123
120
  end
124
121
 
125
122
  #
126
123
  # Retrieve the certificate identified by certificate name.
127
124
  #
128
- # @param resource_group_name [String] The resource group name.
129
125
  # @param automation_account_name [String] The automation account name.
130
126
  # @param certificate_name [String] The name of certificate.
131
127
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -133,14 +129,13 @@ module Azure::Automation::Mgmt::V2015_10_31
133
129
  #
134
130
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
135
131
  #
136
- def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
132
+ def get_with_http_info(automation_account_name, certificate_name, custom_headers:nil)
133
+ get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
138
134
  end
139
135
 
140
136
  #
141
137
  # Retrieve the certificate identified by certificate name.
142
138
  #
143
- # @param resource_group_name [String] The resource group name.
144
139
  # @param automation_account_name [String] The automation account name.
145
140
  # @param certificate_name [String] The name of certificate.
146
141
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -148,9 +143,9 @@ module Azure::Automation::Mgmt::V2015_10_31
148
143
  #
149
144
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
145
  #
151
- def get_async(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
152
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
153
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
146
+ def get_async(automation_account_name, certificate_name, custom_headers:nil)
147
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
148
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
154
149
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
155
150
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
156
151
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -158,6 +153,7 @@ module Azure::Automation::Mgmt::V2015_10_31
158
153
 
159
154
 
160
155
  request_headers = {}
156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
161
157
 
162
158
  # Set Headers
163
159
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -168,7 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31
168
164
 
169
165
  options = {
170
166
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
171
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
167
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
172
168
  query_params: {'api-version' => @client.api_version},
173
169
  headers: request_headers.merge(custom_headers || {}),
174
170
  base_url: request_url
@@ -205,7 +201,6 @@ module Azure::Automation::Mgmt::V2015_10_31
205
201
  #
206
202
  # Create a certificate.
207
203
  #
208
- # @param resource_group_name [String] The resource group name.
209
204
  # @param automation_account_name [String] The automation account name.
210
205
  # @param certificate_name [String] The parameters supplied to the create or
211
206
  # update certificate operation.
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
216
211
  #
217
212
  # @return [Certificate] operation results.
218
213
  #
219
- def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
214
+ def create_or_update(automation_account_name, certificate_name, parameters, custom_headers:nil)
215
+ response = create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
221
216
  response.body unless response.nil?
222
217
  end
223
218
 
224
219
  #
225
220
  # Create a certificate.
226
221
  #
227
- # @param resource_group_name [String] The resource group name.
228
222
  # @param automation_account_name [String] The automation account name.
229
223
  # @param certificate_name [String] The parameters supplied to the create or
230
224
  # update certificate operation.
@@ -235,14 +229,13 @@ module Azure::Automation::Mgmt::V2015_10_31
235
229
  #
236
230
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
231
  #
238
- def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
232
+ def create_or_update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers:nil)
233
+ create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
240
234
  end
241
235
 
242
236
  #
243
237
  # Create a certificate.
244
238
  #
245
- # @param resource_group_name [String] The resource group name.
246
239
  # @param automation_account_name [String] The automation account name.
247
240
  # @param certificate_name [String] The parameters supplied to the create or
248
241
  # update certificate operation.
@@ -253,9 +246,9 @@ module Azure::Automation::Mgmt::V2015_10_31
253
246
  #
254
247
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
248
  #
256
- def create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
257
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
258
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
249
+ def create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers:nil)
250
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
251
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
259
252
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
260
253
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
261
254
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -264,13 +257,12 @@ module Azure::Automation::Mgmt::V2015_10_31
264
257
 
265
258
 
266
259
  request_headers = {}
260
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
261
 
268
262
  # Set Headers
269
263
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
270
264
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
271
265
 
272
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
-
274
266
  # Serialize Request
275
267
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters.mapper()
276
268
  request_content = @client.serialize(request_mapper, parameters)
@@ -282,7 +274,7 @@ module Azure::Automation::Mgmt::V2015_10_31
282
274
 
283
275
  options = {
284
276
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
285
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
277
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
286
278
  query_params: {'api-version' => @client.api_version},
287
279
  body: request_content,
288
280
  headers: request_headers.merge(custom_headers || {}),
@@ -330,7 +322,6 @@ module Azure::Automation::Mgmt::V2015_10_31
330
322
  #
331
323
  # Update a certificate.
332
324
  #
333
- # @param resource_group_name [String] The resource group name.
334
325
  # @param automation_account_name [String] The automation account name.
335
326
  # @param certificate_name [String] The parameters supplied to the update
336
327
  # certificate operation.
@@ -341,15 +332,14 @@ module Azure::Automation::Mgmt::V2015_10_31
341
332
  #
342
333
  # @return [Certificate] operation results.
343
334
  #
344
- def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
345
- response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
335
+ def update(automation_account_name, certificate_name, parameters, custom_headers:nil)
336
+ response = update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
346
337
  response.body unless response.nil?
347
338
  end
348
339
 
349
340
  #
350
341
  # Update a certificate.
351
342
  #
352
- # @param resource_group_name [String] The resource group name.
353
343
  # @param automation_account_name [String] The automation account name.
354
344
  # @param certificate_name [String] The parameters supplied to the update
355
345
  # certificate operation.
@@ -360,14 +350,13 @@ module Azure::Automation::Mgmt::V2015_10_31
360
350
  #
361
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
362
352
  #
363
- def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
364
- update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
353
+ def update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers:nil)
354
+ update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
365
355
  end
366
356
 
367
357
  #
368
358
  # Update a certificate.
369
359
  #
370
- # @param resource_group_name [String] The resource group name.
371
360
  # @param automation_account_name [String] The automation account name.
372
361
  # @param certificate_name [String] The parameters supplied to the update
373
362
  # certificate operation.
@@ -378,9 +367,9 @@ module Azure::Automation::Mgmt::V2015_10_31
378
367
  #
379
368
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
380
369
  #
381
- def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
382
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
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?
370
+ def update_async(automation_account_name, certificate_name, parameters, custom_headers:nil)
371
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
372
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
384
373
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
385
374
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
386
375
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -389,13 +378,12 @@ module Azure::Automation::Mgmt::V2015_10_31
389
378
 
390
379
 
391
380
  request_headers = {}
381
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
382
 
393
383
  # Set Headers
394
384
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
395
385
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
396
386
 
397
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
398
-
399
387
  # Serialize Request
400
388
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters.mapper()
401
389
  request_content = @client.serialize(request_mapper, parameters)
@@ -407,7 +395,7 @@ module Azure::Automation::Mgmt::V2015_10_31
407
395
 
408
396
  options = {
409
397
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
410
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
398
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
411
399
  query_params: {'api-version' => @client.api_version},
412
400
  body: request_content,
413
401
  headers: request_headers.merge(custom_headers || {}),
@@ -445,51 +433,49 @@ module Azure::Automation::Mgmt::V2015_10_31
445
433
  #
446
434
  # Retrieve a list of certificates.
447
435
  #
448
- # @param resource_group_name [String] The resource group name.
449
436
  # @param automation_account_name [String] The automation account name.
450
437
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
451
438
  # will be added to the HTTP request.
452
439
  #
453
440
  # @return [Array<Certificate>] operation results.
454
441
  #
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)
442
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
443
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
457
444
  first_page.get_all_items
458
445
  end
459
446
 
460
447
  #
461
448
  # Retrieve a list of certificates.
462
449
  #
463
- # @param resource_group_name [String] The resource group name.
464
450
  # @param automation_account_name [String] The automation account name.
465
451
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
466
452
  # will be added to the HTTP request.
467
453
  #
468
454
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
469
455
  #
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!
456
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
457
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
472
458
  end
473
459
 
474
460
  #
475
461
  # Retrieve a list of certificates.
476
462
  #
477
- # @param resource_group_name [String] The resource group name.
478
463
  # @param automation_account_name [String] The automation account name.
479
464
  # @param [Hash{String => String}] A hash of custom headers that will be added
480
465
  # to the HTTP request.
481
466
  #
482
467
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
483
468
  #
484
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
485
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
486
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
469
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
470
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
471
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
487
472
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
488
473
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
489
474
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
490
475
 
491
476
 
492
477
  request_headers = {}
478
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
493
479
 
494
480
  # Set Headers
495
481
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -500,7 +486,7 @@ module Azure::Automation::Mgmt::V2015_10_31
500
486
 
501
487
  options = {
502
488
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
503
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
489
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
504
490
  query_params: {'api-version' => @client.api_version},
505
491
  headers: request_headers.merge(custom_headers || {}),
506
492
  base_url: request_url
@@ -544,8 +530,8 @@ module Azure::Automation::Mgmt::V2015_10_31
544
530
  #
545
531
  # @return [CertificateListResult] operation results.
546
532
  #
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!
533
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
534
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
549
535
  response.body unless response.nil?
550
536
  end
551
537
 
@@ -559,8 +545,8 @@ module Azure::Automation::Mgmt::V2015_10_31
559
545
  #
560
546
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
561
547
  #
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!
548
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
549
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
564
550
  end
565
551
 
566
552
  #
@@ -573,11 +559,12 @@ module Azure::Automation::Mgmt::V2015_10_31
573
559
  #
574
560
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
575
561
  #
576
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
562
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
577
563
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
578
564
 
579
565
 
580
566
  request_headers = {}
567
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
581
568
 
582
569
  # Set Headers
583
570
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -624,7 +611,6 @@ module Azure::Automation::Mgmt::V2015_10_31
624
611
  #
625
612
  # Retrieve a list of certificates.
626
613
  #
627
- # @param resource_group_name [String] The resource group name.
628
614
  # @param automation_account_name [String] The automation account name.
629
615
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
630
616
  # will be added to the HTTP request.
@@ -632,12 +618,12 @@ module Azure::Automation::Mgmt::V2015_10_31
632
618
  # @return [CertificateListResult] which provide lazy access to pages of the
633
619
  # response.
634
620
  #
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!
621
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
622
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
637
623
  unless response.nil?
638
624
  page = response.body
639
625
  page.next_method = Proc.new do |next_page_link|
640
- list_by_automation_account_next_async(next_page_link, custom_headers)
626
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
641
627
  end
642
628
  page
643
629
  end