azure_mgmt_monitor 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +39 -37
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +6 -5
  5. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +12 -10
  6. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +30 -29
  7. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +30 -29
  8. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  9. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -1
  10. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +18 -19
  11. data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +10 -6
  12. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +145 -34
  13. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +36 -34
  14. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +63 -0
  16. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  17. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +1 -1
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +13 -11
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +25 -23
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/{monitor_client.rb → monitor_management_client.rb} +6 -3
  24. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +37 -0
  25. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +275 -0
  26. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
  27. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
  28. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  32. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  33. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
  34. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
  35. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  36. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +127 -0
  37. data/lib/azure_mgmt_monitor.rb +1 -0
  38. data/lib/profiles/latest/modules/monitor_profile_module.rb +329 -243
  39. data/lib/profiles/latest/monitor_latest_profile_client.rb +28 -9
  40. data/lib/profiles/latest/monitor_module_definition.rb +0 -1
  41. data/lib/version.rb +1 -1
  42. metadata +21 -4
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # The Azure mobile App push notification receiver.
10
+ #
11
+ class AzureAppPushReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the Azure mobile app push receiver. Names
16
+ # must be unique across all receivers within an action group.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The email address registered for the Azure mobile app.
20
+ attr_accessor :email_address
21
+
22
+
23
+ #
24
+ # Mapper for AzureAppPushReceiver class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'AzureAppPushReceiver',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'AzureAppPushReceiver',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ email_address: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: 'emailAddress',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # An Itsm receiver.
10
+ #
11
+ class ItsmReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the Itsm receiver. Names must be unique
16
+ # across all receivers within an action group.
17
+ attr_accessor :name
18
+
19
+ # @return [String] OMS LA instance identifier.
20
+ attr_accessor :workspace_id
21
+
22
+ # @return [String] Unique identification of ITSM connection among
23
+ # multiple defined in above workspace.
24
+ attr_accessor :connection_id
25
+
26
+ # @return [String] JSON blob for the configurations of the ITSM action.
27
+ # CreateMultipleWorkItems option will be part of this blob as well.
28
+ attr_accessor :ticket_configuration
29
+
30
+ # @return [String] Region in which workspace resides. Supported
31
+ # values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'
32
+ attr_accessor :region
33
+
34
+
35
+ #
36
+ # Mapper for ItsmReceiver class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'ItsmReceiver',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'ItsmReceiver',
47
+ model_properties: {
48
+ name: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ workspace_id: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: 'workspaceId',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ connection_id: {
65
+ client_side_validation: true,
66
+ required: true,
67
+ serialized_name: 'connectionId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ ticket_configuration: {
73
+ client_side_validation: true,
74
+ required: true,
75
+ serialized_name: 'ticketConfiguration',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ region: {
81
+ client_side_validation: true,
82
+ required: true,
83
+ serialized_name: 'region',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -108,6 +108,9 @@ module Azure::Monitor::Mgmt::V2017_04_01
108
108
  fail ArgumentError, 'path is nil' if path.nil?
109
109
 
110
110
  request_url = options[:base_url] || @base_url
111
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
112
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
113
+ end
111
114
 
112
115
  request_headers = @request_headers
113
116
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -124,7 +127,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
124
127
  #
125
128
  def add_telemetry
126
129
  sdk_information = 'azure_mgmt_monitor'
127
- sdk_information = "#{sdk_information}/0.15.2"
130
+ sdk_information = "#{sdk_information}/0.16.0"
128
131
  add_user_agent_information(sdk_information)
129
132
  end
130
133
  end
@@ -22,7 +22,7 @@ require 'ms_rest_azure'
22
22
  module Azure::Monitor::Mgmt::V2017_05_01_preview
23
23
  autoload :DiagnosticSettingsCategoryOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb'
24
24
  autoload :DiagnosticSettingsOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb'
25
- autoload :MonitorClient, '2017-05-01-preview/generated/azure_mgmt_monitor/monitor_client.rb'
25
+ autoload :MonitorManagementClient, '2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb'
26
26
 
27
27
  module Models
28
28
  autoload :RetentionPolicy, '2017-05-01-preview/generated/azure_mgmt_monitor/models/retention_policy.rb'
@@ -18,7 +18,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
18
18
  @client = client
19
19
  end
20
20
 
21
- # @return [MonitorClient] reference to the MonitorClient
21
+ # @return [MonitorManagementClient] reference to the MonitorManagementClient
22
22
  attr_reader :client
23
23
 
24
24
  #
@@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
31
31
  #
32
32
  # @return [DiagnosticSettingsCategoryResource] operation results.
33
33
  #
34
- def get(resource_uri, name, custom_headers = nil)
35
- response = get_async(resource_uri, name, custom_headers).value!
34
+ def get(resource_uri, name, custom_headers:nil)
35
+ response = get_async(resource_uri, name, 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::V2017_05_01_preview
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def get_with_http_info(resource_uri, name, custom_headers = nil)
50
- get_async(resource_uri, name, custom_headers).value!
49
+ def get_with_http_info(resource_uri, name, custom_headers:nil)
50
+ get_async(resource_uri, name, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,13 +60,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def get_async(resource_uri, name, custom_headers = nil)
63
+ def get_async(resource_uri, name, 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
  fail ArgumentError, 'name is nil' if name.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -120,8 +121,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
120
121
  #
121
122
  # @return [DiagnosticSettingsCategoryResourceCollection] operation results.
122
123
  #
123
- def list(resource_uri, custom_headers = nil)
124
- response = list_async(resource_uri, custom_headers).value!
124
+ def list(resource_uri, custom_headers:nil)
125
+ response = list_async(resource_uri, custom_headers:custom_headers).value!
125
126
  response.body unless response.nil?
126
127
  end
127
128
 
@@ -134,8 +135,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
134
135
  #
135
136
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
137
  #
137
- def list_with_http_info(resource_uri, custom_headers = nil)
138
- list_async(resource_uri, custom_headers).value!
138
+ def list_with_http_info(resource_uri, custom_headers:nil)
139
+ list_async(resource_uri, custom_headers:custom_headers).value!
139
140
  end
140
141
 
141
142
  #
@@ -147,12 +148,13 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
147
148
  #
148
149
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
149
150
  #
150
- def list_async(resource_uri, custom_headers = nil)
151
+ def list_async(resource_uri, custom_headers:nil)
151
152
  fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
152
153
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
153
154
 
154
155
 
155
156
  request_headers = {}
157
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
156
158
 
157
159
  # Set Headers
158
160
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -18,7 +18,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
18
18
  @client = client
19
19
  end
20
20
 
21
- # @return [MonitorClient] reference to the MonitorClient
21
+ # @return [MonitorManagementClient] reference to the MonitorManagementClient
22
22
  attr_reader :client
23
23
 
24
24
  #
@@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
31
31
  #
32
32
  # @return [DiagnosticSettingsResource] operation results.
33
33
  #
34
- def get(resource_uri, name, custom_headers = nil)
35
- response = get_async(resource_uri, name, custom_headers).value!
34
+ def get(resource_uri, name, custom_headers:nil)
35
+ response = get_async(resource_uri, name, 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::V2017_05_01_preview
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def get_with_http_info(resource_uri, name, custom_headers = nil)
50
- get_async(resource_uri, name, custom_headers).value!
49
+ def get_with_http_info(resource_uri, name, custom_headers:nil)
50
+ get_async(resource_uri, name, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,13 +60,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def get_async(resource_uri, name, custom_headers = nil)
63
+ def get_async(resource_uri, name, 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
  fail ArgumentError, 'name is nil' if name.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,8 +124,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
123
124
  #
124
125
  # @return [DiagnosticSettingsResource] operation results.
125
126
  #
126
- def create_or_update(resource_uri, parameters, name, custom_headers = nil)
127
- response = create_or_update_async(resource_uri, parameters, name, custom_headers).value!
127
+ def create_or_update(resource_uri, parameters, name, custom_headers:nil)
128
+ response = create_or_update_async(resource_uri, parameters, name, custom_headers:custom_headers).value!
128
129
  response.body unless response.nil?
129
130
  end
130
131
 
@@ -140,8 +141,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
140
141
  #
141
142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
143
  #
143
- def create_or_update_with_http_info(resource_uri, parameters, name, custom_headers = nil)
144
- create_or_update_async(resource_uri, parameters, name, custom_headers).value!
144
+ def create_or_update_with_http_info(resource_uri, parameters, name, custom_headers:nil)
145
+ create_or_update_async(resource_uri, parameters, name, custom_headers:custom_headers).value!
145
146
  end
146
147
 
147
148
  #
@@ -156,7 +157,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
156
157
  #
157
158
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
159
  #
159
- def create_or_update_async(resource_uri, parameters, name, custom_headers = nil)
160
+ def create_or_update_async(resource_uri, parameters, name, custom_headers:nil)
160
161
  fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
161
162
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
162
163
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -164,13 +165,12 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
164
165
 
165
166
 
166
167
  request_headers = {}
168
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
167
169
 
168
170
  # Set Headers
169
171
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
170
172
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
171
173
 
172
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
-
174
174
  # Serialize Request
175
175
  request_mapper = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource.mapper()
176
176
  request_content = @client.serialize(request_mapper, parameters)
@@ -226,8 +226,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
226
226
  # will be added to the HTTP request.
227
227
  #
228
228
  #
229
- def delete(resource_uri, name, custom_headers = nil)
230
- response = delete_async(resource_uri, name, custom_headers).value!
229
+ def delete(resource_uri, name, custom_headers:nil)
230
+ response = delete_async(resource_uri, name, custom_headers:custom_headers).value!
231
231
  nil
232
232
  end
233
233
 
@@ -241,8 +241,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
241
241
  #
242
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
243
243
  #
244
- def delete_with_http_info(resource_uri, name, custom_headers = nil)
245
- delete_async(resource_uri, name, custom_headers).value!
244
+ def delete_with_http_info(resource_uri, name, custom_headers:nil)
245
+ delete_async(resource_uri, name, custom_headers:custom_headers).value!
246
246
  end
247
247
 
248
248
  #
@@ -255,13 +255,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
255
255
  #
256
256
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
257
257
  #
258
- def delete_async(resource_uri, name, custom_headers = nil)
258
+ def delete_async(resource_uri, name, custom_headers:nil)
259
259
  fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
260
260
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
261
261
  fail ArgumentError, 'name is nil' if name.nil?
262
262
 
263
263
 
264
264
  request_headers = {}
265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
265
266
 
266
267
  # Set Headers
267
268
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -305,8 +306,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
305
306
  #
306
307
  # @return [DiagnosticSettingsResourceCollection] operation results.
307
308
  #
308
- def list(resource_uri, custom_headers = nil)
309
- response = list_async(resource_uri, custom_headers).value!
309
+ def list(resource_uri, custom_headers:nil)
310
+ response = list_async(resource_uri, custom_headers:custom_headers).value!
310
311
  response.body unless response.nil?
311
312
  end
312
313
 
@@ -319,8 +320,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
319
320
  #
320
321
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
321
322
  #
322
- def list_with_http_info(resource_uri, custom_headers = nil)
323
- list_async(resource_uri, custom_headers).value!
323
+ def list_with_http_info(resource_uri, custom_headers:nil)
324
+ list_async(resource_uri, custom_headers:custom_headers).value!
324
325
  end
325
326
 
326
327
  #
@@ -332,12 +333,13 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
332
333
  #
333
334
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
334
335
  #
335
- def list_async(resource_uri, custom_headers = nil)
336
+ def list_async(resource_uri, custom_headers:nil)
336
337
  fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
337
338
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
338
339
 
339
340
 
340
341
  request_headers = {}
342
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
341
343
 
342
344
  # Set Headers
343
345
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -7,7 +7,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
10
- class MonitorClient < MsRestAzure::AzureServiceClient
10
+ class MonitorManagementClient < MsRestAzure::AzureServiceClient
11
11
  include MsRestAzure
12
12
  include MsRestAzure::Serialization
13
13
 
@@ -39,7 +39,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
39
39
  attr_reader :diagnostic_settings_operations
40
40
 
41
41
  #
42
- # Creates initializes a new instance of the MonitorClient class.
42
+ # Creates initializes a new instance of the MonitorManagementClient class.
43
43
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
44
44
  # @param base_url [String] the base URI of the service.
45
45
  # @param options [Array] filters to be applied to the HTTP requests.
@@ -106,6 +106,9 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
106
106
  fail ArgumentError, 'path is nil' if path.nil?
107
107
 
108
108
  request_url = options[:base_url] || @base_url
109
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
110
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
111
+ end
109
112
 
110
113
  request_headers = @request_headers
111
114
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -122,7 +125,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
122
125
  #
123
126
  def add_telemetry
124
127
  sdk_information = 'azure_mgmt_monitor'
125
- sdk_information = "#{sdk_information}/0.15.2"
128
+ sdk_information = "#{sdk_information}/0.16.0"
126
129
  add_user_agent_information(sdk_information)
127
130
  end
128
131
  end