azure_mgmt_operational_insights 0.14.0 → 0.15.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 +52 -0
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/core_summary.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/link_target.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/proxy_resource.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/resource.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/saved_search.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_error.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_get_schema_response.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_highlight.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_metadata.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_metadata_schema.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_parameters.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_results_response.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_schema_value.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_sort.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_sort_enum.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_account.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_state.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_status.rb +1 -1
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/tag.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/operational_insights_management_client.rb +10 -14
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/saved_searches.rb +16 -16
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/storage_insights.rb +15 -15
- data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/version.rb +2 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +489 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +50 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/azure_log_analytics.rb +139 -0
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/data_sources.rb +17 -17
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/linked_services.rb +16 -16
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_filter.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_kind.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_list_result.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/entity_status.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/intelligence_pack.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/linked_service.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/linked_service_list_result.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/management_group.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/metric_name.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +84 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +94 -0
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/shared_keys.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/sku.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/sku_name_enum.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/usage_metric.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_result.rb +1 -1
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/{generated/azure_mgmt_operational_insights/module_definition.rb → 2015-11-01-preview/generated/azure_mgmt_operational_insights/version.rb} +3 -3
- data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/workspaces.rb +35 -499
- data/lib/azure_mgmt_operational_insights.rb +3 -4
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +215 -0
- data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/operationalinsights_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +65 -51
- data/lib/generated/azure_mgmt_operational_insights.rb +0 -72
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# DataSource filter. Right now, only filter by kind is supported.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# The list data source by workspace operation response.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Intelligence Pack containing a string name and boolean indicating if it's
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# The top level Linked service resource container.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# A management group that is connected to a workspace
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Common properties of proxy resource.
|
10
|
+
#
|
11
|
+
class ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource ID.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Resource name.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Resource type.
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [Hash{String => String}] Resource tags
|
25
|
+
attr_accessor :tags
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for ProxyResource class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ProxyResource',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ProxyResource',
|
39
|
+
model_properties: {
|
40
|
+
id: {
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'id',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
name: {
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'name',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'type',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
tags: {
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'tags',
|
67
|
+
type: {
|
68
|
+
name: 'Dictionary',
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'StringElementType',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource definition.
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource Id
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Resource name
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Resource type
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [String] Resource location
|
25
|
+
attr_accessor :location
|
26
|
+
|
27
|
+
# @return [Hash{String => String}] Resource tags
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for Resource class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Resource',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'Resource',
|
42
|
+
model_properties: {
|
43
|
+
id: {
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'id',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
name: {
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'name',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
type: {
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'type',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
location: {
|
68
|
+
required: true,
|
69
|
+
serialized_name: 'location',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
tags: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'tags',
|
77
|
+
type: {
|
78
|
+
name: 'Dictionary',
|
79
|
+
value: {
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'StringElementType',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# The list workspace managmement groups operation response.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::OperationalInsights end
|
8
|
+
module Azure::OperationalInsights::Mgmt end
|
9
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure
|
7
|
-
|
8
|
-
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
VERSION = '0.15.0'
|
8
|
+
end
|
data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/workspaces.rb
RENAMED
@@ -3,9 +3,9 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Azure Log Analytics API reference
|
9
9
|
#
|
10
10
|
class Workspaces
|
11
11
|
include MsRestAzure
|
@@ -18,7 +18,7 @@ module Azure::ARM::OperationalInsights
|
|
18
18
|
@client = client
|
19
19
|
end
|
20
20
|
|
21
|
-
# @return [
|
21
|
+
# @return [AzureLogAnalytics] reference to the AzureLogAnalytics
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
@@ -72,7 +72,7 @@ module Azure::ARM::OperationalInsights
|
|
72
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
73
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
74
74
|
fail ArgumentError, 'intelligence_pack_name is nil' if intelligence_pack_name.nil?
|
75
|
-
api_version
|
75
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
76
76
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
77
77
|
|
78
78
|
|
@@ -88,7 +88,7 @@ module Azure::ARM::OperationalInsights
|
|
88
88
|
options = {
|
89
89
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
90
90
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'intelligencePackName' => intelligence_pack_name,'subscriptionId' => @client.subscription_id},
|
91
|
-
query_params: {'api-version' => api_version},
|
91
|
+
query_params: {'api-version' => @client.api_version},
|
92
92
|
headers: request_headers.merge(custom_headers || {}),
|
93
93
|
base_url: request_url
|
94
94
|
}
|
@@ -162,7 +162,7 @@ module Azure::ARM::OperationalInsights
|
|
162
162
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
163
163
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
164
164
|
fail ArgumentError, 'intelligence_pack_name is nil' if intelligence_pack_name.nil?
|
165
|
-
api_version
|
165
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
166
166
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
167
167
|
|
168
168
|
|
@@ -178,7 +178,7 @@ module Azure::ARM::OperationalInsights
|
|
178
178
|
options = {
|
179
179
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
180
180
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'intelligencePackName' => intelligence_pack_name,'subscriptionId' => @client.subscription_id},
|
181
|
-
query_params: {'api-version' => api_version},
|
181
|
+
query_params: {'api-version' => @client.api_version},
|
182
182
|
headers: request_headers.merge(custom_headers || {}),
|
183
183
|
base_url: request_url
|
184
184
|
}
|
@@ -249,7 +249,7 @@ module Azure::ARM::OperationalInsights
|
|
249
249
|
def list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers = nil)
|
250
250
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
251
251
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
252
|
-
api_version
|
252
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
253
253
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
254
254
|
|
255
255
|
|
@@ -265,7 +265,7 @@ module Azure::ARM::OperationalInsights
|
|
265
265
|
options = {
|
266
266
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
267
267
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
268
|
-
query_params: {'api-version' => api_version},
|
268
|
+
query_params: {'api-version' => @client.api_version},
|
269
269
|
headers: request_headers.merge(custom_headers || {}),
|
270
270
|
base_url: request_url
|
271
271
|
}
|
@@ -357,7 +357,7 @@ module Azure::ARM::OperationalInsights
|
|
357
357
|
def get_shared_keys_async(resource_group_name, workspace_name, custom_headers = nil)
|
358
358
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
359
359
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
360
|
-
api_version
|
360
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
361
361
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
362
362
|
|
363
363
|
|
@@ -373,7 +373,7 @@ module Azure::ARM::OperationalInsights
|
|
373
373
|
options = {
|
374
374
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
375
375
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
376
|
-
query_params: {'api-version' => api_version},
|
376
|
+
query_params: {'api-version' => @client.api_version},
|
377
377
|
headers: request_headers.merge(custom_headers || {}),
|
378
378
|
base_url: request_url
|
379
379
|
}
|
@@ -393,7 +393,7 @@ module Azure::ARM::OperationalInsights
|
|
393
393
|
if status_code == 200
|
394
394
|
begin
|
395
395
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
396
|
-
result_mapper = Azure::
|
396
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SharedKeys.mapper()
|
397
397
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
398
398
|
rescue Exception => e
|
399
399
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -451,7 +451,7 @@ module Azure::ARM::OperationalInsights
|
|
451
451
|
def list_usages_async(resource_group_name, workspace_name, custom_headers = nil)
|
452
452
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
453
453
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
454
|
-
api_version
|
454
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
455
455
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
456
456
|
|
457
457
|
|
@@ -467,7 +467,7 @@ module Azure::ARM::OperationalInsights
|
|
467
467
|
options = {
|
468
468
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
469
469
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
470
|
-
query_params: {'api-version' => api_version},
|
470
|
+
query_params: {'api-version' => @client.api_version},
|
471
471
|
headers: request_headers.merge(custom_headers || {}),
|
472
472
|
base_url: request_url
|
473
473
|
}
|
@@ -487,7 +487,7 @@ module Azure::ARM::OperationalInsights
|
|
487
487
|
if status_code == 200
|
488
488
|
begin
|
489
489
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
490
|
-
result_mapper = Azure::
|
490
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListUsagesResult.mapper()
|
491
491
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
492
492
|
rescue Exception => e
|
493
493
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -545,7 +545,7 @@ module Azure::ARM::OperationalInsights
|
|
545
545
|
def list_management_groups_async(resource_group_name, workspace_name, custom_headers = nil)
|
546
546
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
547
547
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
548
|
-
api_version
|
548
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
549
549
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
550
550
|
|
551
551
|
|
@@ -561,7 +561,7 @@ module Azure::ARM::OperationalInsights
|
|
561
561
|
options = {
|
562
562
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
563
563
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
564
|
-
query_params: {'api-version' => api_version},
|
564
|
+
query_params: {'api-version' => @client.api_version},
|
565
565
|
headers: request_headers.merge(custom_headers || {}),
|
566
566
|
base_url: request_url
|
567
567
|
}
|
@@ -581,7 +581,7 @@ module Azure::ARM::OperationalInsights
|
|
581
581
|
if status_code == 200
|
582
582
|
begin
|
583
583
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
584
|
-
result_mapper = Azure::
|
584
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListManagementGroupsResult.mapper()
|
585
585
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
586
586
|
rescue Exception => e
|
587
587
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -635,7 +635,7 @@ module Azure::ARM::OperationalInsights
|
|
635
635
|
#
|
636
636
|
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
637
637
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
638
|
-
api_version
|
638
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
639
639
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
640
640
|
|
641
641
|
|
@@ -651,7 +651,7 @@ module Azure::ARM::OperationalInsights
|
|
651
651
|
options = {
|
652
652
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
653
653
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
654
|
-
query_params: {'api-version' => api_version},
|
654
|
+
query_params: {'api-version' => @client.api_version},
|
655
655
|
headers: request_headers.merge(custom_headers || {}),
|
656
656
|
base_url: request_url
|
657
657
|
}
|
@@ -671,7 +671,7 @@ module Azure::ARM::OperationalInsights
|
|
671
671
|
if status_code == 200
|
672
672
|
begin
|
673
673
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
674
|
-
result_mapper = Azure::
|
674
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult.mapper()
|
675
675
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
676
676
|
rescue Exception => e
|
677
677
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -718,7 +718,7 @@ module Azure::ARM::OperationalInsights
|
|
718
718
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
719
719
|
#
|
720
720
|
def list_async(custom_headers = nil)
|
721
|
-
api_version
|
721
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
722
722
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
723
723
|
|
724
724
|
|
@@ -734,7 +734,7 @@ module Azure::ARM::OperationalInsights
|
|
734
734
|
options = {
|
735
735
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
736
736
|
path_params: {'subscriptionId' => @client.subscription_id},
|
737
|
-
query_params: {'api-version' => api_version},
|
737
|
+
query_params: {'api-version' => @client.api_version},
|
738
738
|
headers: request_headers.merge(custom_headers || {}),
|
739
739
|
base_url: request_url
|
740
740
|
}
|
@@ -754,7 +754,7 @@ module Azure::ARM::OperationalInsights
|
|
754
754
|
if status_code == 200
|
755
755
|
begin
|
756
756
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
757
|
-
result_mapper = Azure::
|
757
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult.mapper()
|
758
758
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
759
759
|
rescue Exception => e
|
760
760
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -802,7 +802,7 @@ module Azure::ARM::OperationalInsights
|
|
802
802
|
promise = promise.then do |response|
|
803
803
|
# Defining deserialization method.
|
804
804
|
deserialize_method = lambda do |parsed_response|
|
805
|
-
result_mapper = Azure::
|
805
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
806
806
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
807
807
|
end
|
808
808
|
|
@@ -854,7 +854,7 @@ module Azure::ARM::OperationalInsights
|
|
854
854
|
def delete_async(resource_group_name, workspace_name, custom_headers = nil)
|
855
855
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
856
856
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
857
|
-
api_version
|
857
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
858
858
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
859
859
|
|
860
860
|
|
@@ -870,7 +870,7 @@ module Azure::ARM::OperationalInsights
|
|
870
870
|
options = {
|
871
871
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
872
872
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
873
|
-
query_params: {'api-version' => api_version},
|
873
|
+
query_params: {'api-version' => @client.api_version},
|
874
874
|
headers: request_headers.merge(custom_headers || {}),
|
875
875
|
base_url: request_url
|
876
876
|
}
|
@@ -935,7 +935,7 @@ module Azure::ARM::OperationalInsights
|
|
935
935
|
def get_async(resource_group_name, workspace_name, custom_headers = nil)
|
936
936
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
937
937
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
938
|
-
api_version
|
938
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
939
939
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
940
940
|
|
941
941
|
|
@@ -951,7 +951,7 @@ module Azure::ARM::OperationalInsights
|
|
951
951
|
options = {
|
952
952
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
953
953
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
954
|
-
query_params: {'api-version' => api_version},
|
954
|
+
query_params: {'api-version' => @client.api_version},
|
955
955
|
headers: request_headers.merge(custom_headers || {}),
|
956
956
|
base_url: request_url
|
957
957
|
}
|
@@ -971,355 +971,7 @@ module Azure::ARM::OperationalInsights
|
|
971
971
|
if status_code == 200
|
972
972
|
begin
|
973
973
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
974
|
-
result_mapper = Azure::
|
975
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
976
|
-
rescue Exception => e
|
977
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
978
|
-
end
|
979
|
-
end
|
980
|
-
|
981
|
-
result
|
982
|
-
end
|
983
|
-
|
984
|
-
promise.execute
|
985
|
-
end
|
986
|
-
|
987
|
-
#
|
988
|
-
# Get a list of workspaces which the current user has administrator privileges
|
989
|
-
# and are not associated with an Azure Subscription. The subscriptionId
|
990
|
-
# parameter in the Url is ignored.
|
991
|
-
#
|
992
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
993
|
-
# will be added to the HTTP request.
|
994
|
-
#
|
995
|
-
# @return [Array] operation results.
|
996
|
-
#
|
997
|
-
def list_link_targets(custom_headers = nil)
|
998
|
-
response = list_link_targets_async(custom_headers).value!
|
999
|
-
response.body unless response.nil?
|
1000
|
-
end
|
1001
|
-
|
1002
|
-
#
|
1003
|
-
# Get a list of workspaces which the current user has administrator privileges
|
1004
|
-
# and are not associated with an Azure Subscription. The subscriptionId
|
1005
|
-
# parameter in the Url is ignored.
|
1006
|
-
#
|
1007
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1008
|
-
# will be added to the HTTP request.
|
1009
|
-
#
|
1010
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1011
|
-
#
|
1012
|
-
def list_link_targets_with_http_info(custom_headers = nil)
|
1013
|
-
list_link_targets_async(custom_headers).value!
|
1014
|
-
end
|
1015
|
-
|
1016
|
-
#
|
1017
|
-
# Get a list of workspaces which the current user has administrator privileges
|
1018
|
-
# and are not associated with an Azure Subscription. The subscriptionId
|
1019
|
-
# parameter in the Url is ignored.
|
1020
|
-
#
|
1021
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1022
|
-
# to the HTTP request.
|
1023
|
-
#
|
1024
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1025
|
-
#
|
1026
|
-
def list_link_targets_async(custom_headers = nil)
|
1027
|
-
api_version = '2015-03-20'
|
1028
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1029
|
-
|
1030
|
-
|
1031
|
-
request_headers = {}
|
1032
|
-
|
1033
|
-
# Set Headers
|
1034
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1035
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1036
|
-
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/linkTargets'
|
1037
|
-
|
1038
|
-
request_url = @base_url || @client.base_url
|
1039
|
-
|
1040
|
-
options = {
|
1041
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1042
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
1043
|
-
query_params: {'api-version' => api_version},
|
1044
|
-
headers: request_headers.merge(custom_headers || {}),
|
1045
|
-
base_url: request_url
|
1046
|
-
}
|
1047
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1048
|
-
|
1049
|
-
promise = promise.then do |result|
|
1050
|
-
http_response = result.response
|
1051
|
-
status_code = http_response.status
|
1052
|
-
response_content = http_response.body
|
1053
|
-
unless status_code == 200
|
1054
|
-
error_model = JSON.load(response_content)
|
1055
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1056
|
-
end
|
1057
|
-
|
1058
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1059
|
-
# Deserialize Response
|
1060
|
-
if status_code == 200
|
1061
|
-
begin
|
1062
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1063
|
-
result_mapper = {
|
1064
|
-
required: false,
|
1065
|
-
serialized_name: 'parsed_response',
|
1066
|
-
type: {
|
1067
|
-
name: 'Sequence',
|
1068
|
-
element: {
|
1069
|
-
required: false,
|
1070
|
-
serialized_name: 'LinkTargetElementType',
|
1071
|
-
type: {
|
1072
|
-
name: 'Composite',
|
1073
|
-
class_name: 'LinkTarget'
|
1074
|
-
}
|
1075
|
-
}
|
1076
|
-
}
|
1077
|
-
}
|
1078
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
1079
|
-
rescue Exception => e
|
1080
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1081
|
-
end
|
1082
|
-
end
|
1083
|
-
|
1084
|
-
result
|
1085
|
-
end
|
1086
|
-
|
1087
|
-
promise.execute
|
1088
|
-
end
|
1089
|
-
|
1090
|
-
#
|
1091
|
-
# Gets the schema for a given workspace.
|
1092
|
-
#
|
1093
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1094
|
-
# The name is case insensitive.
|
1095
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1096
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1097
|
-
# will be added to the HTTP request.
|
1098
|
-
#
|
1099
|
-
# @return [SearchGetSchemaResponse] operation results.
|
1100
|
-
#
|
1101
|
-
def get_schema(resource_group_name, workspace_name, custom_headers = nil)
|
1102
|
-
response = get_schema_async(resource_group_name, workspace_name, custom_headers).value!
|
1103
|
-
response.body unless response.nil?
|
1104
|
-
end
|
1105
|
-
|
1106
|
-
#
|
1107
|
-
# Gets the schema for a given workspace.
|
1108
|
-
#
|
1109
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1110
|
-
# The name is case insensitive.
|
1111
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1112
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1113
|
-
# will be added to the HTTP request.
|
1114
|
-
#
|
1115
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1116
|
-
#
|
1117
|
-
def get_schema_with_http_info(resource_group_name, workspace_name, custom_headers = nil)
|
1118
|
-
get_schema_async(resource_group_name, workspace_name, custom_headers).value!
|
1119
|
-
end
|
1120
|
-
|
1121
|
-
#
|
1122
|
-
# Gets the schema for a given workspace.
|
1123
|
-
#
|
1124
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1125
|
-
# The name is case insensitive.
|
1126
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1127
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1128
|
-
# to the HTTP request.
|
1129
|
-
#
|
1130
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1131
|
-
#
|
1132
|
-
def get_schema_async(resource_group_name, workspace_name, custom_headers = nil)
|
1133
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1134
|
-
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1135
|
-
api_version = '2015-03-20'
|
1136
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1137
|
-
|
1138
|
-
|
1139
|
-
request_headers = {}
|
1140
|
-
|
1141
|
-
# Set Headers
|
1142
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1143
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1144
|
-
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema'
|
1145
|
-
|
1146
|
-
request_url = @base_url || @client.base_url
|
1147
|
-
|
1148
|
-
options = {
|
1149
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1150
|
-
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
1151
|
-
query_params: {'api-version' => api_version},
|
1152
|
-
headers: request_headers.merge(custom_headers || {}),
|
1153
|
-
base_url: request_url
|
1154
|
-
}
|
1155
|
-
promise = @client.make_request_async(:post, path_template, options)
|
1156
|
-
|
1157
|
-
promise = promise.then do |result|
|
1158
|
-
http_response = result.response
|
1159
|
-
status_code = http_response.status
|
1160
|
-
response_content = http_response.body
|
1161
|
-
unless status_code == 200
|
1162
|
-
error_model = JSON.load(response_content)
|
1163
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1164
|
-
end
|
1165
|
-
|
1166
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1167
|
-
# Deserialize Response
|
1168
|
-
if status_code == 200
|
1169
|
-
begin
|
1170
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1171
|
-
result_mapper = Azure::ARM::OperationalInsights::Models::SearchGetSchemaResponse.mapper()
|
1172
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
1173
|
-
rescue Exception => e
|
1174
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1175
|
-
end
|
1176
|
-
end
|
1177
|
-
|
1178
|
-
result
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
promise.execute
|
1182
|
-
end
|
1183
|
-
|
1184
|
-
#
|
1185
|
-
# Submit a search for a given workspace. The response will contain an id to
|
1186
|
-
# track the search. User can use the id to poll the search status and get the
|
1187
|
-
# full search result later if the search takes long time to finish.
|
1188
|
-
#
|
1189
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1190
|
-
# The name is case insensitive.
|
1191
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1192
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
1193
|
-
# search query.
|
1194
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1195
|
-
# will be added to the HTTP request.
|
1196
|
-
#
|
1197
|
-
# @return [SearchResultsResponse] operation results.
|
1198
|
-
#
|
1199
|
-
def get_search_results(resource_group_name, workspace_name, parameters, custom_headers = nil)
|
1200
|
-
response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
1201
|
-
response.body unless response.nil?
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
#
|
1205
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1206
|
-
# The name is case insensitive.
|
1207
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1208
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
1209
|
-
# search query.
|
1210
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1211
|
-
# will be added to the HTTP request.
|
1212
|
-
#
|
1213
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
1214
|
-
# response.
|
1215
|
-
#
|
1216
|
-
def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers = nil)
|
1217
|
-
# Send request
|
1218
|
-
promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers)
|
1219
|
-
|
1220
|
-
promise = promise.then do |response|
|
1221
|
-
# Defining deserialization method.
|
1222
|
-
deserialize_method = lambda do |parsed_response|
|
1223
|
-
result_mapper = Azure::ARM::OperationalInsights::Models::SearchResultsResponse.mapper()
|
1224
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
1225
|
-
end
|
1226
|
-
|
1227
|
-
# Waiting for response.
|
1228
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
1229
|
-
end
|
1230
|
-
|
1231
|
-
promise
|
1232
|
-
end
|
1233
|
-
|
1234
|
-
#
|
1235
|
-
# Gets updated search results for a given search query.
|
1236
|
-
#
|
1237
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1238
|
-
# The name is case insensitive.
|
1239
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1240
|
-
# @param id [String] The id of the search that will have results updated. You
|
1241
|
-
# can get the id from the response of the GetResults call.
|
1242
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1243
|
-
# will be added to the HTTP request.
|
1244
|
-
#
|
1245
|
-
# @return [SearchResultsResponse] operation results.
|
1246
|
-
#
|
1247
|
-
def update_search_results(resource_group_name, workspace_name, id, custom_headers = nil)
|
1248
|
-
response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value!
|
1249
|
-
response.body unless response.nil?
|
1250
|
-
end
|
1251
|
-
|
1252
|
-
#
|
1253
|
-
# Gets updated search results for a given search query.
|
1254
|
-
#
|
1255
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1256
|
-
# The name is case insensitive.
|
1257
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1258
|
-
# @param id [String] The id of the search that will have results updated. You
|
1259
|
-
# can get the id from the response of the GetResults call.
|
1260
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1261
|
-
# will be added to the HTTP request.
|
1262
|
-
#
|
1263
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1264
|
-
#
|
1265
|
-
def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers = nil)
|
1266
|
-
update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value!
|
1267
|
-
end
|
1268
|
-
|
1269
|
-
#
|
1270
|
-
# Gets updated search results for a given search query.
|
1271
|
-
#
|
1272
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1273
|
-
# The name is case insensitive.
|
1274
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1275
|
-
# @param id [String] The id of the search that will have results updated. You
|
1276
|
-
# can get the id from the response of the GetResults call.
|
1277
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1278
|
-
# to the HTTP request.
|
1279
|
-
#
|
1280
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1281
|
-
#
|
1282
|
-
def update_search_results_async(resource_group_name, workspace_name, id, custom_headers = nil)
|
1283
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1284
|
-
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1285
|
-
fail ArgumentError, 'id is nil' if id.nil?
|
1286
|
-
api_version = '2015-03-20'
|
1287
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1288
|
-
|
1289
|
-
|
1290
|
-
request_headers = {}
|
1291
|
-
|
1292
|
-
# Set Headers
|
1293
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1294
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1295
|
-
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search/{id}'
|
1296
|
-
|
1297
|
-
request_url = @base_url || @client.base_url
|
1298
|
-
|
1299
|
-
options = {
|
1300
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1301
|
-
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'id' => id,'subscriptionId' => @client.subscription_id},
|
1302
|
-
query_params: {'api-version' => api_version},
|
1303
|
-
headers: request_headers.merge(custom_headers || {}),
|
1304
|
-
base_url: request_url
|
1305
|
-
}
|
1306
|
-
promise = @client.make_request_async(:post, path_template, options)
|
1307
|
-
|
1308
|
-
promise = promise.then do |result|
|
1309
|
-
http_response = result.response
|
1310
|
-
status_code = http_response.status
|
1311
|
-
response_content = http_response.body
|
1312
|
-
unless status_code == 200
|
1313
|
-
error_model = JSON.load(response_content)
|
1314
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1315
|
-
end
|
1316
|
-
|
1317
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1318
|
-
# Deserialize Response
|
1319
|
-
if status_code == 200
|
1320
|
-
begin
|
1321
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1322
|
-
result_mapper = Azure::ARM::OperationalInsights::Models::SearchResultsResponse.mapper()
|
974
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1323
975
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1324
976
|
rescue Exception => e
|
1325
977
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1381,7 +1033,7 @@ module Azure::ARM::OperationalInsights
|
|
1381
1033
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1382
1034
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1383
1035
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1384
|
-
api_version
|
1036
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1385
1037
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1386
1038
|
|
1387
1039
|
|
@@ -1394,7 +1046,7 @@ module Azure::ARM::OperationalInsights
|
|
1394
1046
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1395
1047
|
|
1396
1048
|
# Serialize Request
|
1397
|
-
request_mapper = Azure::
|
1049
|
+
request_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1398
1050
|
request_content = @client.serialize(request_mapper, parameters)
|
1399
1051
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1400
1052
|
|
@@ -1405,7 +1057,7 @@ module Azure::ARM::OperationalInsights
|
|
1405
1057
|
options = {
|
1406
1058
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1407
1059
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
1408
|
-
query_params: {'api-version' => api_version},
|
1060
|
+
query_params: {'api-version' => @client.api_version},
|
1409
1061
|
body: request_content,
|
1410
1062
|
headers: request_headers.merge(custom_headers || {}),
|
1411
1063
|
base_url: request_url
|
@@ -1426,7 +1078,7 @@ module Azure::ARM::OperationalInsights
|
|
1426
1078
|
if status_code == 200
|
1427
1079
|
begin
|
1428
1080
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1429
|
-
result_mapper = Azure::
|
1081
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1430
1082
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1431
1083
|
rescue Exception => e
|
1432
1084
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1436,123 +1088,7 @@ module Azure::ARM::OperationalInsights
|
|
1436
1088
|
if status_code == 201
|
1437
1089
|
begin
|
1438
1090
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1439
|
-
result_mapper = Azure::
|
1440
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
1441
|
-
rescue Exception => e
|
1442
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1443
|
-
end
|
1444
|
-
end
|
1445
|
-
|
1446
|
-
result
|
1447
|
-
end
|
1448
|
-
|
1449
|
-
promise.execute
|
1450
|
-
end
|
1451
|
-
|
1452
|
-
#
|
1453
|
-
# Submit a search for a given workspace. The response will contain an id to
|
1454
|
-
# track the search. User can use the id to poll the search status and get the
|
1455
|
-
# full search result later if the search takes long time to finish.
|
1456
|
-
#
|
1457
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1458
|
-
# The name is case insensitive.
|
1459
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1460
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
1461
|
-
# search query.
|
1462
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1463
|
-
# will be added to the HTTP request.
|
1464
|
-
#
|
1465
|
-
# @return [SearchResultsResponse] operation results.
|
1466
|
-
#
|
1467
|
-
def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers = nil)
|
1468
|
-
response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
1469
|
-
response.body unless response.nil?
|
1470
|
-
end
|
1471
|
-
|
1472
|
-
#
|
1473
|
-
# Submit a search for a given workspace. The response will contain an id to
|
1474
|
-
# track the search. User can use the id to poll the search status and get the
|
1475
|
-
# full search result later if the search takes long time to finish.
|
1476
|
-
#
|
1477
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1478
|
-
# The name is case insensitive.
|
1479
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1480
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
1481
|
-
# search query.
|
1482
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1483
|
-
# will be added to the HTTP request.
|
1484
|
-
#
|
1485
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1486
|
-
#
|
1487
|
-
def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers = nil)
|
1488
|
-
begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value!
|
1489
|
-
end
|
1490
|
-
|
1491
|
-
#
|
1492
|
-
# Submit a search for a given workspace. The response will contain an id to
|
1493
|
-
# track the search. User can use the id to poll the search status and get the
|
1494
|
-
# full search result later if the search takes long time to finish.
|
1495
|
-
#
|
1496
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
1497
|
-
# The name is case insensitive.
|
1498
|
-
# @param workspace_name [String] Log Analytics workspace name
|
1499
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
1500
|
-
# search query.
|
1501
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1502
|
-
# to the HTTP request.
|
1503
|
-
#
|
1504
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1505
|
-
#
|
1506
|
-
def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers = nil)
|
1507
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1508
|
-
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
1509
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1510
|
-
api_version = '2015-03-20'
|
1511
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1512
|
-
|
1513
|
-
|
1514
|
-
request_headers = {}
|
1515
|
-
|
1516
|
-
# Set Headers
|
1517
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1518
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1519
|
-
|
1520
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1521
|
-
|
1522
|
-
# Serialize Request
|
1523
|
-
request_mapper = Azure::ARM::OperationalInsights::Models::SearchParameters.mapper()
|
1524
|
-
request_content = @client.serialize(request_mapper, parameters)
|
1525
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1526
|
-
|
1527
|
-
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search'
|
1528
|
-
|
1529
|
-
request_url = @base_url || @client.base_url
|
1530
|
-
|
1531
|
-
options = {
|
1532
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1533
|
-
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
1534
|
-
query_params: {'api-version' => api_version},
|
1535
|
-
body: request_content,
|
1536
|
-
headers: request_headers.merge(custom_headers || {}),
|
1537
|
-
base_url: request_url
|
1538
|
-
}
|
1539
|
-
promise = @client.make_request_async(:post, path_template, options)
|
1540
|
-
|
1541
|
-
promise = promise.then do |result|
|
1542
|
-
http_response = result.response
|
1543
|
-
status_code = http_response.status
|
1544
|
-
response_content = http_response.body
|
1545
|
-
unless status_code == 200 || status_code == 202
|
1546
|
-
error_model = JSON.load(response_content)
|
1547
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1548
|
-
end
|
1549
|
-
|
1550
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1551
|
-
# Deserialize Response
|
1552
|
-
if status_code == 200
|
1553
|
-
begin
|
1554
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1555
|
-
result_mapper = Azure::ARM::OperationalInsights::Models::SearchResultsResponse.mapper()
|
1091
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace.mapper()
|
1556
1092
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1557
1093
|
rescue Exception => e
|
1558
1094
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|