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 +5 -5
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +94 -84
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb +6 -5
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +18 -15
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb +54 -50
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +94 -84
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +6 -5
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +18 -15
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +63 -60
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +94 -84
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb +6 -5
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb +18 -15
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb +63 -60
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +16 -8
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -32,8 +32,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
32
32
|
#
|
33
33
|
# @return [OperationsListResult] operation results.
|
34
34
|
#
|
35
|
-
def list(custom_headers
|
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::V2017_06_15_preview
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def list_with_http_info(custom_headers
|
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::V2017_06_15_preview
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def list_async(custom_headers
|
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::V2017_06_15_preview
|
|
31
31
|
#
|
32
32
|
# @return [TopicTypesListResult] operation results.
|
33
33
|
#
|
34
|
-
def list(custom_headers
|
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::V2017_06_15_preview
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def list_with_http_info(custom_headers
|
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::V2017_06_15_preview
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def list_async(custom_headers
|
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::V2017_06_15_preview
|
|
119
120
|
#
|
120
121
|
# @return [TopicTypeInfo] operation results.
|
121
122
|
#
|
122
|
-
def get(topic_type_name, custom_headers
|
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::V2017_06_15_preview
|
|
135
136
|
#
|
136
137
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
137
138
|
#
|
138
|
-
def get_with_http_info(topic_type_name, custom_headers
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
211
213
|
#
|
212
214
|
# @return [EventTypesListResult] operation results.
|
213
215
|
#
|
214
|
-
def list_event_types(topic_type_name, custom_headers
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
34
34
|
#
|
35
35
|
# @return [Topic] operation results.
|
36
36
|
#
|
37
|
-
def get(resource_group_name, topic_name, custom_headers
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
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::V2017_06_15_preview
|
|
135
136
|
#
|
136
137
|
# @return [Topic] operation results.
|
137
138
|
#
|
138
|
-
def create_or_update(resource_group_name, topic_name, topic_info, custom_headers
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
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
|
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::V2017_06_15_preview
|
|
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
|
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.
|
@@ -221,8 +222,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
221
222
|
#
|
222
223
|
# @return [TopicsListResult] operation results.
|
223
224
|
#
|
224
|
-
def list_by_subscription(custom_headers
|
225
|
-
response = list_by_subscription_async(custom_headers).value!
|
225
|
+
def list_by_subscription(custom_headers:nil)
|
226
|
+
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
226
227
|
response.body unless response.nil?
|
227
228
|
end
|
228
229
|
|
@@ -236,8 +237,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
236
237
|
#
|
237
238
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
238
239
|
#
|
239
|
-
def list_by_subscription_with_http_info(custom_headers
|
240
|
-
list_by_subscription_async(custom_headers).value!
|
240
|
+
def list_by_subscription_with_http_info(custom_headers:nil)
|
241
|
+
list_by_subscription_async(custom_headers:custom_headers).value!
|
241
242
|
end
|
242
243
|
|
243
244
|
#
|
@@ -250,12 +251,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
250
251
|
#
|
251
252
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
252
253
|
#
|
253
|
-
def list_by_subscription_async(custom_headers
|
254
|
+
def list_by_subscription_async(custom_headers:nil)
|
254
255
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
255
256
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
256
257
|
|
257
258
|
|
258
259
|
request_headers = {}
|
260
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
259
261
|
|
260
262
|
# Set Headers
|
261
263
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -312,8 +314,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
312
314
|
#
|
313
315
|
# @return [TopicsListResult] operation results.
|
314
316
|
#
|
315
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
316
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
317
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
318
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
317
319
|
response.body unless response.nil?
|
318
320
|
end
|
319
321
|
|
@@ -329,8 +331,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
329
331
|
#
|
330
332
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
333
|
#
|
332
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
333
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
334
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
335
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
334
336
|
end
|
335
337
|
|
336
338
|
#
|
@@ -345,13 +347,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
345
347
|
#
|
346
348
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
347
349
|
#
|
348
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
350
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
349
351
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
350
352
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
351
353
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
352
354
|
|
353
355
|
|
354
356
|
request_headers = {}
|
357
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
355
358
|
|
356
359
|
# Set Headers
|
357
360
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -409,8 +412,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
409
412
|
#
|
410
413
|
# @return [TopicSharedAccessKeys] operation results.
|
411
414
|
#
|
412
|
-
def list_shared_access_keys(resource_group_name, topic_name, custom_headers
|
413
|
-
response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value!
|
415
|
+
def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
|
416
|
+
response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
414
417
|
response.body unless response.nil?
|
415
418
|
end
|
416
419
|
|
@@ -427,8 +430,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
427
430
|
#
|
428
431
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
429
432
|
#
|
430
|
-
def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers
|
431
|
-
list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value!
|
433
|
+
def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
434
|
+
list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
432
435
|
end
|
433
436
|
|
434
437
|
#
|
@@ -444,7 +447,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
444
447
|
#
|
445
448
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
446
449
|
#
|
447
|
-
def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers
|
450
|
+
def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
|
448
451
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
449
452
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
450
453
|
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
@@ -452,6 +455,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
452
455
|
|
453
456
|
|
454
457
|
request_headers = {}
|
458
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
455
459
|
|
456
460
|
# Set Headers
|
457
461
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -511,8 +515,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
511
515
|
#
|
512
516
|
# @return [TopicSharedAccessKeys] operation results.
|
513
517
|
#
|
514
|
-
def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers
|
515
|
-
response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value!
|
518
|
+
def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
519
|
+
response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
516
520
|
response.body unless response.nil?
|
517
521
|
end
|
518
522
|
|
@@ -531,8 +535,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
531
535
|
#
|
532
536
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
533
537
|
#
|
534
|
-
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers
|
535
|
-
regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value!
|
538
|
+
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
539
|
+
regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
536
540
|
end
|
537
541
|
|
538
542
|
#
|
@@ -550,7 +554,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
550
554
|
#
|
551
555
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
552
556
|
#
|
553
|
-
def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers
|
557
|
+
def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
554
558
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
555
559
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
556
560
|
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
@@ -559,7 +563,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
559
563
|
|
560
564
|
|
561
565
|
request_headers = {}
|
562
|
-
|
563
566
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
564
567
|
|
565
568
|
# Set Headers
|
@@ -627,8 +630,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
627
630
|
#
|
628
631
|
# @return [EventTypesListResult] operation results.
|
629
632
|
#
|
630
|
-
def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers
|
631
|
-
response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
|
633
|
+
def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
634
|
+
response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
632
635
|
response.body unless response.nil?
|
633
636
|
end
|
634
637
|
|
@@ -647,8 +650,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
647
650
|
#
|
648
651
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
649
652
|
#
|
650
|
-
def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers
|
651
|
-
list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value!
|
653
|
+
def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
654
|
+
list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
652
655
|
end
|
653
656
|
|
654
657
|
#
|
@@ -666,7 +669,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
666
669
|
#
|
667
670
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
668
671
|
#
|
669
|
-
def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers
|
672
|
+
def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
670
673
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
671
674
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
672
675
|
fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
|
@@ -676,6 +679,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
676
679
|
|
677
680
|
|
678
681
|
request_headers = {}
|
682
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
679
683
|
|
680
684
|
# Set Headers
|
681
685
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -734,8 +738,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
734
738
|
#
|
735
739
|
# @return [Topic] operation results.
|
736
740
|
#
|
737
|
-
def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers
|
738
|
-
response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value!
|
741
|
+
def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
742
|
+
response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
739
743
|
response.body unless response.nil?
|
740
744
|
end
|
741
745
|
|
@@ -753,8 +757,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
753
757
|
#
|
754
758
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
755
759
|
#
|
756
|
-
def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers
|
757
|
-
begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value!
|
760
|
+
def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
761
|
+
begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
758
762
|
end
|
759
763
|
|
760
764
|
#
|
@@ -771,7 +775,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
771
775
|
#
|
772
776
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
773
777
|
#
|
774
|
-
def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers
|
778
|
+
def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
775
779
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
776
780
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
777
781
|
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
@@ -780,7 +784,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
780
784
|
|
781
785
|
|
782
786
|
request_headers = {}
|
783
|
-
|
784
787
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
785
788
|
|
786
789
|
# Set Headers
|
@@ -845,8 +848,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
845
848
|
# will be added to the HTTP request.
|
846
849
|
#
|
847
850
|
#
|
848
|
-
def begin_delete(resource_group_name, topic_name, custom_headers
|
849
|
-
response = begin_delete_async(resource_group_name, topic_name, custom_headers).value!
|
851
|
+
def begin_delete(resource_group_name, topic_name, custom_headers:nil)
|
852
|
+
response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
850
853
|
nil
|
851
854
|
end
|
852
855
|
|
@@ -863,8 +866,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
863
866
|
#
|
864
867
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
865
868
|
#
|
866
|
-
def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers
|
867
|
-
begin_delete_async(resource_group_name, topic_name, custom_headers).value!
|
869
|
+
def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
870
|
+
begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
868
871
|
end
|
869
872
|
|
870
873
|
#
|
@@ -880,7 +883,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
880
883
|
#
|
881
884
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
882
885
|
#
|
883
|
-
def begin_delete_async(resource_group_name, topic_name, custom_headers
|
886
|
+
def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
|
884
887
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
885
888
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
886
889
|
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
@@ -888,6 +891,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
|
|
888
891
|
|
889
892
|
|
890
893
|
request_headers = {}
|
894
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
891
895
|
|
892
896
|
# Set Headers
|
893
897
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|