azure_mgmt_operational_insights 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb +64 -114
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +3 -3
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb +3 -3
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fcbfc2ade62502841adaec8706fb24f1ff226b9774010f21e0bd6e20583d7d4
|
4
|
+
data.tar.gz: 46f808d075b4108013189f2413ead7f1062c92fa8ebfd503725b044609c814a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5d877d818ddecf975464fdd22d36bbc77a875e6c0dec6b5bb1afa45f251f260b7d963dda916e1d4d3b1ea1ffcf3ec85437dab959ff13b2bc0396c0272d4f322
|
7
|
+
data.tar.gz: d8da0103779c18f10a80ac7ff83bf604d216bcb38229772b74394ef187a40ddea285ec266736199fdfe4dcb86b6b962e96590d17a508cfbd53c7f701ee3459dc
|
@@ -144,7 +144,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
144
144
|
#
|
145
145
|
def add_telemetry
|
146
146
|
sdk_information = 'azure_mgmt_operational_insights'
|
147
|
-
sdk_information = "#{sdk_information}/0.
|
147
|
+
sdk_information = "#{sdk_information}/0.19.0"
|
148
148
|
add_user_agent_information(sdk_information)
|
149
149
|
end
|
150
150
|
end
|
@@ -232,7 +232,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
232
232
|
#
|
233
233
|
def add_telemetry
|
234
234
|
sdk_information = 'azure_mgmt_operational_insights'
|
235
|
-
sdk_information = "#{sdk_information}/0.
|
235
|
+
sdk_information = "#{sdk_information}/0.19.0"
|
236
236
|
add_user_agent_information(sdk_information)
|
237
237
|
end
|
238
238
|
end
|
@@ -145,6 +145,8 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
145
145
|
response.body unless response.nil?
|
146
146
|
end
|
147
147
|
|
148
|
+
#
|
149
|
+
# Create or update a data export.
|
148
150
|
#
|
149
151
|
# @param resource_group_name [String] The name of the resource group. The name
|
150
152
|
# is case insensitive.
|
@@ -155,73 +157,27 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
155
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
158
|
# will be added to the HTTP request.
|
157
159
|
#
|
158
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
159
|
-
# response.
|
160
|
-
#
|
161
|
-
def create_or_update_async(resource_group_name, workspace_name, data_export_name, parameters, custom_headers:nil)
|
162
|
-
# Send request
|
163
|
-
promise = begin_create_or_update_async(resource_group_name, workspace_name, data_export_name, parameters, custom_headers:custom_headers)
|
164
|
-
|
165
|
-
promise = promise.then do |response|
|
166
|
-
# Defining deserialization method.
|
167
|
-
deserialize_method = lambda do |parsed_response|
|
168
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
169
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
170
|
-
end
|
171
|
-
|
172
|
-
# Waiting for response.
|
173
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
174
|
-
end
|
175
|
-
|
176
|
-
promise
|
177
|
-
end
|
178
|
-
|
179
|
-
#
|
180
|
-
# Gets a data export instance.
|
181
|
-
#
|
182
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
183
|
-
# is case insensitive.
|
184
|
-
# @param workspace_name [String] The name of the workspace.
|
185
|
-
# @param data_export_name [String] The data export rule name.
|
186
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
187
|
-
# will be added to the HTTP request.
|
188
|
-
#
|
189
|
-
# @return [DataExport] operation results.
|
190
|
-
#
|
191
|
-
def get(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
192
|
-
response = get_async(resource_group_name, workspace_name, data_export_name, custom_headers:custom_headers).value!
|
193
|
-
response.body unless response.nil?
|
194
|
-
end
|
195
|
-
|
196
|
-
#
|
197
|
-
# Gets a data export instance.
|
198
|
-
#
|
199
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
200
|
-
# is case insensitive.
|
201
|
-
# @param workspace_name [String] The name of the workspace.
|
202
|
-
# @param data_export_name [String] The data export rule name.
|
203
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
204
|
-
# will be added to the HTTP request.
|
205
|
-
#
|
206
160
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
207
161
|
#
|
208
|
-
def
|
209
|
-
|
162
|
+
def create_or_update_with_http_info(resource_group_name, workspace_name, data_export_name, parameters, custom_headers:nil)
|
163
|
+
create_or_update_async(resource_group_name, workspace_name, data_export_name, parameters, custom_headers:custom_headers).value!
|
210
164
|
end
|
211
165
|
|
212
166
|
#
|
213
|
-
#
|
167
|
+
# Create or update a data export.
|
214
168
|
#
|
215
169
|
# @param resource_group_name [String] The name of the resource group. The name
|
216
170
|
# is case insensitive.
|
217
171
|
# @param workspace_name [String] The name of the workspace.
|
218
172
|
# @param data_export_name [String] The data export rule name.
|
173
|
+
# @param parameters [DataExport] The parameters required to create or update a
|
174
|
+
# data export.
|
219
175
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
220
176
|
# to the HTTP request.
|
221
177
|
#
|
222
178
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
223
179
|
#
|
224
|
-
def
|
180
|
+
def create_or_update_async(resource_group_name, workspace_name, data_export_name, parameters, custom_headers:nil)
|
225
181
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
226
182
|
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
227
183
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -233,8 +189,12 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
233
189
|
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
234
190
|
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
235
191
|
fail ArgumentError, 'data_export_name is nil' if data_export_name.nil?
|
192
|
+
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'MaxLength': '63'" if !data_export_name.nil? && data_export_name.length > 63
|
193
|
+
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'MinLength': '4'" if !data_export_name.nil? && data_export_name.length < 4
|
194
|
+
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'Pattern': '^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$'" if !data_export_name.nil? && data_export_name.match(Regexp.new('^^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
236
195
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
237
196
|
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
197
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
238
198
|
|
239
199
|
|
240
200
|
request_headers = {}
|
@@ -243,6 +203,12 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
243
203
|
# Set Headers
|
244
204
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
245
205
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
206
|
+
|
207
|
+
# Serialize Request
|
208
|
+
request_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
209
|
+
request_content = @client.serialize(request_mapper, parameters)
|
210
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
211
|
+
|
246
212
|
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}'
|
247
213
|
|
248
214
|
request_url = @base_url || @client.base_url
|
@@ -251,16 +217,17 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
251
217
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
252
218
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'dataExportName' => data_export_name},
|
253
219
|
query_params: {'api-version' => @client.api_version},
|
220
|
+
body: request_content,
|
254
221
|
headers: request_headers.merge(custom_headers || {}),
|
255
222
|
base_url: request_url
|
256
223
|
}
|
257
|
-
promise = @client.make_request_async(:
|
224
|
+
promise = @client.make_request_async(:put, path_template, options)
|
258
225
|
|
259
226
|
promise = promise.then do |result|
|
260
227
|
http_response = result.response
|
261
228
|
status_code = http_response.status
|
262
229
|
response_content = http_response.body
|
263
|
-
unless status_code == 200 || status_code ==
|
230
|
+
unless status_code == 200 || status_code == 201
|
264
231
|
error_model = JSON.load(response_content)
|
265
232
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
266
233
|
end
|
@@ -278,6 +245,16 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
278
245
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
279
246
|
end
|
280
247
|
end
|
248
|
+
# Deserialize Response
|
249
|
+
if status_code == 201
|
250
|
+
begin
|
251
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
252
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
253
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
254
|
+
rescue Exception => e
|
255
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
256
|
+
end
|
257
|
+
end
|
281
258
|
|
282
259
|
result
|
283
260
|
end
|
@@ -286,7 +263,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
286
263
|
end
|
287
264
|
|
288
265
|
#
|
289
|
-
#
|
266
|
+
# Gets a data export instance.
|
290
267
|
#
|
291
268
|
# @param resource_group_name [String] The name of the resource group. The name
|
292
269
|
# is case insensitive.
|
@@ -295,14 +272,15 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
295
272
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
296
273
|
# will be added to the HTTP request.
|
297
274
|
#
|
275
|
+
# @return [DataExport] operation results.
|
298
276
|
#
|
299
|
-
def
|
300
|
-
response =
|
301
|
-
nil
|
277
|
+
def get(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
278
|
+
response = get_async(resource_group_name, workspace_name, data_export_name, custom_headers:custom_headers).value!
|
279
|
+
response.body unless response.nil?
|
302
280
|
end
|
303
281
|
|
304
282
|
#
|
305
|
-
#
|
283
|
+
# Gets a data export instance.
|
306
284
|
#
|
307
285
|
# @param resource_group_name [String] The name of the resource group. The name
|
308
286
|
# is case insensitive.
|
@@ -313,12 +291,12 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
313
291
|
#
|
314
292
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
315
293
|
#
|
316
|
-
def
|
317
|
-
|
294
|
+
def get_with_http_info(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
295
|
+
get_async(resource_group_name, workspace_name, data_export_name, custom_headers:custom_headers).value!
|
318
296
|
end
|
319
297
|
|
320
298
|
#
|
321
|
-
#
|
299
|
+
# Gets a data export instance.
|
322
300
|
#
|
323
301
|
# @param resource_group_name [String] The name of the resource group. The name
|
324
302
|
# is case insensitive.
|
@@ -329,7 +307,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
329
307
|
#
|
330
308
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
331
309
|
#
|
332
|
-
def
|
310
|
+
def get_async(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
333
311
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
334
312
|
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
335
313
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -362,13 +340,13 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
362
340
|
headers: request_headers.merge(custom_headers || {}),
|
363
341
|
base_url: request_url
|
364
342
|
}
|
365
|
-
promise = @client.make_request_async(:
|
343
|
+
promise = @client.make_request_async(:get, path_template, options)
|
366
344
|
|
367
345
|
promise = promise.then do |result|
|
368
346
|
http_response = result.response
|
369
347
|
status_code = http_response.status
|
370
348
|
response_content = http_response.body
|
371
|
-
unless status_code == 200
|
349
|
+
unless status_code == 200
|
372
350
|
error_model = JSON.load(response_content)
|
373
351
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
374
352
|
end
|
@@ -376,6 +354,16 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
376
354
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
377
355
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
378
356
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
357
|
+
# Deserialize Response
|
358
|
+
if status_code == 200
|
359
|
+
begin
|
360
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
361
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
362
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
363
|
+
rescue Exception => e
|
364
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
365
|
+
end
|
366
|
+
end
|
379
367
|
|
380
368
|
result
|
381
369
|
end
|
@@ -384,57 +372,50 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
384
372
|
end
|
385
373
|
|
386
374
|
#
|
387
|
-
#
|
375
|
+
# Deletes the specified data export in a given workspace..
|
388
376
|
#
|
389
377
|
# @param resource_group_name [String] The name of the resource group. The name
|
390
378
|
# is case insensitive.
|
391
379
|
# @param workspace_name [String] The name of the workspace.
|
392
380
|
# @param data_export_name [String] The data export rule name.
|
393
|
-
# @param parameters [DataExport] The parameters required to create or update a
|
394
|
-
# data export.
|
395
381
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
396
382
|
# will be added to the HTTP request.
|
397
383
|
#
|
398
|
-
# @return [DataExport] operation results.
|
399
384
|
#
|
400
|
-
def
|
401
|
-
response =
|
402
|
-
|
385
|
+
def delete(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
386
|
+
response = delete_async(resource_group_name, workspace_name, data_export_name, custom_headers:custom_headers).value!
|
387
|
+
nil
|
403
388
|
end
|
404
389
|
|
405
390
|
#
|
406
|
-
#
|
391
|
+
# Deletes the specified data export in a given workspace..
|
407
392
|
#
|
408
393
|
# @param resource_group_name [String] The name of the resource group. The name
|
409
394
|
# is case insensitive.
|
410
395
|
# @param workspace_name [String] The name of the workspace.
|
411
396
|
# @param data_export_name [String] The data export rule name.
|
412
|
-
# @param parameters [DataExport] The parameters required to create or update a
|
413
|
-
# data export.
|
414
397
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
415
398
|
# will be added to the HTTP request.
|
416
399
|
#
|
417
400
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
418
401
|
#
|
419
|
-
def
|
420
|
-
|
402
|
+
def delete_with_http_info(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
403
|
+
delete_async(resource_group_name, workspace_name, data_export_name, custom_headers:custom_headers).value!
|
421
404
|
end
|
422
405
|
|
423
406
|
#
|
424
|
-
#
|
407
|
+
# Deletes the specified data export in a given workspace..
|
425
408
|
#
|
426
409
|
# @param resource_group_name [String] The name of the resource group. The name
|
427
410
|
# is case insensitive.
|
428
411
|
# @param workspace_name [String] The name of the workspace.
|
429
412
|
# @param data_export_name [String] The data export rule name.
|
430
|
-
# @param parameters [DataExport] The parameters required to create or update a
|
431
|
-
# data export.
|
432
413
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
433
414
|
# to the HTTP request.
|
434
415
|
#
|
435
416
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
436
417
|
#
|
437
|
-
def
|
418
|
+
def delete_async(resource_group_name, workspace_name, data_export_name, custom_headers:nil)
|
438
419
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
439
420
|
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
440
421
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -446,12 +427,8 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
446
427
|
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
447
428
|
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
448
429
|
fail ArgumentError, 'data_export_name is nil' if data_export_name.nil?
|
449
|
-
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'MaxLength': '63'" if !data_export_name.nil? && data_export_name.length > 63
|
450
|
-
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'MinLength': '4'" if !data_export_name.nil? && data_export_name.length < 4
|
451
|
-
fail ArgumentError, "'data_export_name' should satisfy the constraint - 'Pattern': '^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$'" if !data_export_name.nil? && data_export_name.match(Regexp.new('^^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
452
430
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
453
431
|
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
454
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
455
432
|
|
456
433
|
|
457
434
|
request_headers = {}
|
@@ -460,12 +437,6 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
460
437
|
# Set Headers
|
461
438
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
462
439
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
463
|
-
|
464
|
-
# Serialize Request
|
465
|
-
request_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
466
|
-
request_content = @client.serialize(request_mapper, parameters)
|
467
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
468
|
-
|
469
440
|
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}'
|
470
441
|
|
471
442
|
request_url = @base_url || @client.base_url
|
@@ -474,17 +445,16 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
474
445
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
475
446
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'dataExportName' => data_export_name},
|
476
447
|
query_params: {'api-version' => @client.api_version},
|
477
|
-
body: request_content,
|
478
448
|
headers: request_headers.merge(custom_headers || {}),
|
479
449
|
base_url: request_url
|
480
450
|
}
|
481
|
-
promise = @client.make_request_async(:
|
451
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
482
452
|
|
483
453
|
promise = promise.then do |result|
|
484
454
|
http_response = result.response
|
485
455
|
status_code = http_response.status
|
486
456
|
response_content = http_response.body
|
487
|
-
unless status_code == 200 || status_code ==
|
457
|
+
unless status_code == 200 || status_code == 404
|
488
458
|
error_model = JSON.load(response_content)
|
489
459
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
490
460
|
end
|
@@ -492,26 +462,6 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
492
462
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
493
463
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
494
464
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
495
|
-
# Deserialize Response
|
496
|
-
if status_code == 200
|
497
|
-
begin
|
498
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
499
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
500
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
501
|
-
rescue Exception => e
|
502
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
503
|
-
end
|
504
|
-
end
|
505
|
-
# Deserialize Response
|
506
|
-
if status_code == 201
|
507
|
-
begin
|
508
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
509
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport.mapper()
|
510
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
511
|
-
rescue Exception => e
|
512
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
513
|
-
end
|
514
|
-
end
|
515
465
|
|
516
466
|
result
|
517
467
|
end
|
@@ -17,7 +17,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
17
17
|
attr_accessor :properties
|
18
18
|
|
19
19
|
# @return [String] The ETag of the data source.
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :etag
|
21
21
|
|
22
22
|
# @return [DataSourceKind] Possible values include: 'WindowsEvent',
|
23
23
|
# 'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog',
|
@@ -89,10 +89,10 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
89
89
|
name: 'Object'
|
90
90
|
}
|
91
91
|
},
|
92
|
-
|
92
|
+
etag: {
|
93
93
|
client_side_validation: true,
|
94
94
|
required: false,
|
95
|
-
serialized_name: '
|
95
|
+
serialized_name: 'etag',
|
96
96
|
type: {
|
97
97
|
name: 'String'
|
98
98
|
}
|
data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb
CHANGED
@@ -13,7 +13,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [String] The ETag of the saved search.
|
16
|
-
attr_accessor :
|
16
|
+
attr_accessor :etag
|
17
17
|
|
18
18
|
# @return [String] The category of the saved search. This helps the user
|
19
19
|
# to find a saved search faster.
|
@@ -83,10 +83,10 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
83
83
|
name: 'String'
|
84
84
|
}
|
85
85
|
},
|
86
|
-
|
86
|
+
etag: {
|
87
87
|
client_side_validation: true,
|
88
88
|
required: false,
|
89
|
-
serialized_name: '
|
89
|
+
serialized_name: 'etag',
|
90
90
|
type: {
|
91
91
|
name: 'String'
|
92
92
|
}
|
@@ -200,7 +200,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
|
|
200
200
|
#
|
201
201
|
def add_telemetry
|
202
202
|
sdk_information = 'azure_mgmt_operational_insights'
|
203
|
-
sdk_information = "#{sdk_information}/0.
|
203
|
+
sdk_information = "#{sdk_information}/0.19.0"
|
204
204
|
add_user_agent_information(sdk_information)
|
205
205
|
end
|
206
206
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_operational_insights
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|