azure_mgmt_scheduler 0.15.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-03-01/generated/azure_mgmt_scheduler.rb +0 -1
  3. data/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb +78 -72
  4. data/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb +64 -55
  5. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/basic_authentication.rb +14 -4
  6. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/client_cert_authentication.rb +17 -4
  7. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication.rb +12 -11
  8. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_request.rb +9 -0
  9. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_action.rb +8 -0
  10. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_definition.rb +8 -0
  11. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_list_result.rb +5 -1
  12. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_properties.rb +4 -0
  13. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_quota.rb +4 -0
  14. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_definition.rb +5 -0
  15. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_error_action.rb +7 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_history_definition.rb +5 -0
  17. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb +9 -0
  18. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_history_filter.rb +2 -0
  19. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_history_list_result.rb +5 -1
  20. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_list_result.rb +5 -1
  21. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_max_recurrence.rb +3 -0
  22. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_properties.rb +6 -0
  23. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_recurrence.rb +6 -0
  24. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +11 -0
  25. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +3 -0
  26. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_state_filter.rb +2 -0
  27. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/job_status.rb +6 -0
  28. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/oauth_authentication.rb +16 -4
  29. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/retry_policy.rb +4 -0
  30. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/service_bus_authentication.rb +4 -0
  31. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +14 -0
  32. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/service_bus_message.rb +8 -0
  33. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb +9 -0
  34. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb +9 -0
  35. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/sku.rb +2 -0
  36. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/storage_queue_message.rb +5 -0
  37. data/lib/2016-03-01/generated/azure_mgmt_scheduler/scheduler_management_client.rb +10 -8
  38. data/lib/profiles/latest/modules/scheduler_profile_module.rb +160 -145
  39. data/lib/profiles/latest/scheduler_latest_profile_client.rb +28 -11
  40. data/lib/profiles/latest/scheduler_module_definition.rb +0 -1
  41. data/lib/version.rb +1 -1
  42. metadata +11 -10
  43. data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication_type.rb +0 -18
  44. data/lib/2016-03-01/generated/azure_mgmt_scheduler/version.rb +0 -8
  45. data/lib/profiles/common/configurable.rb +0 -86
  46. data/lib/profiles/common/default.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b514f3885638425f44f60a3ada58346aa56ba3a3
4
- data.tar.gz: 5d49dcbf9dc2dbe983a918aa9a63e00706fc24df
2
+ SHA256:
3
+ metadata.gz: 6eb08ef6f8d77d33d71bd8ef04f5eb6e0f520f77815f0f7f4399c9a30d987512
4
+ data.tar.gz: 3cd25d63ce6328d646f70112e69de6ca9138d3235dae18ece2ecb295e19dc76a
5
5
  SHA512:
6
- metadata.gz: c22f13f5206f28fca223cc1a63aa2b39f30e6d380ec01f54ca0f8e0e48bcb187989fd4b4e683b1b4923b2104a81a1c8752066e11e79e832c9ede02cee37d34ab
7
- data.tar.gz: a996292d610369f6704ba16188af49cbff14e878e522438c33063bb23c33798f37b794f466ada209f57d4843fd557e519e9feda97463b2fb391fe7287f2e1b65
6
+ metadata.gz: 79e9c3d4a363d9872fe980abb38ad2ad2ea7a9f96029535873d70300fe5dde78504a3723c588b6f599536f16df4ff6acb4de78d0ab8698128e8c1ed63b7bc8f8
7
+ data.tar.gz: cda95cb5a5160d8d3a5c387ac3539a5a99f3216747e2c4ae5f0d65409f20c331f16e850dfe653e7a97ffe7d4dc5d7c4733baa27c7859d6bbd7a71237e0fc80fb
@@ -61,7 +61,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01
61
61
  autoload :JobCollectionState, '2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_state.rb'
62
62
  autoload :RecurrenceFrequency, '2016-03-01/generated/azure_mgmt_scheduler/models/recurrence_frequency.rb'
63
63
  autoload :JobActionType, '2016-03-01/generated/azure_mgmt_scheduler/models/job_action_type.rb'
64
- autoload :HttpAuthenticationType, '2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication_type.rb'
65
64
  autoload :RetryType, '2016-03-01/generated/azure_mgmt_scheduler/models/retry_type.rb'
66
65
  autoload :DayOfWeek, '2016-03-01/generated/azure_mgmt_scheduler/models/day_of_week.rb'
67
66
  autoload :JobScheduleDay, '2016-03-01/generated/azure_mgmt_scheduler/models/job_schedule_day.rb'
@@ -29,8 +29,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
29
29
  #
30
30
  # @return [Array<JobCollectionDefinition>] operation results.
31
31
  #
32
- def list_by_subscription(custom_headers = nil)
33
- first_page = list_by_subscription_as_lazy(custom_headers)
32
+ def list_by_subscription(custom_headers:nil)
33
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_by_subscription_with_http_info(custom_headers = nil)
46
- list_by_subscription_async(custom_headers).value!
45
+ def list_by_subscription_with_http_info(custom_headers:nil)
46
+ list_by_subscription_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,12 +54,13 @@ module Azure::Scheduler::Mgmt::V2016_03_01
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_by_subscription_async(custom_headers = nil)
57
+ def list_by_subscription_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
59
59
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
60
60
 
61
61
 
62
62
  request_headers = {}
63
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
64
 
64
65
  # Set Headers
65
66
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -113,8 +114,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
113
114
  #
114
115
  # @return [Array<JobCollectionDefinition>] operation results.
115
116
  #
116
- def list_by_resource_group(resource_group_name, custom_headers = nil)
117
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
117
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
118
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
118
119
  first_page.get_all_items
119
120
  end
120
121
 
@@ -127,8 +128,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
127
128
  #
128
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
130
  #
130
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
131
- list_by_resource_group_async(resource_group_name, custom_headers).value!
131
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
132
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
132
133
  end
133
134
 
134
135
  #
@@ -140,13 +141,14 @@ module Azure::Scheduler::Mgmt::V2016_03_01
140
141
  #
141
142
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
142
143
  #
143
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
144
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
144
145
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
145
146
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
146
147
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
147
148
 
148
149
 
149
150
  request_headers = {}
151
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
150
152
 
151
153
  # Set Headers
152
154
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -201,8 +203,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
201
203
  #
202
204
  # @return [JobCollectionDefinition] operation results.
203
205
  #
204
- def get(resource_group_name, job_collection_name, custom_headers = nil)
205
- response = get_async(resource_group_name, job_collection_name, custom_headers).value!
206
+ def get(resource_group_name, job_collection_name, custom_headers:nil)
207
+ response = get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
206
208
  response.body unless response.nil?
207
209
  end
208
210
 
@@ -216,8 +218,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
216
218
  #
217
219
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
218
220
  #
219
- def get_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
220
- get_async(resource_group_name, job_collection_name, custom_headers).value!
221
+ def get_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
222
+ get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
221
223
  end
222
224
 
223
225
  #
@@ -230,7 +232,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
230
232
  #
231
233
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
232
234
  #
233
- def get_async(resource_group_name, job_collection_name, custom_headers = nil)
235
+ def get_async(resource_group_name, job_collection_name, custom_headers:nil)
234
236
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
235
237
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
236
238
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -238,6 +240,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
238
240
 
239
241
 
240
242
  request_headers = {}
243
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
241
244
 
242
245
  # Set Headers
243
246
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -294,8 +297,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
294
297
  #
295
298
  # @return [JobCollectionDefinition] operation results.
296
299
  #
297
- def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
298
- response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
300
+ def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
301
+ response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
299
302
  response.body unless response.nil?
300
303
  end
301
304
 
@@ -311,8 +314,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
311
314
  #
312
315
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
313
316
  #
314
- def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
315
- create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
317
+ def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
318
+ create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
316
319
  end
317
320
 
318
321
  #
@@ -327,7 +330,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
327
330
  #
328
331
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
329
332
  #
330
- def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
333
+ def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
331
334
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
332
335
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
333
336
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -336,13 +339,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
336
339
 
337
340
 
338
341
  request_headers = {}
342
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
339
343
 
340
344
  # Set Headers
341
345
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
342
346
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
343
347
 
344
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
345
-
346
348
  # Serialize Request
347
349
  request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition.mapper()
348
350
  request_content = @client.serialize(request_mapper, job_collection)
@@ -411,8 +413,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
411
413
  #
412
414
  # @return [JobCollectionDefinition] operation results.
413
415
  #
414
- def patch(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
415
- response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
416
+ def patch(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
417
+ response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
416
418
  response.body unless response.nil?
417
419
  end
418
420
 
@@ -428,8 +430,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
428
430
  #
429
431
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
430
432
  #
431
- def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
432
- patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
433
+ def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
434
+ patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
433
435
  end
434
436
 
435
437
  #
@@ -444,7 +446,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
444
446
  #
445
447
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
446
448
  #
447
- def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
449
+ def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
448
450
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
449
451
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
450
452
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -453,13 +455,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
453
455
 
454
456
 
455
457
  request_headers = {}
458
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
456
459
 
457
460
  # Set Headers
458
461
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
459
462
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
460
463
 
461
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
-
463
464
  # Serialize Request
464
465
  request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition.mapper()
465
466
  request_content = @client.serialize(request_mapper, job_collection)
@@ -514,8 +515,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
514
515
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
515
516
  # will be added to the HTTP request.
516
517
  #
517
- def delete(resource_group_name, job_collection_name, custom_headers = nil)
518
- response = delete_async(resource_group_name, job_collection_name, custom_headers).value!
518
+ def delete(resource_group_name, job_collection_name, custom_headers:nil)
519
+ response = delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
519
520
  nil
520
521
  end
521
522
 
@@ -528,9 +529,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
528
529
  # @return [Concurrent::Promise] promise which provides async access to http
529
530
  # response.
530
531
  #
531
- def delete_async(resource_group_name, job_collection_name, custom_headers = nil)
532
+ def delete_async(resource_group_name, job_collection_name, custom_headers:nil)
532
533
  # Send request
533
- promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers)
534
+ promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
534
535
 
535
536
  promise = promise.then do |response|
536
537
  # Defining deserialization method.
@@ -552,8 +553,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
552
553
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
553
554
  # will be added to the HTTP request.
554
555
  #
555
- def enable(resource_group_name, job_collection_name, custom_headers = nil)
556
- response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
556
+ def enable(resource_group_name, job_collection_name, custom_headers:nil)
557
+ response = enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
557
558
  nil
558
559
  end
559
560
 
@@ -566,9 +567,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
566
567
  # @return [Concurrent::Promise] promise which provides async access to http
567
568
  # response.
568
569
  #
569
- def enable_async(resource_group_name, job_collection_name, custom_headers = nil)
570
+ def enable_async(resource_group_name, job_collection_name, custom_headers:nil)
570
571
  # Send request
571
- promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
572
+ promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
572
573
 
573
574
  promise = promise.then do |response|
574
575
  # Defining deserialization method.
@@ -590,8 +591,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
590
591
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
591
592
  # will be added to the HTTP request.
592
593
  #
593
- def disable(resource_group_name, job_collection_name, custom_headers = nil)
594
- response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
594
+ def disable(resource_group_name, job_collection_name, custom_headers:nil)
595
+ response = disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
595
596
  nil
596
597
  end
597
598
 
@@ -604,9 +605,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
604
605
  # @return [Concurrent::Promise] promise which provides async access to http
605
606
  # response.
606
607
  #
607
- def disable_async(resource_group_name, job_collection_name, custom_headers = nil)
608
+ def disable_async(resource_group_name, job_collection_name, custom_headers:nil)
608
609
  # Send request
609
- promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
610
+ promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
610
611
 
611
612
  promise = promise.then do |response|
612
613
  # Defining deserialization method.
@@ -629,8 +630,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
629
630
  # will be added to the HTTP request.
630
631
  #
631
632
  #
632
- def begin_delete(resource_group_name, job_collection_name, custom_headers = nil)
633
- response = begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
633
+ def begin_delete(resource_group_name, job_collection_name, custom_headers:nil)
634
+ response = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
634
635
  nil
635
636
  end
636
637
 
@@ -644,8 +645,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
644
645
  #
645
646
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
646
647
  #
647
- def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
648
- begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
648
+ def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
649
+ begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
649
650
  end
650
651
 
651
652
  #
@@ -658,7 +659,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
658
659
  #
659
660
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
660
661
  #
661
- def begin_delete_async(resource_group_name, job_collection_name, custom_headers = nil)
662
+ def begin_delete_async(resource_group_name, job_collection_name, custom_headers:nil)
662
663
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
663
664
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
664
665
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -666,6 +667,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
666
667
 
667
668
 
668
669
  request_headers = {}
670
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
669
671
 
670
672
  # Set Headers
671
673
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -709,8 +711,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
709
711
  # will be added to the HTTP request.
710
712
  #
711
713
  #
712
- def begin_enable(resource_group_name, job_collection_name, custom_headers = nil)
713
- response = begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
714
+ def begin_enable(resource_group_name, job_collection_name, custom_headers:nil)
715
+ response = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
714
716
  nil
715
717
  end
716
718
 
@@ -724,8 +726,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
724
726
  #
725
727
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
726
728
  #
727
- def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
728
- begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
729
+ def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
730
+ begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
729
731
  end
730
732
 
731
733
  #
@@ -738,7 +740,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
738
740
  #
739
741
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
740
742
  #
741
- def begin_enable_async(resource_group_name, job_collection_name, custom_headers = nil)
743
+ def begin_enable_async(resource_group_name, job_collection_name, custom_headers:nil)
742
744
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
743
745
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
744
746
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -746,6 +748,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
746
748
 
747
749
 
748
750
  request_headers = {}
751
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
749
752
 
750
753
  # Set Headers
751
754
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -789,8 +792,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
789
792
  # will be added to the HTTP request.
790
793
  #
791
794
  #
792
- def begin_disable(resource_group_name, job_collection_name, custom_headers = nil)
793
- response = begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
795
+ def begin_disable(resource_group_name, job_collection_name, custom_headers:nil)
796
+ response = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
794
797
  nil
795
798
  end
796
799
 
@@ -804,8 +807,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
804
807
  #
805
808
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
806
809
  #
807
- def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
808
- begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
810
+ def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
811
+ begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
809
812
  end
810
813
 
811
814
  #
@@ -818,7 +821,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
818
821
  #
819
822
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
820
823
  #
821
- def begin_disable_async(resource_group_name, job_collection_name, custom_headers = nil)
824
+ def begin_disable_async(resource_group_name, job_collection_name, custom_headers:nil)
822
825
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
823
826
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
824
827
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -826,6 +829,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
826
829
 
827
830
 
828
831
  request_headers = {}
832
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
829
833
 
830
834
  # Set Headers
831
835
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -870,8 +874,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
870
874
  #
871
875
  # @return [JobCollectionListResult] operation results.
872
876
  #
873
- def list_by_subscription_next(next_page_link, custom_headers = nil)
874
- response = list_by_subscription_next_async(next_page_link, custom_headers).value!
877
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
878
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
875
879
  response.body unless response.nil?
876
880
  end
877
881
 
@@ -885,8 +889,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
885
889
  #
886
890
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
887
891
  #
888
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
889
- list_by_subscription_next_async(next_page_link, custom_headers).value!
892
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
893
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
890
894
  end
891
895
 
892
896
  #
@@ -899,11 +903,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
899
903
  #
900
904
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
901
905
  #
902
- def list_by_subscription_next_async(next_page_link, custom_headers = nil)
906
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
903
907
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
904
908
 
905
909
 
906
910
  request_headers = {}
911
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
907
912
 
908
913
  # Set Headers
909
914
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -957,8 +962,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
957
962
  #
958
963
  # @return [JobCollectionListResult] operation results.
959
964
  #
960
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
961
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
965
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
966
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
962
967
  response.body unless response.nil?
963
968
  end
964
969
 
@@ -972,8 +977,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
972
977
  #
973
978
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
974
979
  #
975
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
976
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
980
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
981
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
977
982
  end
978
983
 
979
984
  #
@@ -986,11 +991,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
986
991
  #
987
992
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
988
993
  #
989
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
994
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
990
995
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
991
996
 
992
997
 
993
998
  request_headers = {}
999
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
994
1000
 
995
1001
  # Set Headers
996
1002
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1043,12 +1049,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
1043
1049
  # @return [JobCollectionListResult] which provide lazy access to pages of the
1044
1050
  # response.
1045
1051
  #
1046
- def list_by_subscription_as_lazy(custom_headers = nil)
1047
- response = list_by_subscription_async(custom_headers).value!
1052
+ def list_by_subscription_as_lazy(custom_headers:nil)
1053
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
1048
1054
  unless response.nil?
1049
1055
  page = response.body
1050
1056
  page.next_method = Proc.new do |next_page_link|
1051
- list_by_subscription_next_async(next_page_link, custom_headers)
1057
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1052
1058
  end
1053
1059
  page
1054
1060
  end
@@ -1064,12 +1070,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
1064
1070
  # @return [JobCollectionListResult] which provide lazy access to pages of the
1065
1071
  # response.
1066
1072
  #
1067
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1068
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1073
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1074
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1069
1075
  unless response.nil?
1070
1076
  page = response.body
1071
1077
  page.next_method = Proc.new do |next_page_link|
1072
- list_by_resource_group_next_async(next_page_link, custom_headers)
1078
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1073
1079
  end
1074
1080
  page
1075
1081
  end