azure_mgmt_operational_insights 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-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
@@ -31,8 +31,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
31
31
|
#
|
32
32
|
# @return [Array] operation results.
|
33
33
|
#
|
34
|
-
def list_link_targets(custom_headers
|
35
|
-
response = list_link_targets_async(custom_headers).value!
|
34
|
+
def list_link_targets(custom_headers:nil)
|
35
|
+
response = list_link_targets_async(custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def list_link_targets_with_http_info(custom_headers
|
50
|
-
list_link_targets_async(custom_headers).value!
|
49
|
+
def list_link_targets_with_http_info(custom_headers:nil)
|
50
|
+
list_link_targets_async(custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,12 +60,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def list_link_targets_async(custom_headers
|
63
|
+
def list_link_targets_async(custom_headers:nil)
|
64
64
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
65
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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
|
@@ -137,8 +138,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
137
138
|
#
|
138
139
|
# @return [SearchGetSchemaResponse] operation results.
|
139
140
|
#
|
140
|
-
def get_schema(resource_group_name, workspace_name, custom_headers
|
141
|
-
response = get_schema_async(resource_group_name, workspace_name, custom_headers).value!
|
141
|
+
def get_schema(resource_group_name, workspace_name, custom_headers:nil)
|
142
|
+
response = get_schema_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
142
143
|
response.body unless response.nil?
|
143
144
|
end
|
144
145
|
|
@@ -153,8 +154,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
153
154
|
#
|
154
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
156
|
#
|
156
|
-
def get_schema_with_http_info(resource_group_name, workspace_name, custom_headers
|
157
|
-
get_schema_async(resource_group_name, workspace_name, custom_headers).value!
|
157
|
+
def get_schema_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
158
|
+
get_schema_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
158
159
|
end
|
159
160
|
|
160
161
|
#
|
@@ -168,7 +169,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
168
169
|
#
|
169
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
170
171
|
#
|
171
|
-
def get_schema_async(resource_group_name, workspace_name, custom_headers
|
172
|
+
def get_schema_async(resource_group_name, workspace_name, custom_headers:nil)
|
172
173
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
173
174
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
174
175
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -179,6 +180,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
179
180
|
|
180
181
|
|
181
182
|
request_headers = {}
|
183
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
182
184
|
|
183
185
|
# Set Headers
|
184
186
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -238,8 +240,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
238
240
|
#
|
239
241
|
# @return [SearchResultsResponse] operation results.
|
240
242
|
#
|
241
|
-
def get_search_results(resource_group_name, workspace_name, parameters, custom_headers
|
242
|
-
response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
243
|
+
def get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
244
|
+
response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
243
245
|
response.body unless response.nil?
|
244
246
|
end
|
245
247
|
|
@@ -255,9 +257,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
255
257
|
# @return [Concurrent::Promise] promise which provides async access to http
|
256
258
|
# response.
|
257
259
|
#
|
258
|
-
def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers
|
260
|
+
def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
259
261
|
# Send request
|
260
|
-
promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers)
|
262
|
+
promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers)
|
261
263
|
|
262
264
|
promise = promise.then do |response|
|
263
265
|
# Defining deserialization method.
|
@@ -286,8 +288,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
286
288
|
#
|
287
289
|
# @return [SearchResultsResponse] operation results.
|
288
290
|
#
|
289
|
-
def update_search_results(resource_group_name, workspace_name, id, custom_headers
|
290
|
-
response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value!
|
291
|
+
def update_search_results(resource_group_name, workspace_name, id, custom_headers:nil)
|
292
|
+
response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value!
|
291
293
|
response.body unless response.nil?
|
292
294
|
end
|
293
295
|
|
@@ -304,8 +306,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
304
306
|
#
|
305
307
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
306
308
|
#
|
307
|
-
def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers
|
308
|
-
update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value!
|
309
|
+
def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers:nil)
|
310
|
+
update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value!
|
309
311
|
end
|
310
312
|
|
311
313
|
#
|
@@ -321,7 +323,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
321
323
|
#
|
322
324
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
323
325
|
#
|
324
|
-
def update_search_results_async(resource_group_name, workspace_name, id, custom_headers
|
326
|
+
def update_search_results_async(resource_group_name, workspace_name, id, custom_headers:nil)
|
325
327
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
326
328
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
327
329
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -333,6 +335,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
333
335
|
|
334
336
|
|
335
337
|
request_headers = {}
|
338
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
336
339
|
|
337
340
|
# Set Headers
|
338
341
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -392,8 +395,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
392
395
|
#
|
393
396
|
# @return [SearchResultsResponse] operation results.
|
394
397
|
#
|
395
|
-
def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers
|
396
|
-
response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
398
|
+
def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
399
|
+
response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
397
400
|
response.body unless response.nil?
|
398
401
|
end
|
399
402
|
|
@@ -412,8 +415,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
412
415
|
#
|
413
416
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
414
417
|
#
|
415
|
-
def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers
|
416
|
-
begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
418
|
+
def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
419
|
+
begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
417
420
|
end
|
418
421
|
|
419
422
|
#
|
@@ -431,7 +434,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
431
434
|
#
|
432
435
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
433
436
|
#
|
434
|
-
def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers
|
437
|
+
def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
435
438
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
436
439
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
437
440
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -443,13 +446,12 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
443
446
|
|
444
447
|
|
445
448
|
request_headers = {}
|
449
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
446
450
|
|
447
451
|
# Set Headers
|
448
452
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
449
453
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
450
454
|
|
451
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
452
|
-
|
453
455
|
# Serialize Request
|
454
456
|
request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters.mapper()
|
455
457
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -23,10 +23,14 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
23
23
|
autoload :LinkedServices, '2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb'
|
24
24
|
autoload :DataSources, '2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb'
|
25
25
|
autoload :Workspaces, '2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb'
|
26
|
-
autoload :
|
26
|
+
autoload :Operations, '2015-11-01-preview/generated/azure_mgmt_operational_insights/operations.rb'
|
27
|
+
autoload :OperationalInsightsManagementClient, '2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb'
|
27
28
|
|
28
29
|
module Models
|
30
|
+
autoload :MetricName, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb'
|
31
|
+
autoload :OperationDisplay, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb'
|
29
32
|
autoload :UsageMetric, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb'
|
33
|
+
autoload :OperationListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb'
|
30
34
|
autoload :WorkspaceListUsagesResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb'
|
31
35
|
autoload :LinkedServiceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb'
|
32
36
|
autoload :ManagementGroup, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb'
|
@@ -34,7 +38,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
34
38
|
autoload :WorkspaceListManagementGroupsResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb'
|
35
39
|
autoload :IntelligencePack, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb'
|
36
40
|
autoload :Sku, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb'
|
37
|
-
autoload :
|
41
|
+
autoload :Operation, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb'
|
38
42
|
autoload :SharedKeys, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb'
|
39
43
|
autoload :Resource, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb'
|
40
44
|
autoload :DataSourceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb'
|
@@ -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 DataSources
|
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
|
#
|
@@ -36,8 +36,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
36
36
|
#
|
37
37
|
# @return [DataSource] operation results.
|
38
38
|
#
|
39
|
-
def create_or_update(resource_group_name, workspace_name, data_source_name, parameters, custom_headers
|
40
|
-
response = create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers).value!
|
39
|
+
def create_or_update(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil)
|
40
|
+
response = create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -56,8 +56,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def create_or_update_with_http_info(resource_group_name, workspace_name, data_source_name, parameters, custom_headers
|
60
|
-
create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers).value!
|
59
|
+
def create_or_update_with_http_info(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil)
|
60
|
+
create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -75,7 +75,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers
|
78
|
+
def create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
81
81
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -88,13 +88,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
88
88
|
|
89
89
|
|
90
90
|
request_headers = {}
|
91
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
92
|
|
92
93
|
# Set Headers
|
93
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
96
|
|
96
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
97
|
-
|
98
97
|
# Serialize Request
|
99
98
|
request_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource.mapper()
|
100
99
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -163,8 +162,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
163
162
|
# will be added to the HTTP request.
|
164
163
|
#
|
165
164
|
#
|
166
|
-
def delete(resource_group_name, workspace_name, data_source_name, custom_headers
|
167
|
-
response = delete_async(resource_group_name, workspace_name, data_source_name, custom_headers).value!
|
165
|
+
def delete(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
166
|
+
response = delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value!
|
168
167
|
nil
|
169
168
|
end
|
170
169
|
|
@@ -181,8 +180,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
181
180
|
#
|
182
181
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
183
182
|
#
|
184
|
-
def delete_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers
|
185
|
-
delete_async(resource_group_name, workspace_name, data_source_name, custom_headers).value!
|
183
|
+
def delete_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
184
|
+
delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value!
|
186
185
|
end
|
187
186
|
|
188
187
|
#
|
@@ -198,7 +197,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
198
197
|
#
|
199
198
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
200
199
|
#
|
201
|
-
def delete_async(resource_group_name, workspace_name, data_source_name, custom_headers
|
200
|
+
def delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
202
201
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
203
202
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
204
203
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -210,6 +209,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
210
209
|
|
211
210
|
|
212
211
|
request_headers = {}
|
212
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
213
213
|
|
214
214
|
# Set Headers
|
215
215
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -257,8 +257,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
257
257
|
#
|
258
258
|
# @return [DataSource] operation results.
|
259
259
|
#
|
260
|
-
def get(resource_group_name, workspace_name, data_source_name, custom_headers
|
261
|
-
response = get_async(resource_group_name, workspace_name, data_source_name, custom_headers).value!
|
260
|
+
def get(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
261
|
+
response = get_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value!
|
262
262
|
response.body unless response.nil?
|
263
263
|
end
|
264
264
|
|
@@ -275,8 +275,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
275
275
|
#
|
276
276
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
277
277
|
#
|
278
|
-
def get_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers
|
279
|
-
get_async(resource_group_name, workspace_name, data_source_name, custom_headers).value!
|
278
|
+
def get_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
279
|
+
get_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value!
|
280
280
|
end
|
281
281
|
|
282
282
|
#
|
@@ -292,7 +292,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
292
292
|
#
|
293
293
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
294
294
|
#
|
295
|
-
def get_async(resource_group_name, workspace_name, data_source_name, custom_headers
|
295
|
+
def get_async(resource_group_name, workspace_name, data_source_name, custom_headers:nil)
|
296
296
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
297
297
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
298
298
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -304,6 +304,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
304
304
|
|
305
305
|
|
306
306
|
request_headers = {}
|
307
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
308
|
|
308
309
|
# Set Headers
|
309
310
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -363,8 +364,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
363
364
|
#
|
364
365
|
# @return [Array<DataSource>] operation results.
|
365
366
|
#
|
366
|
-
def list_by_workspace(resource_group_name, workspace_name, filter, skiptoken
|
367
|
-
first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken, custom_headers)
|
367
|
+
def list_by_workspace(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil)
|
368
|
+
first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers)
|
368
369
|
first_page.get_all_items
|
369
370
|
end
|
370
371
|
|
@@ -383,8 +384,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
383
384
|
#
|
384
385
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
385
386
|
#
|
386
|
-
def list_by_workspace_with_http_info(resource_group_name, workspace_name, filter, skiptoken
|
387
|
-
list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken, custom_headers).value!
|
387
|
+
def list_by_workspace_with_http_info(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil)
|
388
|
+
list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers).value!
|
388
389
|
end
|
389
390
|
|
390
391
|
#
|
@@ -402,7 +403,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
402
403
|
#
|
403
404
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
404
405
|
#
|
405
|
-
def list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken
|
406
|
+
def list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil)
|
406
407
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
407
408
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
408
409
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -414,6 +415,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
414
415
|
|
415
416
|
|
416
417
|
request_headers = {}
|
418
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
417
419
|
|
418
420
|
# Set Headers
|
419
421
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -469,8 +471,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
469
471
|
#
|
470
472
|
# @return [DataSourceListResult] operation results.
|
471
473
|
#
|
472
|
-
def list_by_workspace_next(next_page_link, custom_headers
|
473
|
-
response = list_by_workspace_next_async(next_page_link, custom_headers).value!
|
474
|
+
def list_by_workspace_next(next_page_link, custom_headers:nil)
|
475
|
+
response = list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value!
|
474
476
|
response.body unless response.nil?
|
475
477
|
end
|
476
478
|
|
@@ -485,8 +487,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
485
487
|
#
|
486
488
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
487
489
|
#
|
488
|
-
def list_by_workspace_next_with_http_info(next_page_link, custom_headers
|
489
|
-
list_by_workspace_next_async(next_page_link, custom_headers).value!
|
490
|
+
def list_by_workspace_next_with_http_info(next_page_link, custom_headers:nil)
|
491
|
+
list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value!
|
490
492
|
end
|
491
493
|
|
492
494
|
#
|
@@ -500,11 +502,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
500
502
|
#
|
501
503
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
502
504
|
#
|
503
|
-
def list_by_workspace_next_async(next_page_link, custom_headers
|
505
|
+
def list_by_workspace_next_async(next_page_link, custom_headers:nil)
|
504
506
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
505
507
|
|
506
508
|
|
507
509
|
request_headers = {}
|
510
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
508
511
|
|
509
512
|
# Set Headers
|
510
513
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -564,12 +567,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
564
567
|
# @return [DataSourceListResult] which provide lazy access to pages of the
|
565
568
|
# response.
|
566
569
|
#
|
567
|
-
def list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken
|
568
|
-
response = list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken, custom_headers).value!
|
570
|
+
def list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil)
|
571
|
+
response = list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers).value!
|
569
572
|
unless response.nil?
|
570
573
|
page = response.body
|
571
574
|
page.next_method = Proc.new do |next_page_link|
|
572
|
-
list_by_workspace_next_async(next_page_link, custom_headers)
|
575
|
+
list_by_workspace_next_async(next_page_link, custom_headers:custom_headers)
|
573
576
|
end
|
574
577
|
page
|
575
578
|
end
|
@@ -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 LinkedServices
|
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
|
#
|
@@ -36,8 +36,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
36
36
|
#
|
37
37
|
# @return [LinkedService] operation results.
|
38
38
|
#
|
39
|
-
def create_or_update(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers
|
40
|
-
response = create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers).value!
|
39
|
+
def create_or_update(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil)
|
40
|
+
response = create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -56,8 +56,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def create_or_update_with_http_info(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers
|
60
|
-
create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers).value!
|
59
|
+
def create_or_update_with_http_info(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil)
|
60
|
+
create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -75,7 +75,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers
|
78
|
+
def create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
81
81
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -88,13 +88,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
88
88
|
|
89
89
|
|
90
90
|
request_headers = {}
|
91
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
92
|
|
92
93
|
# Set Headers
|
93
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
96
|
|
96
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
97
|
-
|
98
97
|
# Serialize Request
|
99
98
|
request_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService.mapper()
|
100
99
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -163,8 +162,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
163
162
|
# will be added to the HTTP request.
|
164
163
|
#
|
165
164
|
#
|
166
|
-
def delete(resource_group_name, workspace_name, linked_service_name, custom_headers
|
167
|
-
response = delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value!
|
165
|
+
def delete(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
166
|
+
response = delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value!
|
168
167
|
nil
|
169
168
|
end
|
170
169
|
|
@@ -181,8 +180,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
181
180
|
#
|
182
181
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
183
182
|
#
|
184
|
-
def delete_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers
|
185
|
-
delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value!
|
183
|
+
def delete_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
184
|
+
delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value!
|
186
185
|
end
|
187
186
|
|
188
187
|
#
|
@@ -198,7 +197,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
198
197
|
#
|
199
198
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
200
199
|
#
|
201
|
-
def delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers
|
200
|
+
def delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
202
201
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
203
202
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
204
203
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -210,6 +209,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
210
209
|
|
211
210
|
|
212
211
|
request_headers = {}
|
212
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
213
213
|
|
214
214
|
# Set Headers
|
215
215
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -257,8 +257,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
257
257
|
#
|
258
258
|
# @return [LinkedService] operation results.
|
259
259
|
#
|
260
|
-
def get(resource_group_name, workspace_name, linked_service_name, custom_headers
|
261
|
-
response = get_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value!
|
260
|
+
def get(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
261
|
+
response = get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value!
|
262
262
|
response.body unless response.nil?
|
263
263
|
end
|
264
264
|
|
@@ -275,8 +275,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
275
275
|
#
|
276
276
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
277
277
|
#
|
278
|
-
def get_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers
|
279
|
-
get_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value!
|
278
|
+
def get_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
279
|
+
get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value!
|
280
280
|
end
|
281
281
|
|
282
282
|
#
|
@@ -292,7 +292,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
292
292
|
#
|
293
293
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
294
294
|
#
|
295
|
-
def get_async(resource_group_name, workspace_name, linked_service_name, custom_headers
|
295
|
+
def get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:nil)
|
296
296
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
297
297
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
298
298
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -304,6 +304,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
304
304
|
|
305
305
|
|
306
306
|
request_headers = {}
|
307
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
308
|
|
308
309
|
# Set Headers
|
309
310
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -360,8 +361,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
360
361
|
#
|
361
362
|
# @return [LinkedServiceListResult] operation results.
|
362
363
|
#
|
363
|
-
def list_by_workspace(resource_group_name, workspace_name, custom_headers
|
364
|
-
response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value!
|
364
|
+
def list_by_workspace(resource_group_name, workspace_name, custom_headers:nil)
|
365
|
+
response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
365
366
|
response.body unless response.nil?
|
366
367
|
end
|
367
368
|
|
@@ -377,8 +378,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
377
378
|
#
|
378
379
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
379
380
|
#
|
380
|
-
def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers
|
381
|
-
list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value!
|
381
|
+
def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
382
|
+
list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
382
383
|
end
|
383
384
|
|
384
385
|
#
|
@@ -393,7 +394,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
393
394
|
#
|
394
395
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
395
396
|
#
|
396
|
-
def list_by_workspace_async(resource_group_name, workspace_name, custom_headers
|
397
|
+
def list_by_workspace_async(resource_group_name, workspace_name, custom_headers:nil)
|
397
398
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
398
399
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
399
400
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -404,6 +405,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
404
405
|
|
405
406
|
|
406
407
|
request_headers = {}
|
408
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
407
409
|
|
408
410
|
# Set Headers
|
409
411
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|