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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 85b434d4278fa557096a2672669dd9cabe086601
4
- data.tar.gz: 3c3331b55c29ef58ef180fe4a55e135e18ed87ca
2
+ SHA256:
3
+ metadata.gz: 8b105b72189c46089d2f139abbcde9b4591d69ef506259835e86e5ccfe883877
4
+ data.tar.gz: 6a262f9604268cf815629c077082f149389b9c0c12911b073c96476dd918532a
5
5
  SHA512:
6
- metadata.gz: a23d16a5b5c3b52ea8e1918bcc0dea747a4f0482724e9ee721f22eab3a9b56a85ee47d53fab0658790fb079fc15c8a7975b244e4a004bc2e6529f186ceccfa33
7
- data.tar.gz: 7c51f93567ffb981e10dfaf6a0980ee78afc3992ed4434d7c57597a17c4c66b332dfa8e5f65ceeedbd89235c9187fd883fc3608e956b6c53fe77271d72ab5137
6
+ metadata.gz: f9c7f7e4d983067fa2edf148dd716a273186fb9c57bc687b5ffb08e894b0e5fdfd421bc7081c82bf6e12fa4650c5d353e9c2c0238ae6d842f38f9260822148fa
7
+ data.tar.gz: deabae56c20ad3efdacd50237adec75cc4d9ffae0b057596144cb262e2e23a7ade5291965ecb7413aa6514b422e0086445d7a58b57681557bffbabe932f88e6b
@@ -137,7 +137,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
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::V2017_06_15_preview
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::V2017_06_15_preview
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::V2017_06_15_preview
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
@@ -173,8 +174,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
173
174
  #
174
175
  # @return [EventSubscription] operation results.
175
176
  #
176
- def create(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
177
- response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
177
+ def create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
178
+ response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
178
179
  response.body unless response.nil?
179
180
  end
180
181
 
@@ -201,9 +202,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
201
202
  # @return [Concurrent::Promise] promise which provides async access to http
202
203
  # response.
203
204
  #
204
- def create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
205
+ def create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
205
206
  # Send request
206
- promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers)
207
+ promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers)
207
208
 
208
209
  promise = promise.then do |response|
209
210
  # Defining deserialization method.
@@ -238,8 +239,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
238
239
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
239
240
  # will be added to the HTTP request.
240
241
  #
241
- def delete(scope, event_subscription_name, custom_headers = nil)
242
- response = delete_async(scope, event_subscription_name, custom_headers).value!
242
+ def delete(scope, event_subscription_name, custom_headers:nil)
243
+ response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
243
244
  nil
244
245
  end
245
246
 
@@ -261,9 +262,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
261
262
  # @return [Concurrent::Promise] promise which provides async access to http
262
263
  # response.
263
264
  #
264
- def delete_async(scope, event_subscription_name, custom_headers = nil)
265
+ def delete_async(scope, event_subscription_name, custom_headers:nil)
265
266
  # Send request
266
- promise = begin_delete_async(scope, event_subscription_name, custom_headers)
267
+ promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers)
267
268
 
268
269
  promise = promise.then do |response|
269
270
  # Defining deserialization method.
@@ -301,8 +302,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
301
302
  #
302
303
  # @return [EventSubscription] operation results.
303
304
  #
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).value!
305
+ def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
306
+ response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
306
307
  response.body unless response.nil?
307
308
  end
308
309
 
@@ -327,9 +328,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
327
328
  # @return [Concurrent::Promise] promise which provides async access to http
328
329
  # response.
329
330
  #
330
- def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
331
+ def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
331
332
  # Send request
332
- promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers)
333
+ promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers)
333
334
 
334
335
  promise = promise.then do |response|
335
336
  # Defining deserialization method.
@@ -366,8 +367,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
366
367
  #
367
368
  # @return [EventSubscriptionFullUrl] operation results.
368
369
  #
369
- def get_full_url(scope, event_subscription_name, custom_headers = nil)
370
- response = get_full_url_async(scope, event_subscription_name, custom_headers).value!
370
+ def get_full_url(scope, event_subscription_name, custom_headers:nil)
371
+ response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
371
372
  response.body unless response.nil?
372
373
  end
373
374
 
@@ -392,8 +393,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
392
393
  #
393
394
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
394
395
  #
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).value!
396
+ def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil)
397
+ get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
397
398
  end
398
399
 
399
400
  #
@@ -417,13 +418,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
417
418
  #
418
419
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
419
420
  #
420
- def get_full_url_async(scope, event_subscription_name, custom_headers = nil)
421
+ def get_full_url_async(scope, event_subscription_name, custom_headers:nil)
421
422
  fail ArgumentError, 'scope is nil' if scope.nil?
422
423
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
423
424
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
424
425
 
425
426
 
426
427
  request_headers = {}
428
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
427
429
 
428
430
  # Set Headers
429
431
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -481,8 +483,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
481
483
  #
482
484
  # @return [EventSubscriptionsListResult] operation results.
483
485
  #
484
- def list_global_by_subscription(custom_headers = nil)
485
- response = list_global_by_subscription_async(custom_headers).value!
486
+ def list_global_by_subscription(custom_headers:nil)
487
+ response = list_global_by_subscription_async(custom_headers:custom_headers).value!
486
488
  response.body unless response.nil?
487
489
  end
488
490
 
@@ -498,8 +500,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
498
500
  #
499
501
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
500
502
  #
501
- def list_global_by_subscription_with_http_info(custom_headers = nil)
502
- list_global_by_subscription_async(custom_headers).value!
503
+ def list_global_by_subscription_with_http_info(custom_headers:nil)
504
+ list_global_by_subscription_async(custom_headers:custom_headers).value!
503
505
  end
504
506
 
505
507
  #
@@ -514,12 +516,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
514
516
  #
515
517
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
516
518
  #
517
- def list_global_by_subscription_async(custom_headers = nil)
519
+ def list_global_by_subscription_async(custom_headers:nil)
518
520
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
519
521
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
520
522
 
521
523
 
522
524
  request_headers = {}
525
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
523
526
 
524
527
  # Set Headers
525
528
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -576,8 +579,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
576
579
  #
577
580
  # @return [EventSubscriptionsListResult] operation results.
578
581
  #
579
- def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers = nil)
580
- response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value!
582
+ def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil)
583
+ response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
581
584
  response.body unless response.nil?
582
585
  end
583
586
 
@@ -593,8 +596,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
593
596
  #
594
597
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
595
598
  #
596
- def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers = nil)
597
- list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value!
599
+ def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil)
600
+ list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
598
601
  end
599
602
 
600
603
  #
@@ -609,13 +612,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
609
612
  #
610
613
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
611
614
  #
612
- def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers = nil)
615
+ def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil)
613
616
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
614
617
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
615
618
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
616
619
 
617
620
 
618
621
  request_headers = {}
622
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
619
623
 
620
624
  # Set Headers
621
625
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -674,8 +678,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
674
678
  #
675
679
  # @return [EventSubscriptionsListResult] operation results.
676
680
  #
677
- def list_global_by_resource_group(resource_group_name, custom_headers = nil)
678
- response = list_global_by_resource_group_async(resource_group_name, custom_headers).value!
681
+ def list_global_by_resource_group(resource_group_name, custom_headers:nil)
682
+ response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
679
683
  response.body unless response.nil?
680
684
  end
681
685
 
@@ -693,8 +697,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
693
697
  #
694
698
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
695
699
  #
696
- def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
697
- list_global_by_resource_group_async(resource_group_name, custom_headers).value!
700
+ def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
701
+ list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
698
702
  end
699
703
 
700
704
  #
@@ -711,13 +715,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
711
715
  #
712
716
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
713
717
  #
714
- def list_global_by_resource_group_async(resource_group_name, custom_headers = nil)
718
+ def list_global_by_resource_group_async(resource_group_name, custom_headers:nil)
715
719
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
716
720
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
717
721
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
718
722
 
719
723
 
720
724
  request_headers = {}
725
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
721
726
 
722
727
  # Set Headers
723
728
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -776,8 +781,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
776
781
  #
777
782
  # @return [EventSubscriptionsListResult] operation results.
778
783
  #
779
- def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers = nil)
780
- response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value!
784
+ def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil)
785
+ response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
781
786
  response.body unless response.nil?
782
787
  end
783
788
 
@@ -795,8 +800,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
795
800
  #
796
801
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
797
802
  #
798
- def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers = nil)
799
- list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value!
803
+ def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil)
804
+ list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
800
805
  end
801
806
 
802
807
  #
@@ -813,7 +818,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
813
818
  #
814
819
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
815
820
  #
816
- def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers = nil)
821
+ def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil)
817
822
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
818
823
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
819
824
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
@@ -821,6 +826,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
821
826
 
822
827
 
823
828
  request_headers = {}
829
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
824
830
 
825
831
  # Set Headers
826
832
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -877,8 +883,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
877
883
  #
878
884
  # @return [EventSubscriptionsListResult] operation results.
879
885
  #
880
- def list_regional_by_subscription(location, custom_headers = nil)
881
- response = list_regional_by_subscription_async(location, custom_headers).value!
886
+ def list_regional_by_subscription(location, custom_headers:nil)
887
+ response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
882
888
  response.body unless response.nil?
883
889
  end
884
890
 
@@ -894,8 +900,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
894
900
  #
895
901
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
896
902
  #
897
- def list_regional_by_subscription_with_http_info(location, custom_headers = nil)
898
- list_regional_by_subscription_async(location, custom_headers).value!
903
+ def list_regional_by_subscription_with_http_info(location, custom_headers:nil)
904
+ list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
899
905
  end
900
906
 
901
907
  #
@@ -910,13 +916,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
910
916
  #
911
917
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
912
918
  #
913
- def list_regional_by_subscription_async(location, custom_headers = nil)
919
+ def list_regional_by_subscription_async(location, custom_headers:nil)
914
920
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
915
921
  fail ArgumentError, 'location is nil' if location.nil?
916
922
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
917
923
 
918
924
 
919
925
  request_headers = {}
926
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
920
927
 
921
928
  # Set Headers
922
929
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -976,8 +983,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
976
983
  #
977
984
  # @return [EventSubscriptionsListResult] operation results.
978
985
  #
979
- def list_regional_by_resource_group(resource_group_name, location, custom_headers = nil)
980
- response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value!
986
+ def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil)
987
+ response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
981
988
  response.body unless response.nil?
982
989
  end
983
990
 
@@ -996,8 +1003,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
996
1003
  #
997
1004
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
998
1005
  #
999
- def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers = nil)
1000
- list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value!
1006
+ def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil)
1007
+ list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1001
1008
  end
1002
1009
 
1003
1010
  #
@@ -1015,7 +1022,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1015
1022
  #
1016
1023
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1017
1024
  #
1018
- def list_regional_by_resource_group_async(resource_group_name, location, custom_headers = nil)
1025
+ def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil)
1019
1026
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1020
1027
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1021
1028
  fail ArgumentError, 'location is nil' if location.nil?
@@ -1023,6 +1030,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1023
1030
 
1024
1031
 
1025
1032
  request_headers = {}
1033
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1026
1034
 
1027
1035
  # Set Headers
1028
1036
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1081,8 +1089,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1081
1089
  #
1082
1090
  # @return [EventSubscriptionsListResult] operation results.
1083
1091
  #
1084
- def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers = nil)
1085
- response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value!
1092
+ def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil)
1093
+ response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1086
1094
  response.body unless response.nil?
1087
1095
  end
1088
1096
 
@@ -1100,8 +1108,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1100
1108
  #
1101
1109
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1102
1110
  #
1103
- def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers = nil)
1104
- list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value!
1111
+ def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil)
1112
+ list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1105
1113
  end
1106
1114
 
1107
1115
  #
@@ -1118,7 +1126,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1118
1126
  #
1119
1127
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1120
1128
  #
1121
- def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers = nil)
1129
+ def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil)
1122
1130
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1123
1131
  fail ArgumentError, 'location is nil' if location.nil?
1124
1132
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
@@ -1126,6 +1134,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1126
1134
 
1127
1135
 
1128
1136
  request_headers = {}
1137
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1129
1138
 
1130
1139
  # Set Headers
1131
1140
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1186,8 +1195,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1186
1195
  #
1187
1196
  # @return [EventSubscriptionsListResult] operation results.
1188
1197
  #
1189
- def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers = nil)
1190
- response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value!
1198
+ def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil)
1199
+ response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1191
1200
  response.body unless response.nil?
1192
1201
  end
1193
1202
 
@@ -1207,8 +1216,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1207
1216
  #
1208
1217
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1209
1218
  #
1210
- def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers = nil)
1211
- list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value!
1219
+ def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil)
1220
+ list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1212
1221
  end
1213
1222
 
1214
1223
  #
@@ -1227,7 +1236,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1227
1236
  #
1228
1237
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1229
1238
  #
1230
- def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers = nil)
1239
+ def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil)
1231
1240
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1232
1241
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1233
1242
  fail ArgumentError, 'location is nil' if location.nil?
@@ -1236,6 +1245,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1236
1245
 
1237
1246
 
1238
1247
  request_headers = {}
1248
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1239
1249
 
1240
1250
  # Set Headers
1241
1251
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1295,8 +1305,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1295
1305
  #
1296
1306
  # @return [EventSubscriptionsListResult] operation results.
1297
1307
  #
1298
- def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1299
- response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
1308
+ def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1309
+ response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1300
1310
  response.body unless response.nil?
1301
1311
  end
1302
1312
 
@@ -1315,8 +1325,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1315
1325
  #
1316
1326
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1317
1327
  #
1318
- def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1319
- list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
1328
+ def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1329
+ list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1320
1330
  end
1321
1331
 
1322
1332
  #
@@ -1334,7 +1344,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1334
1344
  #
1335
1345
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1336
1346
  #
1337
- def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
1347
+ def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1338
1348
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1339
1349
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1340
1350
  fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
@@ -1344,6 +1354,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1344
1354
 
1345
1355
 
1346
1356
  request_headers = {}
1357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1347
1358
 
1348
1359
  # Set Headers
1349
1360
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1416,8 +1427,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1416
1427
  #
1417
1428
  # @return [EventSubscription] operation results.
1418
1429
  #
1419
- def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1420
- response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
1430
+ def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1431
+ response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1421
1432
  response.body unless response.nil?
1422
1433
  end
1423
1434
 
@@ -1449,8 +1460,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1449
1460
  #
1450
1461
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1451
1462
  #
1452
- def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1453
- begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value!
1463
+ def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1464
+ begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1454
1465
  end
1455
1466
 
1456
1467
  #
@@ -1481,7 +1492,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1481
1492
  #
1482
1493
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1483
1494
  #
1484
- def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil)
1495
+ def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1485
1496
  fail ArgumentError, 'scope is nil' if scope.nil?
1486
1497
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1487
1498
  fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil?
@@ -1489,7 +1500,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1489
1500
 
1490
1501
 
1491
1502
  request_headers = {}
1492
-
1493
1503
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1494
1504
 
1495
1505
  # Set Headers
@@ -1563,8 +1573,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1563
1573
  # will be added to the HTTP request.
1564
1574
  #
1565
1575
  #
1566
- def begin_delete(scope, event_subscription_name, custom_headers = nil)
1567
- response = begin_delete_async(scope, event_subscription_name, custom_headers).value!
1576
+ def begin_delete(scope, event_subscription_name, custom_headers:nil)
1577
+ response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1568
1578
  nil
1569
1579
  end
1570
1580
 
@@ -1589,8 +1599,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1589
1599
  #
1590
1600
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1591
1601
  #
1592
- def begin_delete_with_http_info(scope, event_subscription_name, custom_headers = nil)
1593
- begin_delete_async(scope, event_subscription_name, custom_headers).value!
1602
+ def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil)
1603
+ begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1594
1604
  end
1595
1605
 
1596
1606
  #
@@ -1614,13 +1624,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1614
1624
  #
1615
1625
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1616
1626
  #
1617
- def begin_delete_async(scope, event_subscription_name, custom_headers = nil)
1627
+ def begin_delete_async(scope, event_subscription_name, custom_headers:nil)
1618
1628
  fail ArgumentError, 'scope is nil' if scope.nil?
1619
1629
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1620
1630
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1621
1631
 
1622
1632
 
1623
1633
  request_headers = {}
1634
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1624
1635
 
1625
1636
  # Set Headers
1626
1637
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1680,8 +1691,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1680
1691
  #
1681
1692
  # @return [EventSubscription] operation results.
1682
1693
  #
1683
- def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1684
- response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value!
1694
+ def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1695
+ response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1685
1696
  response.body unless response.nil?
1686
1697
  end
1687
1698
 
@@ -1709,8 +1720,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1709
1720
  #
1710
1721
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1711
1722
  #
1712
- def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1713
- begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value!
1723
+ def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1724
+ begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1714
1725
  end
1715
1726
 
1716
1727
  #
@@ -1737,7 +1748,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1737
1748
  #
1738
1749
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1739
1750
  #
1740
- def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil)
1751
+ def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1741
1752
  fail ArgumentError, 'scope is nil' if scope.nil?
1742
1753
  fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1743
1754
  fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil?
@@ -1745,7 +1756,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
1745
1756
 
1746
1757
 
1747
1758
  request_headers = {}
1748
-
1749
1759
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1750
1760
 
1751
1761
  # Set Headers