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
@@ -32,8 +32,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
32
32
  #
33
33
  # @return [JobDefinition] operation results.
34
34
  #
35
- def get(resource_group_name, job_collection_name, job_name, custom_headers = nil)
36
- response = get_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
35
+ def get(resource_group_name, job_collection_name, job_name, custom_headers:nil)
36
+ response = get_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def get_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil)
52
- get_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
51
+ def get_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil)
52
+ get_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def get_async(resource_group_name, job_collection_name, job_name, custom_headers = nil)
66
+ def get_async(resource_group_name, job_collection_name, job_name, custom_headers:nil)
67
67
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
69
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -72,6 +72,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
72
72
 
73
73
 
74
74
  request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
76
 
76
77
  # Set Headers
77
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -128,8 +129,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
128
129
  #
129
130
  # @return [JobDefinition] operation results.
130
131
  #
131
- def create_or_update(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
132
- response = create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value!
132
+ def create_or_update(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
133
+ response = create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value!
133
134
  response.body unless response.nil?
134
135
  end
135
136
 
@@ -145,8 +146,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def create_or_update_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
149
- create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value!
149
+ def create_or_update_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
150
+ create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -161,7 +162,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
161
162
  #
162
163
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
164
  #
164
- def create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
165
+ def create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
165
166
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
166
167
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
167
168
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -171,13 +172,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
171
172
 
172
173
 
173
174
  request_headers = {}
175
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
174
176
 
175
177
  # Set Headers
176
178
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
177
179
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
178
180
 
179
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
180
-
181
181
  # Serialize Request
182
182
  request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobDefinition.mapper()
183
183
  request_content = @client.serialize(request_mapper, job)
@@ -246,8 +246,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
246
246
  #
247
247
  # @return [JobDefinition] operation results.
248
248
  #
249
- def patch(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
250
- response = patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value!
249
+ def patch(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
250
+ response = patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value!
251
251
  response.body unless response.nil?
252
252
  end
253
253
 
@@ -263,8 +263,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
263
263
  #
264
264
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
265
265
  #
266
- def patch_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
267
- patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value!
266
+ def patch_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
267
+ patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value!
268
268
  end
269
269
 
270
270
  #
@@ -279,7 +279,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
279
279
  #
280
280
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
281
281
  #
282
- def patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers = nil)
282
+ def patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:nil)
283
283
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
284
284
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
285
285
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -289,13 +289,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
289
289
 
290
290
 
291
291
  request_headers = {}
292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
292
293
 
293
294
  # Set Headers
294
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
295
296
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
296
297
 
297
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
298
-
299
298
  # Serialize Request
300
299
  request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobDefinition.mapper()
301
300
  request_content = @client.serialize(request_mapper, job)
@@ -352,8 +351,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
352
351
  # will be added to the HTTP request.
353
352
  #
354
353
  #
355
- def delete(resource_group_name, job_collection_name, job_name, custom_headers = nil)
356
- response = delete_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
354
+ def delete(resource_group_name, job_collection_name, job_name, custom_headers:nil)
355
+ response = delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
357
356
  nil
358
357
  end
359
358
 
@@ -368,8 +367,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
368
367
  #
369
368
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
370
369
  #
371
- def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil)
372
- delete_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
370
+ def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil)
371
+ delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
373
372
  end
374
373
 
375
374
  #
@@ -383,7 +382,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
383
382
  #
384
383
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
385
384
  #
386
- def delete_async(resource_group_name, job_collection_name, job_name, custom_headers = nil)
385
+ def delete_async(resource_group_name, job_collection_name, job_name, custom_headers:nil)
387
386
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
388
387
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
389
388
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -392,6 +391,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
392
391
 
393
392
 
394
393
  request_headers = {}
394
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
395
395
 
396
396
  # Set Headers
397
397
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -436,8 +436,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
436
436
  # will be added to the HTTP request.
437
437
  #
438
438
  #
439
- def run(resource_group_name, job_collection_name, job_name, custom_headers = nil)
440
- response = run_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
439
+ def run(resource_group_name, job_collection_name, job_name, custom_headers:nil)
440
+ response = run_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
441
441
  nil
442
442
  end
443
443
 
@@ -452,8 +452,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
452
452
  #
453
453
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
454
454
  #
455
- def run_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil)
456
- run_async(resource_group_name, job_collection_name, job_name, custom_headers).value!
455
+ def run_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil)
456
+ run_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value!
457
457
  end
458
458
 
459
459
  #
@@ -467,7 +467,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
467
467
  #
468
468
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
469
469
  #
470
- def run_async(resource_group_name, job_collection_name, job_name, custom_headers = nil)
470
+ def run_async(resource_group_name, job_collection_name, job_name, custom_headers:nil)
471
471
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
472
472
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
473
473
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -476,6 +476,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
476
476
 
477
477
 
478
478
  request_headers = {}
479
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
479
480
 
480
481
  # Set Headers
481
482
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -525,8 +526,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
525
526
  #
526
527
  # @return [Array<JobDefinition>] operation results.
527
528
  #
528
- def list(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
529
- first_page = list_as_lazy(resource_group_name, job_collection_name, top, skip, filter, custom_headers)
529
+ def list(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
530
+ first_page = list_as_lazy(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers)
530
531
  first_page.get_all_items
531
532
  end
532
533
 
@@ -545,8 +546,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
545
546
  #
546
547
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
547
548
  #
548
- def list_with_http_info(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
549
- list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value!
549
+ def list_with_http_info(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
550
+ list_async(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
550
551
  end
551
552
 
552
553
  #
@@ -564,14 +565,17 @@ module Azure::Scheduler::Mgmt::V2016_03_01
564
565
  #
565
566
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
566
567
  #
567
- def list_async(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
568
+ def list_async(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
568
569
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
569
570
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
570
571
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
571
572
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
573
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '100'" if !top.nil? && top > 100
574
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
572
575
 
573
576
 
574
577
  request_headers = {}
578
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
575
579
 
576
580
  # Set Headers
577
581
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -632,8 +636,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
632
636
  #
633
637
  # @return [Array<JobHistoryDefinition>] operation results.
634
638
  #
635
- def list_job_history(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
636
- first_page = list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers)
639
+ def list_job_history(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
640
+ first_page = list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers)
637
641
  first_page.get_all_items
638
642
  end
639
643
 
@@ -653,8 +657,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
653
657
  #
654
658
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
655
659
  #
656
- def list_job_history_with_http_info(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
657
- list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value!
660
+ def list_job_history_with_http_info(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
661
+ list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
658
662
  end
659
663
 
660
664
  #
@@ -673,15 +677,18 @@ module Azure::Scheduler::Mgmt::V2016_03_01
673
677
  #
674
678
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
675
679
  #
676
- def list_job_history_async(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
680
+ def list_job_history_async(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
677
681
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
678
682
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
679
683
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
680
684
  fail ArgumentError, 'job_name is nil' if job_name.nil?
681
685
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
686
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '100'" if !top.nil? && top > 100
687
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
682
688
 
683
689
 
684
690
  request_headers = {}
691
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
685
692
 
686
693
  # Set Headers
687
694
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -736,8 +743,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
736
743
  #
737
744
  # @return [JobListResult] operation results.
738
745
  #
739
- def list_next(next_page_link, custom_headers = nil)
740
- response = list_next_async(next_page_link, custom_headers).value!
746
+ def list_next(next_page_link, custom_headers:nil)
747
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
741
748
  response.body unless response.nil?
742
749
  end
743
750
 
@@ -751,8 +758,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
751
758
  #
752
759
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
753
760
  #
754
- def list_next_with_http_info(next_page_link, custom_headers = nil)
755
- list_next_async(next_page_link, custom_headers).value!
761
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
762
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
756
763
  end
757
764
 
758
765
  #
@@ -765,11 +772,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
765
772
  #
766
773
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
767
774
  #
768
- def list_next_async(next_page_link, custom_headers = nil)
775
+ def list_next_async(next_page_link, custom_headers:nil)
769
776
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
770
777
 
771
778
 
772
779
  request_headers = {}
780
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
773
781
 
774
782
  # Set Headers
775
783
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -823,8 +831,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
823
831
  #
824
832
  # @return [JobHistoryListResult] operation results.
825
833
  #
826
- def list_job_history_next(next_page_link, custom_headers = nil)
827
- response = list_job_history_next_async(next_page_link, custom_headers).value!
834
+ def list_job_history_next(next_page_link, custom_headers:nil)
835
+ response = list_job_history_next_async(next_page_link, custom_headers:custom_headers).value!
828
836
  response.body unless response.nil?
829
837
  end
830
838
 
@@ -838,8 +846,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
838
846
  #
839
847
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
840
848
  #
841
- def list_job_history_next_with_http_info(next_page_link, custom_headers = nil)
842
- list_job_history_next_async(next_page_link, custom_headers).value!
849
+ def list_job_history_next_with_http_info(next_page_link, custom_headers:nil)
850
+ list_job_history_next_async(next_page_link, custom_headers:custom_headers).value!
843
851
  end
844
852
 
845
853
  #
@@ -852,11 +860,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
852
860
  #
853
861
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
854
862
  #
855
- def list_job_history_next_async(next_page_link, custom_headers = nil)
863
+ def list_job_history_next_async(next_page_link, custom_headers:nil)
856
864
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
857
865
 
858
866
 
859
867
  request_headers = {}
868
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
860
869
 
861
870
  # Set Headers
862
871
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -915,12 +924,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
915
924
  #
916
925
  # @return [JobListResult] which provide lazy access to pages of the response.
917
926
  #
918
- def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
919
- response = list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value!
927
+ def list_as_lazy(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
928
+ response = list_async(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
920
929
  unless response.nil?
921
930
  page = response.body
922
931
  page.next_method = Proc.new do |next_page_link|
923
- list_next_async(next_page_link, custom_headers)
932
+ list_next_async(next_page_link, custom_headers:custom_headers)
924
933
  end
925
934
  page
926
935
  end
@@ -943,12 +952,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
943
952
  # @return [JobHistoryListResult] which provide lazy access to pages of the
944
953
  # response.
945
954
  #
946
- def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
947
- response = list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value!
955
+ def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
956
+ response = list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
948
957
  unless response.nil?
949
958
  page = response.body
950
959
  page.next_method = Proc.new do |next_page_link|
951
- list_job_history_next_async(next_page_link, custom_headers)
960
+ list_job_history_next_async(next_page_link, custom_headers:custom_headers)
952
961
  end
953
962
  page
954
963
  end
@@ -13,6 +13,13 @@ module Azure::Scheduler::Mgmt::V2016_03_01
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+
17
+ def initialize
18
+ @type = "Basic"
19
+ end
20
+
21
+ attr_accessor :type
22
+
16
23
  # @return [String] Gets or sets the username.
17
24
  attr_accessor :username
18
25
 
@@ -27,21 +34,23 @@ module Azure::Scheduler::Mgmt::V2016_03_01
27
34
  #
28
35
  def self.mapper()
29
36
  {
37
+ client_side_validation: true,
30
38
  required: false,
31
- serialized_name: 'BasicAuthentication',
39
+ serialized_name: 'Basic',
32
40
  type: {
33
41
  name: 'Composite',
34
42
  class_name: 'BasicAuthentication',
35
43
  model_properties: {
36
44
  type: {
37
- required: false,
45
+ client_side_validation: true,
46
+ required: true,
38
47
  serialized_name: 'type',
39
48
  type: {
40
- name: 'Enum',
41
- module: 'HttpAuthenticationType'
49
+ name: 'String'
42
50
  }
43
51
  },
44
52
  username: {
53
+ client_side_validation: true,
45
54
  required: false,
46
55
  serialized_name: 'username',
47
56
  type: {
@@ -49,6 +58,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
49
58
  }
50
59
  },
51
60
  password: {
61
+ client_side_validation: true,
52
62
  required: false,
53
63
  serialized_name: 'password',
54
64
  type: {
@@ -13,6 +13,13 @@ module Azure::Scheduler::Mgmt::V2016_03_01
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+
17
+ def initialize
18
+ @type = "ClientCertificate"
19
+ end
20
+
21
+ attr_accessor :type
22
+
16
23
  # @return [String] Gets or sets the certificate password, return value
17
24
  # will always be empty.
18
25
  attr_accessor :password
@@ -37,21 +44,23 @@ module Azure::Scheduler::Mgmt::V2016_03_01
37
44
  #
38
45
  def self.mapper()
39
46
  {
47
+ client_side_validation: true,
40
48
  required: false,
41
- serialized_name: 'ClientCertAuthentication',
49
+ serialized_name: 'ClientCertificate',
42
50
  type: {
43
51
  name: 'Composite',
44
52
  class_name: 'ClientCertAuthentication',
45
53
  model_properties: {
46
54
  type: {
47
- required: false,
55
+ client_side_validation: true,
56
+ required: true,
48
57
  serialized_name: 'type',
49
58
  type: {
50
- name: 'Enum',
51
- module: 'HttpAuthenticationType'
59
+ name: 'String'
52
60
  }
53
61
  },
54
62
  password: {
63
+ client_side_validation: true,
55
64
  required: false,
56
65
  serialized_name: 'password',
57
66
  type: {
@@ -59,6 +68,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
59
68
  }
60
69
  },
61
70
  pfx: {
71
+ client_side_validation: true,
62
72
  required: false,
63
73
  serialized_name: 'pfx',
64
74
  type: {
@@ -66,6 +76,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
66
76
  }
67
77
  },
68
78
  certificate_thumbprint: {
79
+ client_side_validation: true,
69
80
  required: false,
70
81
  serialized_name: 'certificateThumbprint',
71
82
  type: {
@@ -73,6 +84,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
73
84
  }
74
85
  },
75
86
  certificate_expiration_date: {
87
+ client_side_validation: true,
76
88
  required: false,
77
89
  serialized_name: 'certificateExpirationDate',
78
90
  type: {
@@ -80,6 +92,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
80
92
  }
81
93
  },
82
94
  certificate_subject_name: {
95
+ client_side_validation: true,
83
96
  required: false,
84
97
  serialized_name: 'certificateSubjectName',
85
98
  type: {