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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e31dd53bd23577b7f7d29c5bd23ddaedc05c3bea
|
4
|
+
data.tar.gz: 71b682198dfb86ec68997cad9e2d353fadda6668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9af0d131bbbe7f3e3a66e73a0223cb65cc60195cbc3660c4d087d0b1495f289170212d5ee3f5e23fd96b8feedcf6fc5791b741f350d71e6ec2d6f98f1110ada3
|
7
|
+
data.tar.gz: 7a7a674330274783375d4f5d41ef86a56e774d4725deecb38577f6102e36a00e0dd1d7fec81f1d0e775562d13bd5fd88ac8e9422f5310f1a90ec6a45385a03aa
|
@@ -0,0 +1,52 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2015-03-20/generated/azure_mgmt_operational_insights/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::OperationalInsights::Mgmt::V2015_03_20
|
23
|
+
autoload :StorageInsights, '2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb'
|
24
|
+
autoload :Workspaces, '2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb'
|
25
|
+
autoload :SavedSearches, '2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb'
|
26
|
+
autoload :OperationalInsightsManagementClient, '2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :SearchSchemaValue, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_schema_value.rb'
|
30
|
+
autoload :LinkTarget, '2015-03-20/generated/azure_mgmt_operational_insights/models/link_target.rb'
|
31
|
+
autoload :SearchGetSchemaResponse, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb'
|
32
|
+
autoload :CoreSummary, '2015-03-20/generated/azure_mgmt_operational_insights/models/core_summary.rb'
|
33
|
+
autoload :SearchHighlight, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_highlight.rb'
|
34
|
+
autoload :SearchMetadataSchema, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb'
|
35
|
+
autoload :SearchParameters, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb'
|
36
|
+
autoload :SavedSearch, '2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb'
|
37
|
+
autoload :StorageAccount, '2015-03-20/generated/azure_mgmt_operational_insights/models/storage_account.rb'
|
38
|
+
autoload :SearchError, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_error.rb'
|
39
|
+
autoload :StorageInsightStatus, '2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb'
|
40
|
+
autoload :Tag, '2015-03-20/generated/azure_mgmt_operational_insights/models/tag.rb'
|
41
|
+
autoload :SearchSort, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_sort.rb'
|
42
|
+
autoload :SavedSearchesListResult, '2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb'
|
43
|
+
autoload :StorageInsightListResult, '2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb'
|
44
|
+
autoload :SearchMetadata, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata.rb'
|
45
|
+
autoload :Resource, '2015-03-20/generated/azure_mgmt_operational_insights/models/resource.rb'
|
46
|
+
autoload :SearchResultsResponse, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_results_response.rb'
|
47
|
+
autoload :ProxyResource, '2015-03-20/generated/azure_mgmt_operational_insights/models/proxy_resource.rb'
|
48
|
+
autoload :StorageInsight, '2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight.rb'
|
49
|
+
autoload :SearchSortEnum, '2015-03-20/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb'
|
50
|
+
autoload :StorageInsightState, '2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb'
|
51
|
+
end
|
52
|
+
end
|
data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/link_target.rb
RENAMED
@@ -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_03_20
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Metadata for a workspace that isn't linked to an Azure subscription.
|
@@ -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_03_20 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_03_20
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -22,6 +22,9 @@ module Azure::ARM::OperationalInsights
|
|
22
22
|
# for every service call.
|
23
23
|
attr_accessor :subscription_id
|
24
24
|
|
25
|
+
# @return [String] Client Api Version.
|
26
|
+
attr_reader :api_version
|
27
|
+
|
25
28
|
# @return [String] Gets or sets the preferred language for the response.
|
26
29
|
attr_accessor :accept_language
|
27
30
|
|
@@ -33,18 +36,12 @@ module Azure::ARM::OperationalInsights
|
|
33
36
|
# is generated and included in each request. Default is true.
|
34
37
|
attr_accessor :generate_client_request_id
|
35
38
|
|
36
|
-
# @return [
|
37
|
-
attr_reader :
|
38
|
-
|
39
|
-
# @return [DataSources] data_sources
|
40
|
-
attr_reader :data_sources
|
39
|
+
# @return [StorageInsights] storage_insights
|
40
|
+
attr_reader :storage_insights
|
41
41
|
|
42
42
|
# @return [Workspaces] workspaces
|
43
43
|
attr_reader :workspaces
|
44
44
|
|
45
|
-
# @return [StorageInsights] storage_insights
|
46
|
-
attr_reader :storage_insights
|
47
|
-
|
48
45
|
# @return [SavedSearches] saved_searches
|
49
46
|
attr_reader :saved_searches
|
50
47
|
|
@@ -61,11 +58,10 @@ module Azure::ARM::OperationalInsights
|
|
61
58
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
62
59
|
@credentials = credentials
|
63
60
|
|
64
|
-
@linked_services = LinkedServices.new(self)
|
65
|
-
@data_sources = DataSources.new(self)
|
66
|
-
@workspaces = Workspaces.new(self)
|
67
61
|
@storage_insights = StorageInsights.new(self)
|
62
|
+
@workspaces = Workspaces.new(self)
|
68
63
|
@saved_searches = SavedSearches.new(self)
|
64
|
+
@api_version = '2015-03-20'
|
69
65
|
@accept_language = 'en-US'
|
70
66
|
@long_running_operation_retry_timeout = 30
|
71
67
|
@generate_client_request_id = true
|
@@ -134,8 +130,8 @@ module Azure::ARM::OperationalInsights
|
|
134
130
|
#
|
135
131
|
def add_telemetry
|
136
132
|
sdk_information = 'azure_mgmt_operational_insights'
|
137
|
-
if defined? Azure::
|
138
|
-
sdk_information = "#{sdk_information}/#{Azure::
|
133
|
+
if defined? Azure::OperationalInsights::Mgmt::V2015_03_20::VERSION
|
134
|
+
sdk_information = "#{sdk_information}/#{Azure::OperationalInsights::Mgmt::V2015_03_20::VERSION}"
|
139
135
|
end
|
140
136
|
add_user_agent_information(sdk_information)
|
141
137
|
end
|
data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/saved_searches.rb
RENAMED
@@ -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_03_20
|
7
7
|
#
|
8
8
|
# Operational Insights Client
|
9
9
|
#
|
@@ -69,7 +69,7 @@ module Azure::ARM::OperationalInsights
|
|
69
69
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
70
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
71
71
|
fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
|
72
|
-
api_version
|
72
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
73
73
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
74
|
|
75
75
|
|
@@ -85,7 +85,7 @@ module Azure::ARM::OperationalInsights
|
|
85
85
|
options = {
|
86
86
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
87
87
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'savedSearchName' => saved_search_name,'subscriptionId' => @client.subscription_id},
|
88
|
-
query_params: {'api-version' => api_version},
|
88
|
+
query_params: {'api-version' => @client.api_version},
|
89
89
|
headers: request_headers.merge(custom_headers || {}),
|
90
90
|
base_url: request_url
|
91
91
|
}
|
@@ -161,7 +161,7 @@ module Azure::ARM::OperationalInsights
|
|
161
161
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
162
162
|
fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
|
163
163
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
164
|
-
api_version
|
164
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
165
165
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
166
166
|
|
167
167
|
|
@@ -174,7 +174,7 @@ module Azure::ARM::OperationalInsights
|
|
174
174
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
175
175
|
|
176
176
|
# Serialize Request
|
177
|
-
request_mapper = Azure::
|
177
|
+
request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch.mapper()
|
178
178
|
request_content = @client.serialize(request_mapper, parameters)
|
179
179
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
180
180
|
|
@@ -185,7 +185,7 @@ module Azure::ARM::OperationalInsights
|
|
185
185
|
options = {
|
186
186
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
187
187
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'savedSearchName' => saved_search_name,'subscriptionId' => @client.subscription_id},
|
188
|
-
query_params: {'api-version' => api_version},
|
188
|
+
query_params: {'api-version' => @client.api_version},
|
189
189
|
body: request_content,
|
190
190
|
headers: request_headers.merge(custom_headers || {}),
|
191
191
|
base_url: request_url
|
@@ -206,7 +206,7 @@ module Azure::ARM::OperationalInsights
|
|
206
206
|
if status_code == 200
|
207
207
|
begin
|
208
208
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
209
|
-
result_mapper = Azure::
|
209
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch.mapper()
|
210
210
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
211
211
|
rescue Exception => e
|
212
212
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -268,7 +268,7 @@ module Azure::ARM::OperationalInsights
|
|
268
268
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
269
269
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
270
270
|
fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
|
271
|
-
api_version
|
271
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
272
272
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
273
273
|
|
274
274
|
|
@@ -284,7 +284,7 @@ module Azure::ARM::OperationalInsights
|
|
284
284
|
options = {
|
285
285
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
286
286
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'savedSearchName' => saved_search_name,'subscriptionId' => @client.subscription_id},
|
287
|
-
query_params: {'api-version' => api_version},
|
287
|
+
query_params: {'api-version' => @client.api_version},
|
288
288
|
headers: request_headers.merge(custom_headers || {}),
|
289
289
|
base_url: request_url
|
290
290
|
}
|
@@ -304,7 +304,7 @@ module Azure::ARM::OperationalInsights
|
|
304
304
|
if status_code == 200
|
305
305
|
begin
|
306
306
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
307
|
-
result_mapper = Azure::
|
307
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch.mapper()
|
308
308
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
309
309
|
rescue Exception => e
|
310
310
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -362,7 +362,7 @@ module Azure::ARM::OperationalInsights
|
|
362
362
|
def list_by_workspace_async(resource_group_name, workspace_name, custom_headers = nil)
|
363
363
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
364
364
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
365
|
-
api_version
|
365
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
366
366
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
367
367
|
|
368
368
|
|
@@ -378,7 +378,7 @@ module Azure::ARM::OperationalInsights
|
|
378
378
|
options = {
|
379
379
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
380
380
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
381
|
-
query_params: {'api-version' => api_version},
|
381
|
+
query_params: {'api-version' => @client.api_version},
|
382
382
|
headers: request_headers.merge(custom_headers || {}),
|
383
383
|
base_url: request_url
|
384
384
|
}
|
@@ -398,7 +398,7 @@ module Azure::ARM::OperationalInsights
|
|
398
398
|
if status_code == 200
|
399
399
|
begin
|
400
400
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
401
|
-
result_mapper = Azure::
|
401
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult.mapper()
|
402
402
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
403
403
|
rescue Exception => e
|
404
404
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -460,7 +460,7 @@ module Azure::ARM::OperationalInsights
|
|
460
460
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
461
461
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
462
462
|
fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
|
463
|
-
api_version
|
463
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
464
464
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
465
465
|
|
466
466
|
|
@@ -476,7 +476,7 @@ module Azure::ARM::OperationalInsights
|
|
476
476
|
options = {
|
477
477
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
478
478
|
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'savedSearchName' => saved_search_name,'subscriptionId' => @client.subscription_id},
|
479
|
-
query_params: {'api-version' => api_version},
|
479
|
+
query_params: {'api-version' => @client.api_version},
|
480
480
|
headers: request_headers.merge(custom_headers || {}),
|
481
481
|
base_url: request_url
|
482
482
|
}
|
@@ -496,7 +496,7 @@ module Azure::ARM::OperationalInsights
|
|
496
496
|
if status_code == 200
|
497
497
|
begin
|
498
498
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
499
|
-
result_mapper = Azure::
|
499
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse.mapper()
|
500
500
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
501
501
|
rescue Exception => e
|
502
502
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|