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.
@@ -32,8 +32,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
32
32
  #
33
33
  # @return [OperationsListResult] operation results.
34
34
  #
35
- def list(custom_headers = nil)
36
- response = list_async(custom_headers).value!
35
+ def list(custom_headers:nil)
36
+ response = list_async(custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def list_with_http_info(custom_headers = nil)
52
- list_async(custom_headers).value!
51
+ def list_with_http_info(custom_headers:nil)
52
+ list_async(custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,11 +63,12 @@ module Azure::EventGrid::Mgmt::V2018_01_01
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_async(custom_headers = nil)
66
+ def list_async(custom_headers:nil)
67
67
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
68
 
69
69
 
70
70
  request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
72
 
72
73
  # Set Headers
73
74
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -31,8 +31,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
31
31
  #
32
32
  # @return [TopicTypesListResult] operation results.
33
33
  #
34
- def list(custom_headers = nil)
35
- response = list_async(custom_headers).value!
34
+ def list(custom_headers:nil)
35
+ response = list_async(custom_headers:custom_headers).value!
36
36
  response.body unless response.nil?
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(custom_headers = nil)
50
- list_async(custom_headers).value!
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,11 +60,12 @@ module Azure::EventGrid::Mgmt::V2018_01_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(custom_headers = nil)
63
+ def list_async(custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
 
66
66
 
67
67
  request_headers = {}
68
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
68
69
 
69
70
  # Set Headers
70
71
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -119,8 +120,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
119
120
  #
120
121
  # @return [TopicTypeInfo] operation results.
121
122
  #
122
- def get(topic_type_name, custom_headers = nil)
123
- response = get_async(topic_type_name, custom_headers).value!
123
+ def get(topic_type_name, custom_headers:nil)
124
+ response = get_async(topic_type_name, custom_headers:custom_headers).value!
124
125
  response.body unless response.nil?
125
126
  end
126
127
 
@@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
135
136
  #
136
137
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
137
138
  #
138
- def get_with_http_info(topic_type_name, custom_headers = nil)
139
- get_async(topic_type_name, custom_headers).value!
139
+ def get_with_http_info(topic_type_name, custom_headers:nil)
140
+ get_async(topic_type_name, custom_headers:custom_headers).value!
140
141
  end
141
142
 
142
143
  #
@@ -150,12 +151,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01
150
151
  #
151
152
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
152
153
  #
153
- def get_async(topic_type_name, custom_headers = nil)
154
+ def get_async(topic_type_name, custom_headers:nil)
154
155
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
155
156
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
156
157
 
157
158
 
158
159
  request_headers = {}
160
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
159
161
 
160
162
  # Set Headers
161
163
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -211,8 +213,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
211
213
  #
212
214
  # @return [EventTypesListResult] operation results.
213
215
  #
214
- def list_event_types(topic_type_name, custom_headers = nil)
215
- response = list_event_types_async(topic_type_name, custom_headers).value!
216
+ def list_event_types(topic_type_name, custom_headers:nil)
217
+ response = list_event_types_async(topic_type_name, custom_headers:custom_headers).value!
216
218
  response.body unless response.nil?
217
219
  end
218
220
 
@@ -227,8 +229,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
227
229
  #
228
230
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
229
231
  #
230
- def list_event_types_with_http_info(topic_type_name, custom_headers = nil)
231
- list_event_types_async(topic_type_name, custom_headers).value!
232
+ def list_event_types_with_http_info(topic_type_name, custom_headers:nil)
233
+ list_event_types_async(topic_type_name, custom_headers:custom_headers).value!
232
234
  end
233
235
 
234
236
  #
@@ -242,12 +244,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01
242
244
  #
243
245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
244
246
  #
245
- def list_event_types_async(topic_type_name, custom_headers = nil)
247
+ def list_event_types_async(topic_type_name, custom_headers:nil)
246
248
  fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
247
249
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
248
250
 
249
251
 
250
252
  request_headers = {}
253
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
251
254
 
252
255
  # Set Headers
253
256
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -34,8 +34,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
34
34
  #
35
35
  # @return [Topic] operation results.
36
36
  #
37
- def get(resource_group_name, topic_name, custom_headers = nil)
38
- response = get_async(resource_group_name, topic_name, custom_headers).value!
37
+ def get(resource_group_name, topic_name, custom_headers:nil)
38
+ response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -52,8 +52,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def get_with_http_info(resource_group_name, topic_name, custom_headers = nil)
56
- get_async(resource_group_name, topic_name, custom_headers).value!
55
+ def get_with_http_info(resource_group_name, topic_name, custom_headers:nil)
56
+ get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
@@ -69,7 +69,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_async(resource_group_name, topic_name, custom_headers = nil)
72
+ def get_async(resource_group_name, topic_name, custom_headers:nil)
73
73
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
74
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
75
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -77,6 +77,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
77
77
 
78
78
 
79
79
  request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
81
 
81
82
  # Set Headers
82
83
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
135
136
  #
136
137
  # @return [Topic] operation results.
137
138
  #
138
- def create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil)
139
- response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value!
139
+ def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
140
+ response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
140
141
  response.body unless response.nil?
141
142
  end
142
143
 
@@ -151,9 +152,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
151
152
  # @return [Concurrent::Promise] promise which provides async access to http
152
153
  # response.
153
154
  #
154
- def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil)
155
+ def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
155
156
  # Send request
156
- promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers)
157
+ promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers)
157
158
 
158
159
  promise = promise.then do |response|
159
160
  # Defining deserialization method.
@@ -180,8 +181,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
180
181
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
181
182
  # will be added to the HTTP request.
182
183
  #
183
- def delete(resource_group_name, topic_name, custom_headers = nil)
184
- response = delete_async(resource_group_name, topic_name, custom_headers).value!
184
+ def delete(resource_group_name, topic_name, custom_headers:nil)
185
+ response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
185
186
  nil
186
187
  end
187
188
 
@@ -195,9 +196,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
195
196
  # @return [Concurrent::Promise] promise which provides async access to http
196
197
  # response.
197
198
  #
198
- def delete_async(resource_group_name, topic_name, custom_headers = nil)
199
+ def delete_async(resource_group_name, topic_name, custom_headers:nil)
199
200
  # Send request
200
- promise = begin_delete_async(resource_group_name, topic_name, custom_headers)
201
+ promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers)
201
202
 
202
203
  promise = promise.then do |response|
203
204
  # Defining deserialization method.
@@ -226,8 +227,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
226
227
  #
227
228
  # @return [Topic] operation results.
228
229
  #
229
- def update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil)
230
- response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value!
230
+ def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
231
+ response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
231
232
  response.body unless response.nil?
232
233
  end
233
234
 
@@ -243,9 +244,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01
243
244
  # @return [Concurrent::Promise] promise which provides async access to http
244
245
  # response.
245
246
  #
246
- def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil)
247
+ def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
247
248
  # Send request
248
- promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers)
249
+ promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers)
249
250
 
250
251
  promise = promise.then do |response|
251
252
  # Defining deserialization method.
@@ -271,8 +272,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
271
272
  #
272
273
  # @return [TopicsListResult] operation results.
273
274
  #
274
- def list_by_subscription(custom_headers = nil)
275
- response = list_by_subscription_async(custom_headers).value!
275
+ def list_by_subscription(custom_headers:nil)
276
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
276
277
  response.body unless response.nil?
277
278
  end
278
279
 
@@ -286,8 +287,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
286
287
  #
287
288
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
288
289
  #
289
- def list_by_subscription_with_http_info(custom_headers = nil)
290
- list_by_subscription_async(custom_headers).value!
290
+ def list_by_subscription_with_http_info(custom_headers:nil)
291
+ list_by_subscription_async(custom_headers:custom_headers).value!
291
292
  end
292
293
 
293
294
  #
@@ -300,12 +301,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01
300
301
  #
301
302
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
302
303
  #
303
- def list_by_subscription_async(custom_headers = nil)
304
+ def list_by_subscription_async(custom_headers:nil)
304
305
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
305
306
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
306
307
 
307
308
 
308
309
  request_headers = {}
310
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
309
311
 
310
312
  # Set Headers
311
313
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -362,8 +364,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
362
364
  #
363
365
  # @return [TopicsListResult] operation results.
364
366
  #
365
- def list_by_resource_group(resource_group_name, custom_headers = nil)
366
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
367
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
368
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
367
369
  response.body unless response.nil?
368
370
  end
369
371
 
@@ -379,8 +381,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
379
381
  #
380
382
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
381
383
  #
382
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
383
- list_by_resource_group_async(resource_group_name, custom_headers).value!
384
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
385
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
384
386
  end
385
387
 
386
388
  #
@@ -395,13 +397,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01
395
397
  #
396
398
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
397
399
  #
398
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
400
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
399
401
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
400
402
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
401
403
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
404
 
403
405
 
404
406
  request_headers = {}
407
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
405
408
 
406
409
  # Set Headers
407
410
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -459,8 +462,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
459
462
  #
460
463
  # @return [TopicSharedAccessKeys] operation results.
461
464
  #
462
- def list_shared_access_keys(resource_group_name, topic_name, custom_headers = nil)
463
- response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value!
465
+ def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
466
+ response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
464
467
  response.body unless response.nil?
465
468
  end
466
469
 
@@ -477,8 +480,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
477
480
  #
478
481
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
479
482
  #
480
- def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers = nil)
481
- list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value!
483
+ def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
484
+ list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
482
485
  end
483
486
 
484
487
  #
@@ -494,7 +497,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
494
497
  #
495
498
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
496
499
  #
497
- def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers = nil)
500
+ def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
498
501
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
499
502
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
500
503
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -502,6 +505,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
502
505
 
503
506
 
504
507
  request_headers = {}
508
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
505
509
 
506
510
  # Set Headers
507
511
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -561,8 +565,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
561
565
  #
562
566
  # @return [TopicSharedAccessKeys] operation results.
563
567
  #
564
- def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil)
565
- response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value!
568
+ def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
569
+ response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
566
570
  response.body unless response.nil?
567
571
  end
568
572
 
@@ -581,8 +585,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
581
585
  #
582
586
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
583
587
  #
584
- def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil)
585
- regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value!
588
+ def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
589
+ regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
586
590
  end
587
591
 
588
592
  #
@@ -600,7 +604,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
600
604
  #
601
605
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
602
606
  #
603
- def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil)
607
+ def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
604
608
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
605
609
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
606
610
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -609,7 +613,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01
609
613
 
610
614
 
611
615
  request_headers = {}
612
-
613
616
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
614
617
 
615
618
  # Set Headers
@@ -677,8 +680,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
677
680
  #
678
681
  # @return [EventTypesListResult] operation results.
679
682
  #
680
- def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
681
- response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
683
+ def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
684
+ response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
682
685
  response.body unless response.nil?
683
686
  end
684
687
 
@@ -697,8 +700,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
697
700
  #
698
701
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
699
702
  #
700
- def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
701
- list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
703
+ def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
704
+ list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
702
705
  end
703
706
 
704
707
  #
@@ -716,7 +719,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
716
719
  #
717
720
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
718
721
  #
719
- def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil)
722
+ def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
720
723
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
721
724
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
722
725
  fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
@@ -726,6 +729,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
726
729
 
727
730
 
728
731
  request_headers = {}
732
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
729
733
 
730
734
  # Set Headers
731
735
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -784,8 +788,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
784
788
  #
785
789
  # @return [Topic] operation results.
786
790
  #
787
- def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil)
788
- response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value!
791
+ def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
792
+ response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
789
793
  response.body unless response.nil?
790
794
  end
791
795
 
@@ -803,8 +807,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
803
807
  #
804
808
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
805
809
  #
806
- def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers = nil)
807
- begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value!
810
+ def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
811
+ begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
808
812
  end
809
813
 
810
814
  #
@@ -821,7 +825,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
821
825
  #
822
826
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
823
827
  #
824
- def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil)
828
+ def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
825
829
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
826
830
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
827
831
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -830,7 +834,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01
830
834
 
831
835
 
832
836
  request_headers = {}
833
-
834
837
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
835
838
 
836
839
  # Set Headers
@@ -895,8 +898,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
895
898
  # will be added to the HTTP request.
896
899
  #
897
900
  #
898
- def begin_delete(resource_group_name, topic_name, custom_headers = nil)
899
- response = begin_delete_async(resource_group_name, topic_name, custom_headers).value!
901
+ def begin_delete(resource_group_name, topic_name, custom_headers:nil)
902
+ response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
900
903
  nil
901
904
  end
902
905
 
@@ -913,8 +916,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
913
916
  #
914
917
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
915
918
  #
916
- def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers = nil)
917
- begin_delete_async(resource_group_name, topic_name, custom_headers).value!
919
+ def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
920
+ begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
918
921
  end
919
922
 
920
923
  #
@@ -930,7 +933,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
930
933
  #
931
934
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
932
935
  #
933
- def begin_delete_async(resource_group_name, topic_name, custom_headers = nil)
936
+ def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
934
937
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
935
938
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
936
939
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -938,6 +941,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
938
941
 
939
942
 
940
943
  request_headers = {}
944
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
941
945
 
942
946
  # Set Headers
943
947
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -987,8 +991,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
987
991
  #
988
992
  # @return [Topic] operation results.
989
993
  #
990
- def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil)
991
- response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value!
994
+ def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
995
+ response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
992
996
  response.body unless response.nil?
993
997
  end
994
998
 
@@ -1007,8 +1011,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1007
1011
  #
1008
1012
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1009
1013
  #
1010
- def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil)
1011
- begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value!
1014
+ def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1015
+ begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
1012
1016
  end
1013
1017
 
1014
1018
  #
@@ -1026,7 +1030,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1026
1030
  #
1027
1031
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1028
1032
  #
1029
- def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil)
1033
+ def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1030
1034
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1031
1035
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1032
1036
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
@@ -1035,7 +1039,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01
1035
1039
 
1036
1040
 
1037
1041
  request_headers = {}
1038
-
1039
1042
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1040
1043
 
1041
1044
  # Set Headers