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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-03-20/generated/azure_mgmt_operational_insights.rb +52 -0
  3. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/core_summary.rb +1 -1
  4. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/link_target.rb +1 -1
  5. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/proxy_resource.rb +1 -1
  6. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/resource.rb +1 -1
  7. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/saved_search.rb +1 -1
  8. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +1 -1
  9. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_error.rb +1 -1
  10. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_get_schema_response.rb +1 -1
  11. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_highlight.rb +1 -1
  12. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_metadata.rb +1 -1
  13. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_metadata_schema.rb +1 -1
  14. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_parameters.rb +1 -1
  15. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_results_response.rb +1 -1
  16. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_schema_value.rb +1 -1
  17. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_sort.rb +1 -1
  18. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/search_sort_enum.rb +1 -1
  19. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_account.rb +1 -1
  20. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight.rb +1 -1
  21. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +1 -1
  22. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_state.rb +1 -1
  23. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/storage_insight_status.rb +1 -1
  24. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/models/tag.rb +1 -1
  25. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
  26. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/operational_insights_management_client.rb +10 -14
  27. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/saved_searches.rb +16 -16
  28. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/storage_insights.rb +15 -15
  29. data/lib/{generated → 2015-03-20/generated}/azure_mgmt_operational_insights/version.rb +2 -2
  30. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +489 -0
  31. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +50 -0
  32. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/azure_log_analytics.rb +139 -0
  33. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/data_sources.rb +17 -17
  34. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/linked_services.rb +16 -16
  35. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source.rb +1 -1
  36. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_filter.rb +1 -1
  37. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_kind.rb +1 -1
  38. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/data_source_list_result.rb +1 -1
  39. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/entity_status.rb +1 -1
  40. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/intelligence_pack.rb +1 -1
  41. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/linked_service.rb +1 -1
  42. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/linked_service_list_result.rb +1 -1
  43. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/management_group.rb +1 -1
  44. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/metric_name.rb +1 -1
  45. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +84 -0
  46. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +94 -0
  47. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/shared_keys.rb +1 -1
  48. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/sku.rb +1 -1
  49. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/sku_name_enum.rb +1 -1
  50. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/usage_metric.rb +1 -1
  51. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace.rb +1 -1
  52. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +1 -1
  53. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_result.rb +1 -1
  54. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +1 -1
  55. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
  56. data/lib/{generated/azure_mgmt_operational_insights/module_definition.rb → 2015-11-01-preview/generated/azure_mgmt_operational_insights/version.rb} +3 -3
  57. data/lib/{generated → 2015-11-01-preview/generated}/azure_mgmt_operational_insights/workspaces.rb +35 -499
  58. data/lib/azure_mgmt_operational_insights.rb +3 -4
  59. data/lib/module_definition.rb +7 -0
  60. data/lib/profiles/common/configurable.rb +73 -0
  61. data/lib/profiles/common/default.rb +68 -0
  62. data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +215 -0
  63. data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +33 -0
  64. data/lib/profiles/latest/operationalinsights_module_definition.rb +9 -0
  65. data/lib/version.rb +7 -0
  66. metadata +65 -51
  67. 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: 86b485116b54fbe596761e37e3251f99ea6a4d14
4
- data.tar.gz: 96b11540ba2b4bc262906573b191a38abcf08aa1
3
+ metadata.gz: e31dd53bd23577b7f7d29c5bd23ddaedc05c3bea
4
+ data.tar.gz: 71b682198dfb86ec68997cad9e2d353fadda6668
5
5
  SHA512:
6
- metadata.gz: 423895ef3bba97f488be3723da500fae54eb374ebe8c51c79f5d57c72d99565e0f9d222960573d16fcf3c4ae5923cb855245d272e563b4defc3ab50fd50a2b41
7
- data.tar.gz: 389c3b7e6ecb04ee6f92a1e2e2d8dc14f0e2e78dfe3c9d0f6f6d6adeacfe8bb586cf496c8d117b40f71e314a567024b6db4fc946e9b3c6a4222b57391fe43874
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
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The core summary of a search.
@@ -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::ARM::OperationalInsights
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.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Common properties of proxy resource.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The resource definition.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Value object for saved search results.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The saved search 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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Details for a search error.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The get schema 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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Highlight details.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Metadata for search results.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Schema metadata for search.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Parameters specifying the search query and range.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The get search result 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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Value object for schema results.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The sort parameters for search.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Defines values for SearchSortEnum
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Describes a storage account connection.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The top level storage insight 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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The list storage insights 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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # Defines values for StorageInsightState
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # The status of the storage insight.
@@ -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::ARM::OperationalInsights
6
+ module Azure::OperationalInsights::Mgmt::V2015_03_20
7
7
  module Models
8
8
  #
9
9
  # A tag of a saved search.
@@ -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::ARM::OperationalInsights
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 [LinkedServices] linked_services
37
- attr_reader :linked_services
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::ARM::OperationalInsights::VERSION
138
- sdk_information = "#{sdk_information}/#{Azure::ARM::OperationalInsights::VERSION}"
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
@@ -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::ARM::OperationalInsights
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 = '2015-03-20'
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 = '2015-03-20'
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::ARM::OperationalInsights::Models::SavedSearch.mapper()
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::ARM::OperationalInsights::Models::SavedSearch.mapper()
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 = '2015-03-20'
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::ARM::OperationalInsights::Models::SavedSearch.mapper()
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 = '2015-03-20'
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::ARM::OperationalInsights::Models::SavedSearchesListResult.mapper()
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 = '2015-03-20'
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::ARM::OperationalInsights::Models::SearchResultsResponse.mapper()
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)