azure_mgmt_operational_insights 0.15.2 → 0.16.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.rb +6 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/core_summary.rb +2 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_display.rb +68 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +56 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +32 -8
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata.rb +8 -8
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_results_response.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/tag.rb +2 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +8 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operations.rb +107 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +30 -27
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +33 -30
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +28 -26
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +6 -2
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +35 -32
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +26 -24
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +11 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb +68 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/{azure_log_analytics.rb → operational_insights_management_client.rb} +10 -3
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operations.rb +215 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +178 -63
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +176 -140
- data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/operationalinsights_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +12 -4
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Operational Insights Client
|
9
9
|
#
|
10
10
|
class Workspaces
|
11
11
|
include MsRestAzure
|
@@ -18,7 +18,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
18
18
|
@client = client
|
19
19
|
end
|
20
20
|
|
21
|
-
# @return [
|
21
|
+
# @return [OperationalInsightsManagementClient] reference to the OperationalInsightsManagementClient
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
@@ -33,8 +33,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
33
33
|
# will be added to the HTTP request.
|
34
34
|
#
|
35
35
|
#
|
36
|
-
def disable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
37
|
-
response = disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value!
|
36
|
+
def disable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
37
|
+
response = disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
38
38
|
nil
|
39
39
|
end
|
40
40
|
|
@@ -51,8 +51,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
51
51
|
#
|
52
52
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
53
53
|
#
|
54
|
-
def disable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
55
|
-
disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value!
|
54
|
+
def disable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
55
|
+
disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
56
56
|
end
|
57
57
|
|
58
58
|
#
|
@@ -68,7 +68,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
68
68
|
#
|
69
69
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
70
70
|
#
|
71
|
-
def disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
71
|
+
def disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
72
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
73
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
74
74
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -80,6 +80,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
80
80
|
|
81
81
|
|
82
82
|
request_headers = {}
|
83
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
84
|
|
84
85
|
# Set Headers
|
85
86
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -126,8 +127,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
126
127
|
# will be added to the HTTP request.
|
127
128
|
#
|
128
129
|
#
|
129
|
-
def enable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
130
|
-
response = enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value!
|
130
|
+
def enable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
131
|
+
response = enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
131
132
|
nil
|
132
133
|
end
|
133
134
|
|
@@ -144,8 +145,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
144
145
|
#
|
145
146
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
147
|
#
|
147
|
-
def enable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
148
|
-
enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value!
|
148
|
+
def enable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
149
|
+
enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
149
150
|
end
|
150
151
|
|
151
152
|
#
|
@@ -161,7 +162,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
161
162
|
#
|
162
163
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
164
|
#
|
164
|
-
def enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers
|
165
|
+
def enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
165
166
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
166
167
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
167
168
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -173,6 +174,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
173
174
|
|
174
175
|
|
175
176
|
request_headers = {}
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
176
178
|
|
177
179
|
# Set Headers
|
178
180
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -219,8 +221,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
219
221
|
#
|
220
222
|
# @return [Array] operation results.
|
221
223
|
#
|
222
|
-
def list_intelligence_packs(resource_group_name, workspace_name, custom_headers
|
223
|
-
response = list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers).value!
|
224
|
+
def list_intelligence_packs(resource_group_name, workspace_name, custom_headers:nil)
|
225
|
+
response = list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
224
226
|
response.body unless response.nil?
|
225
227
|
end
|
226
228
|
|
@@ -236,8 +238,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
236
238
|
#
|
237
239
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
238
240
|
#
|
239
|
-
def list_intelligence_packs_with_http_info(resource_group_name, workspace_name, custom_headers
|
240
|
-
list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers).value!
|
241
|
+
def list_intelligence_packs_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
242
|
+
list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
241
243
|
end
|
242
244
|
|
243
245
|
#
|
@@ -252,7 +254,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
252
254
|
#
|
253
255
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
256
|
#
|
255
|
-
def list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers
|
257
|
+
def list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:nil)
|
256
258
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
257
259
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
258
260
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -263,6 +265,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
263
265
|
|
264
266
|
|
265
267
|
request_headers = {}
|
268
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
266
269
|
|
267
270
|
# Set Headers
|
268
271
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -334,8 +337,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
334
337
|
#
|
335
338
|
# @return [SharedKeys] operation results.
|
336
339
|
#
|
337
|
-
def get_shared_keys(resource_group_name, workspace_name, custom_headers
|
338
|
-
response = get_shared_keys_async(resource_group_name, workspace_name, custom_headers).value!
|
340
|
+
def get_shared_keys(resource_group_name, workspace_name, custom_headers:nil)
|
341
|
+
response = get_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
339
342
|
response.body unless response.nil?
|
340
343
|
end
|
341
344
|
|
@@ -350,8 +353,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
350
353
|
#
|
351
354
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
352
355
|
#
|
353
|
-
def get_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers
|
354
|
-
get_shared_keys_async(resource_group_name, workspace_name, custom_headers).value!
|
356
|
+
def get_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
357
|
+
get_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
355
358
|
end
|
356
359
|
|
357
360
|
#
|
@@ -365,7 +368,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
365
368
|
#
|
366
369
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
367
370
|
#
|
368
|
-
def get_shared_keys_async(resource_group_name, workspace_name, custom_headers
|
371
|
+
def get_shared_keys_async(resource_group_name, workspace_name, custom_headers:nil)
|
369
372
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
370
373
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
371
374
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -376,6 +379,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
376
379
|
|
377
380
|
|
378
381
|
request_headers = {}
|
382
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
379
383
|
|
380
384
|
# Set Headers
|
381
385
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -431,8 +435,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
431
435
|
#
|
432
436
|
# @return [WorkspaceListUsagesResult] operation results.
|
433
437
|
#
|
434
|
-
def list_usages(resource_group_name, workspace_name, custom_headers
|
435
|
-
response = list_usages_async(resource_group_name, workspace_name, custom_headers).value!
|
438
|
+
def list_usages(resource_group_name, workspace_name, custom_headers:nil)
|
439
|
+
response = list_usages_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
436
440
|
response.body unless response.nil?
|
437
441
|
end
|
438
442
|
|
@@ -447,8 +451,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
447
451
|
#
|
448
452
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
449
453
|
#
|
450
|
-
def list_usages_with_http_info(resource_group_name, workspace_name, custom_headers
|
451
|
-
list_usages_async(resource_group_name, workspace_name, custom_headers).value!
|
454
|
+
def list_usages_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
455
|
+
list_usages_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
452
456
|
end
|
453
457
|
|
454
458
|
#
|
@@ -462,7 +466,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
462
466
|
#
|
463
467
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
464
468
|
#
|
465
|
-
def list_usages_async(resource_group_name, workspace_name, custom_headers
|
469
|
+
def list_usages_async(resource_group_name, workspace_name, custom_headers:nil)
|
466
470
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
467
471
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
468
472
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -473,6 +477,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
473
477
|
|
474
478
|
|
475
479
|
request_headers = {}
|
480
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
476
481
|
|
477
482
|
# Set Headers
|
478
483
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -528,8 +533,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
528
533
|
#
|
529
534
|
# @return [WorkspaceListManagementGroupsResult] operation results.
|
530
535
|
#
|
531
|
-
def list_management_groups(resource_group_name, workspace_name, custom_headers
|
532
|
-
response = list_management_groups_async(resource_group_name, workspace_name, custom_headers).value!
|
536
|
+
def list_management_groups(resource_group_name, workspace_name, custom_headers:nil)
|
537
|
+
response = list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
533
538
|
response.body unless response.nil?
|
534
539
|
end
|
535
540
|
|
@@ -544,8 +549,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
544
549
|
#
|
545
550
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
546
551
|
#
|
547
|
-
def list_management_groups_with_http_info(resource_group_name, workspace_name, custom_headers
|
548
|
-
list_management_groups_async(resource_group_name, workspace_name, custom_headers).value!
|
552
|
+
def list_management_groups_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
553
|
+
list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
549
554
|
end
|
550
555
|
|
551
556
|
#
|
@@ -559,7 +564,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
559
564
|
#
|
560
565
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
561
566
|
#
|
562
|
-
def list_management_groups_async(resource_group_name, workspace_name, custom_headers
|
567
|
+
def list_management_groups_async(resource_group_name, workspace_name, custom_headers:nil)
|
563
568
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
564
569
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
565
570
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -570,6 +575,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
570
575
|
|
571
576
|
|
572
577
|
request_headers = {}
|
578
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
573
579
|
|
574
580
|
# Set Headers
|
575
581
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -624,8 +630,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
624
630
|
#
|
625
631
|
# @return [WorkspaceListResult] operation results.
|
626
632
|
#
|
627
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
628
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
633
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
634
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
629
635
|
response.body unless response.nil?
|
630
636
|
end
|
631
637
|
|
@@ -639,8 +645,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
639
645
|
#
|
640
646
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
641
647
|
#
|
642
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
643
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
648
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
649
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
644
650
|
end
|
645
651
|
|
646
652
|
#
|
@@ -653,7 +659,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
653
659
|
#
|
654
660
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
655
661
|
#
|
656
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
662
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
657
663
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
658
664
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
659
665
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -663,6 +669,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
663
669
|
|
664
670
|
|
665
671
|
request_headers = {}
|
672
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
666
673
|
|
667
674
|
# Set Headers
|
668
675
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -715,8 +722,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
715
722
|
#
|
716
723
|
# @return [WorkspaceListResult] operation results.
|
717
724
|
#
|
718
|
-
def list(custom_headers
|
719
|
-
response = list_async(custom_headers).value!
|
725
|
+
def list(custom_headers:nil)
|
726
|
+
response = list_async(custom_headers:custom_headers).value!
|
720
727
|
response.body unless response.nil?
|
721
728
|
end
|
722
729
|
|
@@ -728,8 +735,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
728
735
|
#
|
729
736
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
730
737
|
#
|
731
|
-
def list_with_http_info(custom_headers
|
732
|
-
list_async(custom_headers).value!
|
738
|
+
def list_with_http_info(custom_headers:nil)
|
739
|
+
list_async(custom_headers:custom_headers).value!
|
733
740
|
end
|
734
741
|
|
735
742
|
#
|
@@ -740,12 +747,13 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
740
747
|
#
|
741
748
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
742
749
|
#
|
743
|
-
def list_async(custom_headers
|
750
|
+
def list_async(custom_headers:nil)
|
744
751
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
745
752
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
746
753
|
|
747
754
|
|
748
755
|
request_headers = {}
|
756
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
749
757
|
|
750
758
|
# Set Headers
|
751
759
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -802,8 +810,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
802
810
|
#
|
803
811
|
# @return [Workspace] operation results.
|
804
812
|
#
|
805
|
-
def create_or_update(resource_group_name, workspace_name, parameters, custom_headers
|
806
|
-
response = create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
813
|
+
def create_or_update(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
814
|
+
response = create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
807
815
|
response.body unless response.nil?
|
808
816
|
end
|
809
817
|
|
@@ -818,9 +826,9 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
818
826
|
# @return [Concurrent::Promise] promise which provides async access to http
|
819
827
|
# response.
|
820
828
|
#
|
821
|
-
def create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers
|
829
|
+
def create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
822
830
|
# Send request
|
823
|
-
promise = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers)
|
831
|
+
promise = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers)
|
824
832
|
|
825
833
|
promise = promise.then do |response|
|
826
834
|
# Defining deserialization method.
|
@@ -845,8 +853,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
845
853
|
# will be added to the HTTP request.
|
846
854
|
#
|
847
855
|
#
|
848
|
-
def delete(resource_group_name, workspace_name, custom_headers
|
849
|
-
response = delete_async(resource_group_name, workspace_name, custom_headers).value!
|
856
|
+
def delete(resource_group_name, workspace_name, custom_headers:nil)
|
857
|
+
response = delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
850
858
|
nil
|
851
859
|
end
|
852
860
|
|
@@ -860,8 +868,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
860
868
|
#
|
861
869
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
862
870
|
#
|
863
|
-
def delete_with_http_info(resource_group_name, workspace_name, custom_headers
|
864
|
-
delete_async(resource_group_name, workspace_name, custom_headers).value!
|
871
|
+
def delete_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
872
|
+
delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
865
873
|
end
|
866
874
|
|
867
875
|
#
|
@@ -874,7 +882,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
874
882
|
#
|
875
883
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
876
884
|
#
|
877
|
-
def delete_async(resource_group_name, workspace_name, custom_headers
|
885
|
+
def delete_async(resource_group_name, workspace_name, custom_headers:nil)
|
878
886
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
879
887
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
880
888
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -882,6 +890,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
882
890
|
|
883
891
|
|
884
892
|
request_headers = {}
|
893
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
885
894
|
|
886
895
|
# Set Headers
|
887
896
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -926,8 +935,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
926
935
|
#
|
927
936
|
# @return [Workspace] operation results.
|
928
937
|
#
|
929
|
-
def get(resource_group_name, workspace_name, custom_headers
|
930
|
-
response = get_async(resource_group_name, workspace_name, custom_headers).value!
|
938
|
+
def get(resource_group_name, workspace_name, custom_headers:nil)
|
939
|
+
response = get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
931
940
|
response.body unless response.nil?
|
932
941
|
end
|
933
942
|
|
@@ -941,8 +950,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
941
950
|
#
|
942
951
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
943
952
|
#
|
944
|
-
def get_with_http_info(resource_group_name, workspace_name, custom_headers
|
945
|
-
get_async(resource_group_name, workspace_name, custom_headers).value!
|
953
|
+
def get_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
954
|
+
get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
946
955
|
end
|
947
956
|
|
948
957
|
#
|
@@ -955,7 +964,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
955
964
|
#
|
956
965
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
957
966
|
#
|
958
|
-
def get_async(resource_group_name, workspace_name, custom_headers
|
967
|
+
def get_async(resource_group_name, workspace_name, custom_headers:nil)
|
959
968
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
960
969
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
961
970
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -963,6 +972,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
963
972
|
|
964
973
|
|
965
974
|
request_headers = {}
|
975
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
966
976
|
|
967
977
|
# Set Headers
|
968
978
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1007,6 +1017,112 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
1007
1017
|
promise.execute
|
1008
1018
|
end
|
1009
1019
|
|
1020
|
+
#
|
1021
|
+
# Updates a workspace.
|
1022
|
+
#
|
1023
|
+
# @param resource_group_name [String] The resource group name of the workspace.
|
1024
|
+
# @param workspace_name [String] The name of the workspace.
|
1025
|
+
# @param parameters [Workspace] The parameters required to patch a workspace.
|
1026
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1027
|
+
# will be added to the HTTP request.
|
1028
|
+
#
|
1029
|
+
# @return [Workspace] operation results.
|
1030
|
+
#
|
1031
|
+
def update(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1032
|
+
response = update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
1033
|
+
response.body unless response.nil?
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
#
|
1037
|
+
# Updates a workspace.
|
1038
|
+
#
|
1039
|
+
# @param resource_group_name [String] The resource group name of the workspace.
|
1040
|
+
# @param workspace_name [String] The name of the workspace.
|
1041
|
+
# @param parameters [Workspace] The parameters required to patch a workspace.
|
1042
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1043
|
+
# will be added to the HTTP request.
|
1044
|
+
#
|
1045
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1046
|
+
#
|
1047
|
+
def update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1048
|
+
update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
#
|
1052
|
+
# Updates a workspace.
|
1053
|
+
#
|
1054
|
+
# @param resource_group_name [String] The resource group name of the workspace.
|
1055
|
+
# @param workspace_name [String] The name of the workspace.
|
1056
|
+
# @param parameters [Workspace] The parameters required to patch a workspace.
|
1057
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1058
|
+
# to the HTTP request.
|
1059
|
+
#
|
1060
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1061
|
+
#
|
1062
|
+
def update_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1063
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1064
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1065
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
1066
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
1067
|
+
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?
|
1068
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1069
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1070
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1071
|
+
|
1072
|
+
|
1073
|
+
request_headers = {}
|
1074
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1075
|
+
|
1076
|
+
# Set Headers
|
1077
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1078
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1079
|
+
|
1080
|
+
# Serialize Request
|
1081
|
+
request_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1082
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1083
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1084
|
+
|
1085
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}'
|
1086
|
+
|
1087
|
+
request_url = @base_url || @client.base_url
|
1088
|
+
|
1089
|
+
options = {
|
1090
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1091
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
1092
|
+
query_params: {'api-version' => @client.api_version},
|
1093
|
+
body: request_content,
|
1094
|
+
headers: request_headers.merge(custom_headers || {}),
|
1095
|
+
base_url: request_url
|
1096
|
+
}
|
1097
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
1098
|
+
|
1099
|
+
promise = promise.then do |result|
|
1100
|
+
http_response = result.response
|
1101
|
+
status_code = http_response.status
|
1102
|
+
response_content = http_response.body
|
1103
|
+
unless status_code == 200
|
1104
|
+
error_model = JSON.load(response_content)
|
1105
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1109
|
+
# Deserialize Response
|
1110
|
+
if status_code == 200
|
1111
|
+
begin
|
1112
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1113
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1115
|
+
rescue Exception => e
|
1116
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
result
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
promise.execute
|
1124
|
+
end
|
1125
|
+
|
1010
1126
|
#
|
1011
1127
|
# Create or update a workspace.
|
1012
1128
|
#
|
@@ -1019,8 +1135,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
1019
1135
|
#
|
1020
1136
|
# @return [Workspace] operation results.
|
1021
1137
|
#
|
1022
|
-
def begin_create_or_update(resource_group_name, workspace_name, parameters, custom_headers
|
1023
|
-
response = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
1138
|
+
def begin_create_or_update(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1139
|
+
response = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
1024
1140
|
response.body unless response.nil?
|
1025
1141
|
end
|
1026
1142
|
|
@@ -1036,8 +1152,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
1036
1152
|
#
|
1037
1153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1038
1154
|
#
|
1039
|
-
def begin_create_or_update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers
|
1040
|
-
begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
1155
|
+
def begin_create_or_update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1156
|
+
begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
1041
1157
|
end
|
1042
1158
|
|
1043
1159
|
#
|
@@ -1052,7 +1168,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
1052
1168
|
#
|
1053
1169
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1054
1170
|
#
|
1055
|
-
def begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers
|
1171
|
+
def begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
1056
1172
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1057
1173
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1058
1174
|
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
@@ -1064,13 +1180,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
1064
1180
|
|
1065
1181
|
|
1066
1182
|
request_headers = {}
|
1183
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1067
1184
|
|
1068
1185
|
# Set Headers
|
1069
1186
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1070
1187
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1071
1188
|
|
1072
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1073
|
-
|
1074
1189
|
# Serialize Request
|
1075
1190
|
request_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1076
1191
|
request_content = @client.serialize(request_mapper, parameters)
|