azure_mgmt_scheduler 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,7 +565,7 @@ 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?
@@ -574,6 +575,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
574
575
 
575
576
 
576
577
  request_headers = {}
578
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
577
579
 
578
580
  # Set Headers
579
581
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -634,8 +636,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
634
636
  #
635
637
  # @return [Array<JobHistoryDefinition>] operation results.
636
638
  #
637
- def list_job_history(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
638
- 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)
639
641
  first_page.get_all_items
640
642
  end
641
643
 
@@ -655,8 +657,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
655
657
  #
656
658
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
657
659
  #
658
- def list_job_history_with_http_info(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
659
- 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!
660
662
  end
661
663
 
662
664
  #
@@ -675,7 +677,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
675
677
  #
676
678
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
677
679
  #
678
- 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)
679
681
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
680
682
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
681
683
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
@@ -686,6 +688,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
686
688
 
687
689
 
688
690
  request_headers = {}
691
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
689
692
 
690
693
  # Set Headers
691
694
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -740,8 +743,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
740
743
  #
741
744
  # @return [JobListResult] operation results.
742
745
  #
743
- def list_next(next_page_link, custom_headers = nil)
744
- 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!
745
748
  response.body unless response.nil?
746
749
  end
747
750
 
@@ -755,8 +758,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
755
758
  #
756
759
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
757
760
  #
758
- def list_next_with_http_info(next_page_link, custom_headers = nil)
759
- 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!
760
763
  end
761
764
 
762
765
  #
@@ -769,11 +772,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
769
772
  #
770
773
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
771
774
  #
772
- def list_next_async(next_page_link, custom_headers = nil)
775
+ def list_next_async(next_page_link, custom_headers:nil)
773
776
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
774
777
 
775
778
 
776
779
  request_headers = {}
780
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
777
781
 
778
782
  # Set Headers
779
783
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -827,8 +831,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
827
831
  #
828
832
  # @return [JobHistoryListResult] operation results.
829
833
  #
830
- def list_job_history_next(next_page_link, custom_headers = nil)
831
- 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!
832
836
  response.body unless response.nil?
833
837
  end
834
838
 
@@ -842,8 +846,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
842
846
  #
843
847
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
844
848
  #
845
- def list_job_history_next_with_http_info(next_page_link, custom_headers = nil)
846
- 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!
847
851
  end
848
852
 
849
853
  #
@@ -856,11 +860,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
856
860
  #
857
861
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
858
862
  #
859
- 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)
860
864
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
861
865
 
862
866
 
863
867
  request_headers = {}
868
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
864
869
 
865
870
  # Set Headers
866
871
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -919,12 +924,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
919
924
  #
920
925
  # @return [JobListResult] which provide lazy access to pages of the response.
921
926
  #
922
- def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
923
- 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!
924
929
  unless response.nil?
925
930
  page = response.body
926
931
  page.next_method = Proc.new do |next_page_link|
927
- list_next_async(next_page_link, custom_headers)
932
+ list_next_async(next_page_link, custom_headers:custom_headers)
928
933
  end
929
934
  page
930
935
  end
@@ -947,12 +952,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
947
952
  # @return [JobHistoryListResult] which provide lazy access to pages of the
948
953
  # response.
949
954
  #
950
- def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
951
- 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!
952
957
  unless response.nil?
953
958
  page = response.body
954
959
  page.next_method = Proc.new do |next_page_link|
955
- list_job_history_next_async(next_page_link, custom_headers)
960
+ list_job_history_next_async(next_page_link, custom_headers:custom_headers)
956
961
  end
957
962
  page
958
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
 
@@ -29,18 +36,17 @@ module Azure::Scheduler::Mgmt::V2016_03_01
29
36
  {
30
37
  client_side_validation: true,
31
38
  required: false,
32
- serialized_name: 'BasicAuthentication',
39
+ serialized_name: 'Basic',
33
40
  type: {
34
41
  name: 'Composite',
35
42
  class_name: 'BasicAuthentication',
36
43
  model_properties: {
37
44
  type: {
38
45
  client_side_validation: true,
39
- required: false,
46
+ required: true,
40
47
  serialized_name: 'type',
41
48
  type: {
42
- name: 'Enum',
43
- module: 'HttpAuthenticationType'
49
+ name: 'String'
44
50
  }
45
51
  },
46
52
  username: {
@@ -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
@@ -39,18 +46,17 @@ module Azure::Scheduler::Mgmt::V2016_03_01
39
46
  {
40
47
  client_side_validation: true,
41
48
  required: false,
42
- serialized_name: 'ClientCertAuthentication',
49
+ serialized_name: 'ClientCertificate',
43
50
  type: {
44
51
  name: 'Composite',
45
52
  class_name: 'ClientCertAuthentication',
46
53
  model_properties: {
47
54
  type: {
48
55
  client_side_validation: true,
49
- required: false,
56
+ required: true,
50
57
  serialized_name: 'type',
51
58
  type: {
52
- name: 'Enum',
53
- module: 'HttpAuthenticationType'
59
+ name: 'String'
54
60
  }
55
61
  },
56
62
  password: {
@@ -13,9 +13,15 @@ module Azure::Scheduler::Mgmt::V2016_03_01
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [HttpAuthenticationType] Gets or sets the HTTP authentication
17
- # type. Possible values include: 'NotSpecified', 'ClientCertificate',
18
- # 'ActiveDirectoryOAuth', 'Basic'
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["ClientCertificate"] = "ClientCertAuthentication"
18
+ @@discriminatorMap["Basic"] = "BasicAuthentication"
19
+ @@discriminatorMap["ActiveDirectoryOAuth"] = "OAuthAuthentication"
20
+
21
+ def initialize
22
+ @type = "HttpAuthentication"
23
+ end
24
+
19
25
  attr_accessor :type
20
26
 
21
27
 
@@ -30,17 +36,10 @@ module Azure::Scheduler::Mgmt::V2016_03_01
30
36
  serialized_name: 'HttpAuthentication',
31
37
  type: {
32
38
  name: 'Composite',
39
+ polymorphic_discriminator: 'type',
40
+ uber_parent: 'HttpAuthentication',
33
41
  class_name: 'HttpAuthentication',
34
42
  model_properties: {
35
- type: {
36
- client_side_validation: true,
37
- required: false,
38
- serialized_name: 'type',
39
- type: {
40
- name: 'Enum',
41
- module: 'HttpAuthenticationType'
42
- }
43
- }
44
43
  }
45
44
  }
46
45
  }