azure_mgmt_monitor 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +39 -37
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +6 -5
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +12 -10
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +30 -29
- data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +30 -29
- data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +18 -19
- data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +10 -6
- data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +145 -34
- data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +36 -34
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +63 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +13 -11
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +25 -23
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/{monitor_client.rb → monitor_management_client.rb} +6 -3
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +37 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +275 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +127 -0
- data/lib/azure_mgmt_monitor.rb +1 -0
- data/lib/profiles/latest/modules/monitor_profile_module.rb +329 -243
- data/lib/profiles/latest/monitor_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/monitor_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +21 -4
@@ -29,8 +29,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
29
29
|
# will be added to the HTTP request.
|
30
30
|
#
|
31
31
|
#
|
32
|
-
def delete(log_profile_name, custom_headers
|
33
|
-
response = delete_async(log_profile_name, custom_headers).value!
|
32
|
+
def delete(log_profile_name, custom_headers:nil)
|
33
|
+
response = delete_async(log_profile_name, custom_headers:custom_headers).value!
|
34
34
|
nil
|
35
35
|
end
|
36
36
|
|
@@ -43,8 +43,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
43
43
|
#
|
44
44
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
45
|
#
|
46
|
-
def delete_with_http_info(log_profile_name, custom_headers
|
47
|
-
delete_async(log_profile_name, custom_headers).value!
|
46
|
+
def delete_with_http_info(log_profile_name, custom_headers:nil)
|
47
|
+
delete_async(log_profile_name, custom_headers:custom_headers).value!
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
@@ -56,13 +56,14 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
56
56
|
#
|
57
57
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
58
58
|
#
|
59
|
-
def delete_async(log_profile_name, custom_headers
|
59
|
+
def delete_async(log_profile_name, custom_headers:nil)
|
60
60
|
fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil?
|
61
61
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
62
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
63
63
|
|
64
64
|
|
65
65
|
request_headers = {}
|
66
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
66
67
|
|
67
68
|
# Set Headers
|
68
69
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -106,8 +107,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
106
107
|
#
|
107
108
|
# @return [LogProfileResource] operation results.
|
108
109
|
#
|
109
|
-
def get(log_profile_name, custom_headers
|
110
|
-
response = get_async(log_profile_name, custom_headers).value!
|
110
|
+
def get(log_profile_name, custom_headers:nil)
|
111
|
+
response = get_async(log_profile_name, custom_headers:custom_headers).value!
|
111
112
|
response.body unless response.nil?
|
112
113
|
end
|
113
114
|
|
@@ -120,8 +121,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
120
121
|
#
|
121
122
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
122
123
|
#
|
123
|
-
def get_with_http_info(log_profile_name, custom_headers
|
124
|
-
get_async(log_profile_name, custom_headers).value!
|
124
|
+
def get_with_http_info(log_profile_name, custom_headers:nil)
|
125
|
+
get_async(log_profile_name, custom_headers:custom_headers).value!
|
125
126
|
end
|
126
127
|
|
127
128
|
#
|
@@ -133,13 +134,14 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
133
134
|
#
|
134
135
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
135
136
|
#
|
136
|
-
def get_async(log_profile_name, custom_headers
|
137
|
+
def get_async(log_profile_name, custom_headers:nil)
|
137
138
|
fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil?
|
138
139
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
139
140
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
140
141
|
|
141
142
|
|
142
143
|
request_headers = {}
|
144
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
143
145
|
|
144
146
|
# Set Headers
|
145
147
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -194,8 +196,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
194
196
|
#
|
195
197
|
# @return [LogProfileResource] operation results.
|
196
198
|
#
|
197
|
-
def create_or_update(log_profile_name, parameters, custom_headers
|
198
|
-
response = create_or_update_async(log_profile_name, parameters, custom_headers).value!
|
199
|
+
def create_or_update(log_profile_name, parameters, custom_headers:nil)
|
200
|
+
response = create_or_update_async(log_profile_name, parameters, custom_headers:custom_headers).value!
|
199
201
|
response.body unless response.nil?
|
200
202
|
end
|
201
203
|
|
@@ -209,8 +211,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
209
211
|
#
|
210
212
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
211
213
|
#
|
212
|
-
def create_or_update_with_http_info(log_profile_name, parameters, custom_headers
|
213
|
-
create_or_update_async(log_profile_name, parameters, custom_headers).value!
|
214
|
+
def create_or_update_with_http_info(log_profile_name, parameters, custom_headers:nil)
|
215
|
+
create_or_update_async(log_profile_name, parameters, custom_headers:custom_headers).value!
|
214
216
|
end
|
215
217
|
|
216
218
|
#
|
@@ -223,7 +225,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
223
225
|
#
|
224
226
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
225
227
|
#
|
226
|
-
def create_or_update_async(log_profile_name, parameters, custom_headers
|
228
|
+
def create_or_update_async(log_profile_name, parameters, custom_headers:nil)
|
227
229
|
fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil?
|
228
230
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
229
231
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -231,13 +233,12 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
231
233
|
|
232
234
|
|
233
235
|
request_headers = {}
|
236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
234
237
|
|
235
238
|
# Set Headers
|
236
239
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
237
240
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
238
241
|
|
239
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
240
|
-
|
241
242
|
# Serialize Request
|
242
243
|
request_mapper = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource.mapper()
|
243
244
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -296,8 +297,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
296
297
|
#
|
297
298
|
# @return [LogProfileResource] operation results.
|
298
299
|
#
|
299
|
-
def update(log_profile_name, log_profiles_resource, custom_headers
|
300
|
-
response = update_async(log_profile_name, log_profiles_resource, custom_headers).value!
|
300
|
+
def update(log_profile_name, log_profiles_resource, custom_headers:nil)
|
301
|
+
response = update_async(log_profile_name, log_profiles_resource, custom_headers:custom_headers).value!
|
301
302
|
response.body unless response.nil?
|
302
303
|
end
|
303
304
|
|
@@ -313,8 +314,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
313
314
|
#
|
314
315
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
315
316
|
#
|
316
|
-
def update_with_http_info(log_profile_name, log_profiles_resource, custom_headers
|
317
|
-
update_async(log_profile_name, log_profiles_resource, custom_headers).value!
|
317
|
+
def update_with_http_info(log_profile_name, log_profiles_resource, custom_headers:nil)
|
318
|
+
update_async(log_profile_name, log_profiles_resource, custom_headers:custom_headers).value!
|
318
319
|
end
|
319
320
|
|
320
321
|
#
|
@@ -329,7 +330,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
329
330
|
#
|
330
331
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
331
332
|
#
|
332
|
-
def update_async(log_profile_name, log_profiles_resource, custom_headers
|
333
|
+
def update_async(log_profile_name, log_profiles_resource, custom_headers:nil)
|
333
334
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
334
335
|
fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil?
|
335
336
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -337,13 +338,12 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
337
338
|
|
338
339
|
|
339
340
|
request_headers = {}
|
341
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
340
342
|
|
341
343
|
# Set Headers
|
342
344
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
343
345
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
344
346
|
|
345
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
346
|
-
|
347
347
|
# Serialize Request
|
348
348
|
request_mapper = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResourcePatch.mapper()
|
349
349
|
request_content = @client.serialize(request_mapper, log_profiles_resource)
|
@@ -398,8 +398,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
398
398
|
#
|
399
399
|
# @return [LogProfileCollection] operation results.
|
400
400
|
#
|
401
|
-
def list(custom_headers
|
402
|
-
response = list_async(custom_headers).value!
|
401
|
+
def list(custom_headers:nil)
|
402
|
+
response = list_async(custom_headers:custom_headers).value!
|
403
403
|
response.body unless response.nil?
|
404
404
|
end
|
405
405
|
|
@@ -411,8 +411,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
411
411
|
#
|
412
412
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
413
413
|
#
|
414
|
-
def list_with_http_info(custom_headers
|
415
|
-
list_async(custom_headers).value!
|
414
|
+
def list_with_http_info(custom_headers:nil)
|
415
|
+
list_async(custom_headers:custom_headers).value!
|
416
416
|
end
|
417
417
|
|
418
418
|
#
|
@@ -423,12 +423,13 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
423
423
|
#
|
424
424
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
425
425
|
#
|
426
|
-
def list_async(custom_headers
|
426
|
+
def list_async(custom_headers:nil)
|
427
427
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
428
428
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
429
429
|
|
430
430
|
|
431
431
|
request_headers = {}
|
432
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
432
433
|
|
433
434
|
# Set Headers
|
434
435
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -112,6 +112,9 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
112
112
|
fail ArgumentError, 'path is nil' if path.nil?
|
113
113
|
|
114
114
|
request_url = options[:base_url] || @base_url
|
115
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
116
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
117
|
+
end
|
115
118
|
|
116
119
|
request_headers = @request_headers
|
117
120
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -128,7 +131,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
|
|
128
131
|
#
|
129
132
|
def add_telemetry
|
130
133
|
sdk_information = 'azure_mgmt_monitor'
|
131
|
-
sdk_information = "#{sdk_information}/0.
|
134
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
132
135
|
add_user_agent_information(sdk_information)
|
133
136
|
end
|
134
137
|
end
|
@@ -102,6 +102,9 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
102
102
|
fail ArgumentError, 'path is nil' if path.nil?
|
103
103
|
|
104
104
|
request_url = options[:base_url] || @base_url
|
105
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
106
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
107
|
+
end
|
105
108
|
|
106
109
|
request_headers = @request_headers
|
107
110
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -118,7 +121,7 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
118
121
|
#
|
119
122
|
def add_telemetry
|
120
123
|
sdk_information = 'azure_mgmt_monitor'
|
121
|
-
sdk_information = "#{sdk_information}/0.
|
124
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
122
125
|
add_user_agent_information(sdk_information)
|
123
126
|
end
|
124
127
|
end
|
@@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
31
31
|
#
|
32
32
|
# @return [ServiceDiagnosticSettingsResource] operation results.
|
33
33
|
#
|
34
|
-
def get(resource_uri, custom_headers
|
35
|
-
response = get_async(resource_uri, custom_headers).value!
|
34
|
+
def get(resource_uri, custom_headers:nil)
|
35
|
+
response = get_async(resource_uri, custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def get_with_http_info(resource_uri, custom_headers
|
50
|
-
get_async(resource_uri, custom_headers).value!
|
49
|
+
def get_with_http_info(resource_uri, custom_headers:nil)
|
50
|
+
get_async(resource_uri, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,12 +60,13 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def get_async(resource_uri, custom_headers
|
63
|
+
def get_async(resource_uri, custom_headers:nil)
|
64
64
|
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
|
65
65
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
66
66
|
|
67
67
|
|
68
68
|
request_headers = {}
|
69
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
70
|
|
70
71
|
# Set Headers
|
71
72
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -122,8 +123,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
122
123
|
#
|
123
124
|
# @return [ServiceDiagnosticSettingsResource] operation results.
|
124
125
|
#
|
125
|
-
def create_or_update(resource_uri, parameters, custom_headers
|
126
|
-
response = create_or_update_async(resource_uri, parameters, custom_headers).value!
|
126
|
+
def create_or_update(resource_uri, parameters, custom_headers:nil)
|
127
|
+
response = create_or_update_async(resource_uri, parameters, custom_headers:custom_headers).value!
|
127
128
|
response.body unless response.nil?
|
128
129
|
end
|
129
130
|
|
@@ -139,8 +140,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
139
140
|
#
|
140
141
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
141
142
|
#
|
142
|
-
def create_or_update_with_http_info(resource_uri, parameters, custom_headers
|
143
|
-
create_or_update_async(resource_uri, parameters, custom_headers).value!
|
143
|
+
def create_or_update_with_http_info(resource_uri, parameters, custom_headers:nil)
|
144
|
+
create_or_update_async(resource_uri, parameters, custom_headers:custom_headers).value!
|
144
145
|
end
|
145
146
|
|
146
147
|
#
|
@@ -155,20 +156,19 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
155
156
|
#
|
156
157
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
157
158
|
#
|
158
|
-
def create_or_update_async(resource_uri, parameters, custom_headers
|
159
|
+
def create_or_update_async(resource_uri, parameters, custom_headers:nil)
|
159
160
|
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
|
160
161
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
161
162
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
162
163
|
|
163
164
|
|
164
165
|
request_headers = {}
|
166
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
165
167
|
|
166
168
|
# Set Headers
|
167
169
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
168
170
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
169
171
|
|
170
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
171
|
-
|
172
172
|
# Serialize Request
|
173
173
|
request_mapper = Azure::Monitor::Mgmt::V2016_09_01::Models::ServiceDiagnosticSettingsResource.mapper()
|
174
174
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -229,8 +229,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
229
229
|
#
|
230
230
|
# @return [ServiceDiagnosticSettingsResource] operation results.
|
231
231
|
#
|
232
|
-
def update(resource_uri, service_diagnostic_settings_resource, custom_headers
|
233
|
-
response = update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value!
|
232
|
+
def update(resource_uri, service_diagnostic_settings_resource, custom_headers:nil)
|
233
|
+
response = update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:custom_headers).value!
|
234
234
|
response.body unless response.nil?
|
235
235
|
end
|
236
236
|
|
@@ -248,8 +248,8 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
248
248
|
#
|
249
249
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
250
250
|
#
|
251
|
-
def update_with_http_info(resource_uri, service_diagnostic_settings_resource, custom_headers
|
252
|
-
update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value!
|
251
|
+
def update_with_http_info(resource_uri, service_diagnostic_settings_resource, custom_headers:nil)
|
252
|
+
update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:custom_headers).value!
|
253
253
|
end
|
254
254
|
|
255
255
|
#
|
@@ -266,20 +266,19 @@ module Azure::Monitor::Mgmt::V2016_09_01
|
|
266
266
|
#
|
267
267
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
268
268
|
#
|
269
|
-
def update_async(resource_uri, service_diagnostic_settings_resource, custom_headers
|
269
|
+
def update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:nil)
|
270
270
|
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
|
271
271
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
272
272
|
fail ArgumentError, 'service_diagnostic_settings_resource is nil' if service_diagnostic_settings_resource.nil?
|
273
273
|
|
274
274
|
|
275
275
|
request_headers = {}
|
276
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
276
277
|
|
277
278
|
# Set Headers
|
278
279
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
279
280
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
280
281
|
|
281
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
282
|
-
|
283
282
|
# Serialize Request
|
284
283
|
request_mapper = Azure::Monitor::Mgmt::V2016_09_01::Models::ServiceDiagnosticSettingsResourcePatch.mapper()
|
285
284
|
request_content = @client.serialize(request_mapper, service_diagnostic_settings_resource)
|
@@ -25,19 +25,23 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
25
25
|
autoload :MonitorManagementClient, '2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
+
autoload :EnableRequest, '2017-04-01/generated/azure_mgmt_monitor/models/enable_request.rb'
|
28
29
|
autoload :ErrorResponse, '2017-04-01/generated/azure_mgmt_monitor/models/error_response.rb'
|
29
|
-
autoload :ActivityLogAlertLeafCondition, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb'
|
30
30
|
autoload :EmailReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/email_receiver.rb'
|
31
|
-
autoload :
|
31
|
+
autoload :ActionGroupPatchBody, '2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb'
|
32
32
|
autoload :WebhookReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb'
|
33
|
+
autoload :ActivityLogAlertLeafCondition, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb'
|
34
|
+
autoload :AzureAppPushReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb'
|
35
|
+
autoload :ActivityLogAlertAllOfCondition, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb'
|
36
|
+
autoload :AutomationRunbookReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb'
|
37
|
+
autoload :Resource, '2017-04-01/generated/azure_mgmt_monitor/models/resource.rb'
|
33
38
|
autoload :ActivityLogAlertActionGroup, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb'
|
34
|
-
autoload :
|
39
|
+
autoload :ItsmReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb'
|
35
40
|
autoload :ActivityLogAlertActionList, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb'
|
36
|
-
autoload :Resource, '2017-04-01/generated/azure_mgmt_monitor/models/resource.rb'
|
37
41
|
autoload :SmsReceiver, '2017-04-01/generated/azure_mgmt_monitor/models/sms_receiver.rb'
|
38
|
-
autoload :EnableRequest, '2017-04-01/generated/azure_mgmt_monitor/models/enable_request.rb'
|
39
|
-
autoload :ActivityLogAlertList, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb'
|
40
42
|
autoload :ActivityLogAlertPatchBody, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb'
|
43
|
+
autoload :ActionGroupList, '2017-04-01/generated/azure_mgmt_monitor/models/action_group_list.rb'
|
44
|
+
autoload :ActivityLogAlertList, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb'
|
41
45
|
autoload :ActionGroupResource, '2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb'
|
42
46
|
autoload :ActivityLogAlertResource, '2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb'
|
43
47
|
autoload :ReceiverStatus, '2017-04-01/generated/azure_mgmt_monitor/models/receiver_status.rb'
|
@@ -33,8 +33,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
33
33
|
#
|
34
34
|
# @return [ActionGroupResource] operation results.
|
35
35
|
#
|
36
|
-
def create_or_update(resource_group_name, action_group_name, action_group, custom_headers
|
37
|
-
response = create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers).value!
|
36
|
+
def create_or_update(resource_group_name, action_group_name, action_group, custom_headers:nil)
|
37
|
+
response = create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def create_or_update_with_http_info(resource_group_name, action_group_name, action_group, custom_headers
|
54
|
-
create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers).value!
|
53
|
+
def create_or_update_with_http_info(resource_group_name, action_group_name, action_group, custom_headers:nil)
|
54
|
+
create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers
|
69
|
+
def create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:nil)
|
70
70
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
71
|
fail ArgumentError, 'action_group_name is nil' if action_group_name.nil?
|
72
72
|
fail ArgumentError, 'action_group is nil' if action_group.nil?
|
@@ -75,13 +75,12 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
75
75
|
|
76
76
|
|
77
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
79
|
|
79
80
|
# Set Headers
|
80
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
82
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
83
|
|
83
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
|
-
|
85
84
|
# Serialize Request
|
86
85
|
request_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupResource.mapper()
|
87
86
|
request_content = @client.serialize(request_mapper, action_group)
|
@@ -148,8 +147,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
148
147
|
#
|
149
148
|
# @return [ActionGroupResource] operation results.
|
150
149
|
#
|
151
|
-
def get(resource_group_name, action_group_name, custom_headers
|
152
|
-
response = get_async(resource_group_name, action_group_name, custom_headers).value!
|
150
|
+
def get(resource_group_name, action_group_name, custom_headers:nil)
|
151
|
+
response = get_async(resource_group_name, action_group_name, custom_headers:custom_headers).value!
|
153
152
|
response.body unless response.nil?
|
154
153
|
end
|
155
154
|
|
@@ -163,8 +162,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
163
162
|
#
|
164
163
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
164
|
#
|
166
|
-
def get_with_http_info(resource_group_name, action_group_name, custom_headers
|
167
|
-
get_async(resource_group_name, action_group_name, custom_headers).value!
|
165
|
+
def get_with_http_info(resource_group_name, action_group_name, custom_headers:nil)
|
166
|
+
get_async(resource_group_name, action_group_name, custom_headers:custom_headers).value!
|
168
167
|
end
|
169
168
|
|
170
169
|
#
|
@@ -177,7 +176,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
177
176
|
#
|
178
177
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
179
178
|
#
|
180
|
-
def get_async(resource_group_name, action_group_name, custom_headers
|
179
|
+
def get_async(resource_group_name, action_group_name, custom_headers:nil)
|
181
180
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
182
181
|
fail ArgumentError, 'action_group_name is nil' if action_group_name.nil?
|
183
182
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -185,6 +184,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
185
184
|
|
186
185
|
|
187
186
|
request_headers = {}
|
187
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
188
|
|
189
189
|
# Set Headers
|
190
190
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -238,8 +238,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
238
238
|
# will be added to the HTTP request.
|
239
239
|
#
|
240
240
|
#
|
241
|
-
def delete(resource_group_name, action_group_name, custom_headers
|
242
|
-
response = delete_async(resource_group_name, action_group_name, custom_headers).value!
|
241
|
+
def delete(resource_group_name, action_group_name, custom_headers:nil)
|
242
|
+
response = delete_async(resource_group_name, action_group_name, custom_headers:custom_headers).value!
|
243
243
|
nil
|
244
244
|
end
|
245
245
|
|
@@ -253,8 +253,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
253
253
|
#
|
254
254
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
255
255
|
#
|
256
|
-
def delete_with_http_info(resource_group_name, action_group_name, custom_headers
|
257
|
-
delete_async(resource_group_name, action_group_name, custom_headers).value!
|
256
|
+
def delete_with_http_info(resource_group_name, action_group_name, custom_headers:nil)
|
257
|
+
delete_async(resource_group_name, action_group_name, custom_headers:custom_headers).value!
|
258
258
|
end
|
259
259
|
|
260
260
|
#
|
@@ -267,7 +267,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
267
267
|
#
|
268
268
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
269
269
|
#
|
270
|
-
def delete_async(resource_group_name, action_group_name, custom_headers
|
270
|
+
def delete_async(resource_group_name, action_group_name, custom_headers:nil)
|
271
271
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
272
272
|
fail ArgumentError, 'action_group_name is nil' if action_group_name.nil?
|
273
273
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -275,6 +275,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
275
275
|
|
276
276
|
|
277
277
|
request_headers = {}
|
278
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
278
279
|
|
279
280
|
# Set Headers
|
280
281
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -309,6 +310,115 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
309
310
|
promise.execute
|
310
311
|
end
|
311
312
|
|
313
|
+
#
|
314
|
+
# Updates an existing action group's tags. To update other fields use the
|
315
|
+
# CreateOrUpdate method.
|
316
|
+
#
|
317
|
+
# @param resource_group_name [String] The name of the resource group.
|
318
|
+
# @param action_group_name [String] The name of the action group.
|
319
|
+
# @param action_group_patch [ActionGroupPatchBody] Parameters supplied to the
|
320
|
+
# operation.
|
321
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
322
|
+
# will be added to the HTTP request.
|
323
|
+
#
|
324
|
+
# @return [ActionGroupResource] operation results.
|
325
|
+
#
|
326
|
+
def update(resource_group_name, action_group_name, action_group_patch, custom_headers:nil)
|
327
|
+
response = update_async(resource_group_name, action_group_name, action_group_patch, custom_headers:custom_headers).value!
|
328
|
+
response.body unless response.nil?
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Updates an existing action group's tags. To update other fields use the
|
333
|
+
# CreateOrUpdate method.
|
334
|
+
#
|
335
|
+
# @param resource_group_name [String] The name of the resource group.
|
336
|
+
# @param action_group_name [String] The name of the action group.
|
337
|
+
# @param action_group_patch [ActionGroupPatchBody] Parameters supplied to the
|
338
|
+
# operation.
|
339
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
340
|
+
# will be added to the HTTP request.
|
341
|
+
#
|
342
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
343
|
+
#
|
344
|
+
def update_with_http_info(resource_group_name, action_group_name, action_group_patch, custom_headers:nil)
|
345
|
+
update_async(resource_group_name, action_group_name, action_group_patch, custom_headers:custom_headers).value!
|
346
|
+
end
|
347
|
+
|
348
|
+
#
|
349
|
+
# Updates an existing action group's tags. To update other fields use the
|
350
|
+
# CreateOrUpdate method.
|
351
|
+
#
|
352
|
+
# @param resource_group_name [String] The name of the resource group.
|
353
|
+
# @param action_group_name [String] The name of the action group.
|
354
|
+
# @param action_group_patch [ActionGroupPatchBody] Parameters supplied to the
|
355
|
+
# operation.
|
356
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
357
|
+
# to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
360
|
+
#
|
361
|
+
def update_async(resource_group_name, action_group_name, action_group_patch, custom_headers:nil)
|
362
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
363
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
364
|
+
fail ArgumentError, 'action_group_name is nil' if action_group_name.nil?
|
365
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
366
|
+
fail ArgumentError, 'action_group_patch is nil' if action_group_patch.nil?
|
367
|
+
|
368
|
+
|
369
|
+
request_headers = {}
|
370
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
371
|
+
|
372
|
+
# Set Headers
|
373
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
374
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
375
|
+
|
376
|
+
# Serialize Request
|
377
|
+
request_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupPatchBody.mapper()
|
378
|
+
request_content = @client.serialize(request_mapper, action_group_patch)
|
379
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
380
|
+
|
381
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
|
382
|
+
|
383
|
+
request_url = @base_url || @client.base_url
|
384
|
+
|
385
|
+
options = {
|
386
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
387
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'actionGroupName' => action_group_name},
|
388
|
+
query_params: {'api-version' => @client.api_version},
|
389
|
+
body: request_content,
|
390
|
+
headers: request_headers.merge(custom_headers || {}),
|
391
|
+
base_url: request_url
|
392
|
+
}
|
393
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
394
|
+
|
395
|
+
promise = promise.then do |result|
|
396
|
+
http_response = result.response
|
397
|
+
status_code = http_response.status
|
398
|
+
response_content = http_response.body
|
399
|
+
unless status_code == 200
|
400
|
+
error_model = JSON.load(response_content)
|
401
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
402
|
+
end
|
403
|
+
|
404
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
405
|
+
# Deserialize Response
|
406
|
+
if status_code == 200
|
407
|
+
begin
|
408
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
409
|
+
result_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupResource.mapper()
|
410
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
411
|
+
rescue Exception => e
|
412
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
result
|
417
|
+
end
|
418
|
+
|
419
|
+
promise.execute
|
420
|
+
end
|
421
|
+
|
312
422
|
#
|
313
423
|
# Get a list of all action groups in a subscription.
|
314
424
|
#
|
@@ -317,8 +427,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
317
427
|
#
|
318
428
|
# @return [ActionGroupList] operation results.
|
319
429
|
#
|
320
|
-
def list_by_subscription_id(custom_headers
|
321
|
-
response = list_by_subscription_id_async(custom_headers).value!
|
430
|
+
def list_by_subscription_id(custom_headers:nil)
|
431
|
+
response = list_by_subscription_id_async(custom_headers:custom_headers).value!
|
322
432
|
response.body unless response.nil?
|
323
433
|
end
|
324
434
|
|
@@ -330,8 +440,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
330
440
|
#
|
331
441
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
332
442
|
#
|
333
|
-
def list_by_subscription_id_with_http_info(custom_headers
|
334
|
-
list_by_subscription_id_async(custom_headers).value!
|
443
|
+
def list_by_subscription_id_with_http_info(custom_headers:nil)
|
444
|
+
list_by_subscription_id_async(custom_headers:custom_headers).value!
|
335
445
|
end
|
336
446
|
|
337
447
|
#
|
@@ -342,12 +452,13 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
342
452
|
#
|
343
453
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
344
454
|
#
|
345
|
-
def list_by_subscription_id_async(custom_headers
|
455
|
+
def list_by_subscription_id_async(custom_headers:nil)
|
346
456
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
347
457
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
348
458
|
|
349
459
|
|
350
460
|
request_headers = {}
|
461
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
351
462
|
|
352
463
|
# Set Headers
|
353
464
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -401,8 +512,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
401
512
|
#
|
402
513
|
# @return [ActionGroupList] operation results.
|
403
514
|
#
|
404
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
405
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
515
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
516
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
406
517
|
response.body unless response.nil?
|
407
518
|
end
|
408
519
|
|
@@ -415,8 +526,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
415
526
|
#
|
416
527
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
528
|
#
|
418
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
419
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
529
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
530
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
420
531
|
end
|
421
532
|
|
422
533
|
#
|
@@ -428,13 +539,14 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
428
539
|
#
|
429
540
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
430
541
|
#
|
431
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
542
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
432
543
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
433
544
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
434
545
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
435
546
|
|
436
547
|
|
437
548
|
request_headers = {}
|
549
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
438
550
|
|
439
551
|
# Set Headers
|
440
552
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -490,8 +602,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
490
602
|
# will be added to the HTTP request.
|
491
603
|
#
|
492
604
|
#
|
493
|
-
def enable_receiver(resource_group_name, action_group_name, enable_request, custom_headers
|
494
|
-
response = enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers).value!
|
605
|
+
def enable_receiver(resource_group_name, action_group_name, enable_request, custom_headers:nil)
|
606
|
+
response = enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:custom_headers).value!
|
495
607
|
nil
|
496
608
|
end
|
497
609
|
|
@@ -507,8 +619,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
507
619
|
#
|
508
620
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
509
621
|
#
|
510
|
-
def enable_receiver_with_http_info(resource_group_name, action_group_name, enable_request, custom_headers
|
511
|
-
enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers).value!
|
622
|
+
def enable_receiver_with_http_info(resource_group_name, action_group_name, enable_request, custom_headers:nil)
|
623
|
+
enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:custom_headers).value!
|
512
624
|
end
|
513
625
|
|
514
626
|
#
|
@@ -523,7 +635,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
523
635
|
#
|
524
636
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
525
637
|
#
|
526
|
-
def enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers
|
638
|
+
def enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:nil)
|
527
639
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
528
640
|
fail ArgumentError, 'action_group_name is nil' if action_group_name.nil?
|
529
641
|
fail ArgumentError, 'enable_request is nil' if enable_request.nil?
|
@@ -532,13 +644,12 @@ module Azure::Monitor::Mgmt::V2017_04_01
|
|
532
644
|
|
533
645
|
|
534
646
|
request_headers = {}
|
647
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
535
648
|
|
536
649
|
# Set Headers
|
537
650
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
538
651
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
539
652
|
|
540
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
541
|
-
|
542
653
|
# Serialize Request
|
543
654
|
request_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::EnableRequest.mapper()
|
544
655
|
request_content = @client.serialize(request_mapper, enable_request)
|