azure_mgmt_event_grid 0.15.3 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -137,7 +137,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
137
137
  #
138
138
  def add_telemetry
139
139
  sdk_information = 'azure_mgmt_event_grid'
140
- sdk_information = "#{sdk_information}/0.15.3"
140
+ sdk_information = "#{sdk_information}/0.16.0"
141
141
  add_user_agent_information(sdk_information)
142
142
  end
143
143
  end
@@ -42,8 +42,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
42
42
  #
43
43
  # @return [EventSubscription] operation results.
44
44
  #
45
- def get(scope, event_subscription_name, custom_headers = nil)
46
- response = get_async(scope, event_subscription_name, custom_headers).value!
45
+ def get(scope, event_subscription_name, custom_headers:nil)
46
+ response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
47
47
  response.body unless response.nil?
48
48
  end
49
49
 
@@ -68,8 +68,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
68
68
  #
69
69
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
70
70
  #
71
- def get_with_http_info(scope, event_subscription_name, custom_headers = nil)
72
- get_async(scope, event_subscription_name, custom_headers).value!
71
+ def get_with_http_info(scope, event_subscription_name, custom_headers:nil)
72
+ get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
73
73
  end
74
74
 
75
75
  #
@@ -93,13 +93,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
93
93
  #
94
94
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
95
95
  #
96
- def get_async(scope, event_subscription_name, custom_headers = nil)
96
+ def get_async(scope, event_subscription_name, custom_headers:nil)
97
97
  fail ArgumentError, 'scope is nil' if scope.nil?
98
98
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
99
99
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
100
100
 
101
101
 
102
102
  request_headers = {}
103
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
103
104
 
104
105
  # Set Headers
105
106
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -172,8 +173,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
172
173
  #
173
174
  # @return [EventSubscription] operation results.
174
175
  #
175
- def create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
176
- response = create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
176
+ def create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
177
+ response = create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
177
178
  response.body unless response.nil?
178
179
  end
179
180
 
@@ -200,9 +201,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
200
201
  # @return [Concurrent::Promise] promise which provides async access to http
201
202
  # response.
202
203
  #
203
- def create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
204
+ def create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
204
205
  # Send request
205
- promise = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers)
206
+ promise = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers)
206
207
 
207
208
  promise = promise.then do |response|
208
209
  # Defining deserialization method.
@@ -237,8 +238,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
237
238
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
238
239
  # will be added to the HTTP request.
239
240
  #
240
- def delete(scope, event_subscription_name, custom_headers = nil)
241
- response = delete_async(scope, event_subscription_name, custom_headers).value!
241
+ def delete(scope, event_subscription_name, custom_headers:nil)
242
+ response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
242
243
  nil
243
244
  end
244
245
 
@@ -260,9 +261,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
260
261
  # @return [Concurrent::Promise] promise which provides async access to http
261
262
  # response.
262
263
  #
263
- def delete_async(scope, event_subscription_name, custom_headers = nil)
264
+ def delete_async(scope, event_subscription_name, custom_headers:nil)
264
265
  # Send request
265
- promise = begin_delete_async(scope, event_subscription_name, custom_headers)
266
+ promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers)
266
267
 
267
268
  promise = promise.then do |response|
268
269
  # Defining deserialization method.
@@ -300,8 +301,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
300
301
  #
301
302
  # @return [EventSubscription] operation results.
302
303
  #
303
- def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
304
- response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value!
304
+ def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
305
+ response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
305
306
  response.body unless response.nil?
306
307
  end
307
308
 
@@ -326,9 +327,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
326
327
  # @return [Concurrent::Promise] promise which provides async access to http
327
328
  # response.
328
329
  #
329
- def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
330
+ def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
330
331
  # Send request
331
- promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers)
332
+ promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers)
332
333
 
333
334
  promise = promise.then do |response|
334
335
  # Defining deserialization method.
@@ -365,8 +366,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
365
366
  #
366
367
  # @return [EventSubscriptionFullUrl] operation results.
367
368
  #
368
- def get_full_url(scope, event_subscription_name, custom_headers = nil)
369
- response = get_full_url_async(scope, event_subscription_name, custom_headers).value!
369
+ def get_full_url(scope, event_subscription_name, custom_headers:nil)
370
+ response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
370
371
  response.body unless response.nil?
371
372
  end
372
373
 
@@ -391,8 +392,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
391
392
  #
392
393
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
393
394
  #
394
- def get_full_url_with_http_info(scope, event_subscription_name, custom_headers = nil)
395
- get_full_url_async(scope, event_subscription_name, custom_headers).value!
395
+ def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil)
396
+ get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
396
397
  end
397
398
 
398
399
  #
@@ -416,13 +417,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
416
417
  #
417
418
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
418
419
  #
419
- def get_full_url_async(scope, event_subscription_name, custom_headers = nil)
420
+ def get_full_url_async(scope, event_subscription_name, custom_headers:nil)
420
421
  fail ArgumentError, 'scope is nil' if scope.nil?
421
422
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
422
423
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
423
424
 
424
425
 
425
426
  request_headers = {}
427
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
426
428
 
427
429
  # Set Headers
428
430
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -480,8 +482,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
480
482
  #
481
483
  # @return [EventSubscriptionsListResult] operation results.
482
484
  #
483
- def list_global_by_subscription(custom_headers = nil)
484
- response = list_global_by_subscription_async(custom_headers).value!
485
+ def list_global_by_subscription(custom_headers:nil)
486
+ response = list_global_by_subscription_async(custom_headers:custom_headers).value!
485
487
  response.body unless response.nil?
486
488
  end
487
489
 
@@ -497,8 +499,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
497
499
  #
498
500
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
499
501
  #
500
- def list_global_by_subscription_with_http_info(custom_headers = nil)
501
- list_global_by_subscription_async(custom_headers).value!
502
+ def list_global_by_subscription_with_http_info(custom_headers:nil)
503
+ list_global_by_subscription_async(custom_headers:custom_headers).value!
502
504
  end
503
505
 
504
506
  #
@@ -513,12 +515,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01
513
515
  #
514
516
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
515
517
  #
516
- def list_global_by_subscription_async(custom_headers = nil)
518
+ def list_global_by_subscription_async(custom_headers:nil)
517
519
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
518
520
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
519
521
 
520
522
 
521
523
  request_headers = {}
524
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
522
525
 
523
526
  # Set Headers
524
527
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -575,8 +578,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
575
578
  #
576
579
  # @return [EventSubscriptionsListResult] operation results.
577
580
  #
578
- def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers = nil)
579
- response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value!
581
+ def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil)
582
+ response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
580
583
  response.body unless response.nil?
581
584
  end
582
585
 
@@ -592,8 +595,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
592
595
  #
593
596
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
594
597
  #
595
- def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers = nil)
596
- list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value!
598
+ def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil)
599
+ list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
597
600
  end
598
601
 
599
602
  #
@@ -608,13 +611,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
608
611
  #
609
612
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
610
613
  #
611
- def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers = nil)
614
+ def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil)
612
615
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
613
616
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
614
617
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
615
618
 
616
619
 
617
620
  request_headers = {}
621
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
618
622
 
619
623
  # Set Headers
620
624
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -673,8 +677,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
673
677
  #
674
678
  # @return [EventSubscriptionsListResult] operation results.
675
679
  #
676
- def list_global_by_resource_group(resource_group_name, custom_headers = nil)
677
- response = list_global_by_resource_group_async(resource_group_name, custom_headers).value!
680
+ def list_global_by_resource_group(resource_group_name, custom_headers:nil)
681
+ response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
678
682
  response.body unless response.nil?
679
683
  end
680
684
 
@@ -692,8 +696,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
692
696
  #
693
697
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
694
698
  #
695
- def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
696
- list_global_by_resource_group_async(resource_group_name, custom_headers).value!
699
+ def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
700
+ list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
697
701
  end
698
702
 
699
703
  #
@@ -710,13 +714,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
710
714
  #
711
715
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
712
716
  #
713
- def list_global_by_resource_group_async(resource_group_name, custom_headers = nil)
717
+ def list_global_by_resource_group_async(resource_group_name, custom_headers:nil)
714
718
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
715
719
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
716
720
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
717
721
 
718
722
 
719
723
  request_headers = {}
724
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
720
725
 
721
726
  # Set Headers
722
727
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -775,8 +780,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
775
780
  #
776
781
  # @return [EventSubscriptionsListResult] operation results.
777
782
  #
778
- def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers = nil)
779
- response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value!
783
+ def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil)
784
+ response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
780
785
  response.body unless response.nil?
781
786
  end
782
787
 
@@ -794,8 +799,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
794
799
  #
795
800
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
796
801
  #
797
- def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers = nil)
798
- list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value!
802
+ def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil)
803
+ list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
799
804
  end
800
805
 
801
806
  #
@@ -812,7 +817,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
812
817
  #
813
818
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
814
819
  #
815
- def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers = nil)
820
+ def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil)
816
821
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
817
822
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
818
823
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
@@ -820,6 +825,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
820
825
 
821
826
 
822
827
  request_headers = {}
828
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
823
829
 
824
830
  # Set Headers
825
831
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -876,8 +882,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
876
882
  #
877
883
  # @return [EventSubscriptionsListResult] operation results.
878
884
  #
879
- def list_regional_by_subscription(location, custom_headers = nil)
880
- response = list_regional_by_subscription_async(location, custom_headers).value!
885
+ def list_regional_by_subscription(location, custom_headers:nil)
886
+ response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
881
887
  response.body unless response.nil?
882
888
  end
883
889
 
@@ -893,8 +899,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
893
899
  #
894
900
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
895
901
  #
896
- def list_regional_by_subscription_with_http_info(location, custom_headers = nil)
897
- list_regional_by_subscription_async(location, custom_headers).value!
902
+ def list_regional_by_subscription_with_http_info(location, custom_headers:nil)
903
+ list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
898
904
  end
899
905
 
900
906
  #
@@ -909,13 +915,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
909
915
  #
910
916
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
911
917
  #
912
- def list_regional_by_subscription_async(location, custom_headers = nil)
918
+ def list_regional_by_subscription_async(location, custom_headers:nil)
913
919
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
914
920
  fail ArgumentError, 'location is nil' if location.nil?
915
921
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
916
922
 
917
923
 
918
924
  request_headers = {}
925
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
919
926
 
920
927
  # Set Headers
921
928
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -975,8 +982,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
975
982
  #
976
983
  # @return [EventSubscriptionsListResult] operation results.
977
984
  #
978
- def list_regional_by_resource_group(resource_group_name, location, custom_headers = nil)
979
- response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value!
985
+ def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil)
986
+ response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
980
987
  response.body unless response.nil?
981
988
  end
982
989
 
@@ -995,8 +1002,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
995
1002
  #
996
1003
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
997
1004
  #
998
- def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers = nil)
999
- list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value!
1005
+ def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil)
1006
+ list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1000
1007
  end
1001
1008
 
1002
1009
  #
@@ -1014,7 +1021,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1014
1021
  #
1015
1022
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1016
1023
  #
1017
- def list_regional_by_resource_group_async(resource_group_name, location, custom_headers = nil)
1024
+ def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil)
1018
1025
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1019
1026
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1020
1027
  fail ArgumentError, 'location is nil' if location.nil?
@@ -1022,6 +1029,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1022
1029
 
1023
1030
 
1024
1031
  request_headers = {}
1032
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1025
1033
 
1026
1034
  # Set Headers
1027
1035
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1080,8 +1088,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1080
1088
  #
1081
1089
  # @return [EventSubscriptionsListResult] operation results.
1082
1090
  #
1083
- def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers = nil)
1084
- response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value!
1091
+ def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil)
1092
+ response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1085
1093
  response.body unless response.nil?
1086
1094
  end
1087
1095
 
@@ -1099,8 +1107,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1099
1107
  #
1100
1108
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1101
1109
  #
1102
- def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers = nil)
1103
- list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value!
1110
+ def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil)
1111
+ list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1104
1112
  end
1105
1113
 
1106
1114
  #
@@ -1117,7 +1125,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1117
1125
  #
1118
1126
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1119
1127
  #
1120
- def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers = nil)
1128
+ def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil)
1121
1129
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1122
1130
  fail ArgumentError, 'location is nil' if location.nil?
1123
1131
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
@@ -1125,6 +1133,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1125
1133
 
1126
1134
 
1127
1135
  request_headers = {}
1136
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1128
1137
 
1129
1138
  # Set Headers
1130
1139
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1185,8 +1194,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1185
1194
  #
1186
1195
  # @return [EventSubscriptionsListResult] operation results.
1187
1196
  #
1188
- def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers = nil)
1189
- response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value!
1197
+ def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil)
1198
+ response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1190
1199
  response.body unless response.nil?
1191
1200
  end
1192
1201
 
@@ -1206,8 +1215,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1206
1215
  #
1207
1216
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1208
1217
  #
1209
- def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers = nil)
1210
- list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value!
1218
+ def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil)
1219
+ list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1211
1220
  end
1212
1221
 
1213
1222
  #
@@ -1226,7 +1235,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1226
1235
  #
1227
1236
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1228
1237
  #
1229
- def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers = nil)
1238
+ def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil)
1230
1239
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1231
1240
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1232
1241
  fail ArgumentError, 'location is nil' if location.nil?
@@ -1235,6 +1244,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1235
1244
 
1236
1245
 
1237
1246
  request_headers = {}
1247
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1238
1248
 
1239
1249
  # Set Headers
1240
1250
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1294,8 +1304,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1294
1304
  #
1295
1305
  # @return [EventSubscriptionsListResult] operation results.
1296
1306
  #
1297
- def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1298
- response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
1307
+ def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1308
+ response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1299
1309
  response.body unless response.nil?
1300
1310
  end
1301
1311
 
@@ -1314,8 +1324,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1314
1324
  #
1315
1325
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1316
1326
  #
1317
- def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1318
- list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
1327
+ def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1328
+ list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1319
1329
  end
1320
1330
 
1321
1331
  #
@@ -1333,7 +1343,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1333
1343
  #
1334
1344
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1335
1345
  #
1336
- def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1346
+ def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1337
1347
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1338
1348
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1339
1349
  fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
@@ -1343,6 +1353,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1343
1353
 
1344
1354
 
1345
1355
  request_headers = {}
1356
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1346
1357
 
1347
1358
  # Set Headers
1348
1359
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1414,8 +1425,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1414
1425
  #
1415
1426
  # @return [EventSubscription] operation results.
1416
1427
  #
1417
- def begin_create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1418
- response = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
1428
+ def begin_create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1429
+ response = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1419
1430
  response.body unless response.nil?
1420
1431
  end
1421
1432
 
@@ -1446,8 +1457,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1446
1457
  #
1447
1458
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1448
1459
  #
1449
- def begin_create_or_update_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1450
- begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
1460
+ def begin_create_or_update_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1461
+ begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1451
1462
  end
1452
1463
 
1453
1464
  #
@@ -1477,7 +1488,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1477
1488
  #
1478
1489
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1479
1490
  #
1480
- def begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1491
+ def begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1481
1492
  fail ArgumentError, 'scope is nil' if scope.nil?
1482
1493
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1483
1494
  fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil?
@@ -1485,7 +1496,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1485
1496
 
1486
1497
 
1487
1498
  request_headers = {}
1488
-
1489
1499
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1490
1500
 
1491
1501
  # Set Headers
@@ -1559,8 +1569,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1559
1569
  # will be added to the HTTP request.
1560
1570
  #
1561
1571
  #
1562
- def begin_delete(scope, event_subscription_name, custom_headers = nil)
1563
- response = begin_delete_async(scope, event_subscription_name, custom_headers).value!
1572
+ def begin_delete(scope, event_subscription_name, custom_headers:nil)
1573
+ response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1564
1574
  nil
1565
1575
  end
1566
1576
 
@@ -1585,8 +1595,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1585
1595
  #
1586
1596
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1587
1597
  #
1588
- def begin_delete_with_http_info(scope, event_subscription_name, custom_headers = nil)
1589
- begin_delete_async(scope, event_subscription_name, custom_headers).value!
1598
+ def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil)
1599
+ begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1590
1600
  end
1591
1601
 
1592
1602
  #
@@ -1610,13 +1620,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1610
1620
  #
1611
1621
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1612
1622
  #
1613
- def begin_delete_async(scope, event_subscription_name, custom_headers = nil)
1623
+ def begin_delete_async(scope, event_subscription_name, custom_headers:nil)
1614
1624
  fail ArgumentError, 'scope is nil' if scope.nil?
1615
1625
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1616
1626
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1617
1627
 
1618
1628
 
1619
1629
  request_headers = {}
1630
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1620
1631
 
1621
1632
  # Set Headers
1622
1633
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1676,8 +1687,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1676
1687
  #
1677
1688
  # @return [EventSubscription] operation results.
1678
1689
  #
1679
- def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1680
- response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value!
1690
+ def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1691
+ response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1681
1692
  response.body unless response.nil?
1682
1693
  end
1683
1694
 
@@ -1705,8 +1716,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1705
1716
  #
1706
1717
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1707
1718
  #
1708
- def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1709
- begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value!
1719
+ def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1720
+ begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1710
1721
  end
1711
1722
 
1712
1723
  #
@@ -1733,7 +1744,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1733
1744
  #
1734
1745
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1735
1746
  #
1736
- def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1747
+ def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1737
1748
  fail ArgumentError, 'scope is nil' if scope.nil?
1738
1749
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1739
1750
  fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil?
@@ -1741,7 +1752,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1741
1752
 
1742
1753
 
1743
1754
  request_headers = {}
1744
-
1745
1755
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1746
1756
 
1747
1757
  # Set Headers