azure_mgmt_operational_insights 0.16.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-03-20/generated/azure_mgmt_operational_insights.rb +17 -13
  3. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
  4. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation.rb +1 -1
  5. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_display.rb +1 -1
  6. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +3 -3
  7. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
  8. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/resource.rb +9 -0
  9. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +5 -5
  10. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +4 -3
  11. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/{search_highlight.rb → shared_keys.rb} +13 -13
  12. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
  13. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +2 -3
  14. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
  15. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
  16. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
  17. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
  18. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +17 -10
  19. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operations.rb +2 -0
  20. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +69 -175
  21. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +36 -52
  22. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +463 -108
  23. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +9 -7
  24. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +10 -0
  25. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +8 -0
  26. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +1 -1
  27. data/lib/{2015-03-20/generated/azure_mgmt_operational_insights/models/search_error.rb → 2015-11-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb} +11 -11
  28. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +1 -1
  29. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
  30. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +9 -0
  31. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb +2 -1
  32. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +2 -1
  33. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +9 -10
  34. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +1 -1
  35. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +101 -6
  36. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operations.rb +4 -0
  37. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +24 -0
  38. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights.rb +123 -0
  39. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
  40. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
  41. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb +473 -0
  42. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
  43. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
  44. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
  45. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
  46. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
  47. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
  48. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
  49. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
  50. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +75 -0
  51. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
  52. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
  53. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
  54. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
  55. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
  56. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
  57. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
  58. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
  59. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb +174 -0
  60. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
  61. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
  62. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
  63. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
  64. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
  65. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
  66. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
  67. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_type.rb +16 -0
  68. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
  69. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
  70. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +113 -0
  71. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
  72. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
  73. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
  74. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
  75. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
  76. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
  77. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
  78. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
  79. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
  80. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
  81. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
  82. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
  83. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
  84. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
  85. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
  86. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
  87. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +63 -0
  88. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
  89. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
  90. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +83 -0
  91. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
  92. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
  93. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
  94. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
  95. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
  96. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
  97. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
  98. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
  99. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
  100. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
  101. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
  102. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
  103. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
  104. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
  105. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
  106. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
  107. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
  108. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
  109. data/lib/{2015-03-20/generated/azure_mgmt_operational_insights/models/search_results_response.rb → 2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb} +33 -31
  110. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
  111. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
  112. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +214 -0
  113. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +73 -0
  114. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
  115. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
  116. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
  117. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
  118. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +207 -0
  119. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
  120. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
  121. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
  122. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
  123. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
  124. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
  125. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
  126. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
  127. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
  128. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operations.rb +220 -0
  129. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
  130. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/schema.rb +130 -0
  131. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
  132. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
  133. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/tables.rb +359 -0
  134. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/usages.rb +130 -0
  135. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
  136. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +768 -0
  137. data/lib/azure_mgmt_operational_insights.rb +1 -0
  138. data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +295 -129
  139. data/lib/version.rb +1 -1
  140. metadata +114 -9
  141. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb +0 -94
@@ -24,10 +24,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
24
24
  #
25
25
  # Create or update a storage insight.
26
26
  #
27
- # @param resource_group_name [String] The name of the resource group to get.
28
- # The name is case insensitive.
29
- # @param workspace_name [String] Log Analytics Workspace name that will contain
30
- # the storageInsightsConfigs resource
27
+ # @param resource_group_name [String] The Resource Group name.
28
+ # @param workspace_name [String] The Log Analytics Workspace name.
31
29
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
32
30
  # resource
33
31
  # @param parameters [StorageInsight] The parameters required to create or
@@ -45,10 +43,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
45
43
  #
46
44
  # Create or update a storage insight.
47
45
  #
48
- # @param resource_group_name [String] The name of the resource group to get.
49
- # The name is case insensitive.
50
- # @param workspace_name [String] Log Analytics Workspace name that will contain
51
- # the storageInsightsConfigs resource
46
+ # @param resource_group_name [String] The Resource Group name.
47
+ # @param workspace_name [String] The Log Analytics Workspace name.
52
48
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
53
49
  # resource
54
50
  # @param parameters [StorageInsight] The parameters required to create or
@@ -65,10 +61,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
65
61
  #
66
62
  # Create or update a storage insight.
67
63
  #
68
- # @param resource_group_name [String] The name of the resource group to get.
69
- # The name is case insensitive.
70
- # @param workspace_name [String] Log Analytics Workspace name that will contain
71
- # the storageInsightsConfigs resource
64
+ # @param resource_group_name [String] The Resource Group name.
65
+ # @param workspace_name [String] The Log Analytics Workspace name.
72
66
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
73
67
  # resource
74
68
  # @param parameters [StorageInsight] The parameters required to create or
@@ -126,6 +120,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
126
120
  end
127
121
 
128
122
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
123
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
124
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
129
125
  # Deserialize Response
130
126
  if status_code == 201
131
127
  begin
@@ -156,10 +152,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
156
152
  #
157
153
  # Gets a storage insight instance.
158
154
  #
159
- # @param resource_group_name [String] The name of the resource group to get.
160
- # The name is case insensitive.
161
- # @param workspace_name [String] Log Analytics Workspace name that contains the
162
- # storageInsightsConfigs resource
155
+ # @param resource_group_name [String] The Resource Group name.
156
+ # @param workspace_name [String] The Log Analytics Workspace name.
163
157
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
164
158
  # resource
165
159
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -175,10 +169,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
175
169
  #
176
170
  # Gets a storage insight instance.
177
171
  #
178
- # @param resource_group_name [String] The name of the resource group to get.
179
- # The name is case insensitive.
180
- # @param workspace_name [String] Log Analytics Workspace name that contains the
181
- # storageInsightsConfigs resource
172
+ # @param resource_group_name [String] The Resource Group name.
173
+ # @param workspace_name [String] The Log Analytics Workspace name.
182
174
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
183
175
  # resource
184
176
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -193,10 +185,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
193
185
  #
194
186
  # Gets a storage insight instance.
195
187
  #
196
- # @param resource_group_name [String] The name of the resource group to get.
197
- # The name is case insensitive.
198
- # @param workspace_name [String] Log Analytics Workspace name that contains the
199
- # storageInsightsConfigs resource
188
+ # @param resource_group_name [String] The Resource Group name.
189
+ # @param workspace_name [String] The Log Analytics Workspace name.
200
190
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
201
191
  # resource
202
192
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -244,6 +234,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
244
234
  end
245
235
 
246
236
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
237
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
238
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
247
239
  # Deserialize Response
248
240
  if status_code == 200
249
241
  begin
@@ -264,10 +256,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
264
256
  #
265
257
  # Deletes a storageInsightsConfigs resource
266
258
  #
267
- # @param resource_group_name [String] The name of the resource group to get.
268
- # The name is case insensitive.
269
- # @param workspace_name [String] Log Analytics Workspace name that contains the
270
- # storageInsightsConfigs resource
259
+ # @param resource_group_name [String] The Resource Group name.
260
+ # @param workspace_name [String] The Log Analytics Workspace name.
271
261
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
272
262
  # resource
273
263
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -282,10 +272,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
282
272
  #
283
273
  # Deletes a storageInsightsConfigs resource
284
274
  #
285
- # @param resource_group_name [String] The name of the resource group to get.
286
- # The name is case insensitive.
287
- # @param workspace_name [String] Log Analytics Workspace name that contains the
288
- # storageInsightsConfigs resource
275
+ # @param resource_group_name [String] The Resource Group name.
276
+ # @param workspace_name [String] The Log Analytics Workspace name.
289
277
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
290
278
  # resource
291
279
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -300,10 +288,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
300
288
  #
301
289
  # Deletes a storageInsightsConfigs resource
302
290
  #
303
- # @param resource_group_name [String] The name of the resource group to get.
304
- # The name is case insensitive.
305
- # @param workspace_name [String] Log Analytics Workspace name that contains the
306
- # storageInsightsConfigs resource
291
+ # @param resource_group_name [String] The Resource Group name.
292
+ # @param workspace_name [String] The Log Analytics Workspace name.
307
293
  # @param storage_insight_name [String] Name of the storageInsightsConfigs
308
294
  # resource
309
295
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -351,6 +337,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
351
337
  end
352
338
 
353
339
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
340
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
341
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
354
342
 
355
343
  result
356
344
  end
@@ -361,10 +349,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
361
349
  #
362
350
  # Lists the storage insight instances within a workspace
363
351
  #
364
- # @param resource_group_name [String] The name of the resource group to get.
365
- # The name is case insensitive.
366
- # @param workspace_name [String] Log Analytics Workspace name that will contain
367
- # the storageInsightsConfigs resource
352
+ # @param resource_group_name [String] The Resource Group name.
353
+ # @param workspace_name [String] The Log Analytics Workspace name.
368
354
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
355
  # will be added to the HTTP request.
370
356
  #
@@ -378,10 +364,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
378
364
  #
379
365
  # Lists the storage insight instances within a workspace
380
366
  #
381
- # @param resource_group_name [String] The name of the resource group to get.
382
- # The name is case insensitive.
383
- # @param workspace_name [String] Log Analytics Workspace name that will contain
384
- # the storageInsightsConfigs resource
367
+ # @param resource_group_name [String] The Resource Group name.
368
+ # @param workspace_name [String] The Log Analytics Workspace name.
385
369
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
386
370
  # will be added to the HTTP request.
387
371
  #
@@ -394,10 +378,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
394
378
  #
395
379
  # Lists the storage insight instances within a workspace
396
380
  #
397
- # @param resource_group_name [String] The name of the resource group to get.
398
- # The name is case insensitive.
399
- # @param workspace_name [String] Log Analytics Workspace name that will contain
400
- # the storageInsightsConfigs resource
381
+ # @param resource_group_name [String] The Resource Group name.
382
+ # @param workspace_name [String] The Log Analytics Workspace name.
401
383
  # @param [Hash{String => String}] A hash of custom headers that will be added
402
384
  # to the HTTP request.
403
385
  #
@@ -442,6 +424,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
442
424
  end
443
425
 
444
426
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
427
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
428
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
445
429
  # Deserialize Response
446
430
  if status_code == 200
447
431
  begin
@@ -530,6 +514,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
530
514
  end
531
515
 
532
516
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
517
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
518
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
533
519
  # Deserialize Response
534
520
  if status_code == 200
535
521
  begin
@@ -550,10 +536,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
550
536
  #
551
537
  # Lists the storage insight instances within a workspace
552
538
  #
553
- # @param resource_group_name [String] The name of the resource group to get.
554
- # The name is case insensitive.
555
- # @param workspace_name [String] Log Analytics Workspace name that will contain
556
- # the storageInsightsConfigs resource
539
+ # @param resource_group_name [String] The Resource Group name.
540
+ # @param workspace_name [String] The Log Analytics Workspace name.
557
541
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
558
542
  # will be added to the HTTP request.
559
543
  #
@@ -94,6 +94,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
94
94
  end
95
95
 
96
96
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
97
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
98
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
97
99
  # Deserialize Response
98
100
  if status_code == 200
99
101
  begin
@@ -130,9 +132,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
130
132
  #
131
133
  # Gets the schema for a given workspace.
132
134
  #
133
- # @param resource_group_name [String] The name of the resource group to get.
134
- # The name is case insensitive.
135
- # @param workspace_name [String] Log Analytics workspace name
135
+ # @param resource_group_name [String] The Resource Group name.
136
+ # @param workspace_name [String] The Log Analytics Workspace name.
136
137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
138
  # will be added to the HTTP request.
138
139
  #
@@ -146,9 +147,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
146
147
  #
147
148
  # Gets the schema for a given workspace.
148
149
  #
149
- # @param resource_group_name [String] The name of the resource group to get.
150
- # The name is case insensitive.
151
- # @param workspace_name [String] Log Analytics workspace name
150
+ # @param resource_group_name [String] The Resource Group name.
151
+ # @param workspace_name [String] The Log Analytics Workspace name.
152
152
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
153
  # will be added to the HTTP request.
154
154
  #
@@ -161,9 +161,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
161
161
  #
162
162
  # Gets the schema for a given workspace.
163
163
  #
164
- # @param resource_group_name [String] The name of the resource group to get.
165
- # The name is case insensitive.
166
- # @param workspace_name [String] Log Analytics workspace name
164
+ # @param resource_group_name [String] The Resource Group name.
165
+ # @param workspace_name [String] The Log Analytics Workspace name.
167
166
  # @param [Hash{String => String}] A hash of custom headers that will be added
168
167
  # to the HTTP request.
169
168
  #
@@ -208,6 +207,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
208
207
  end
209
208
 
210
209
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
210
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
211
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
211
212
  # Deserialize Response
212
213
  if status_code == 200
213
214
  begin
@@ -226,112 +227,179 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
226
227
  end
227
228
 
228
229
  #
229
- # Submit a search for a given workspace. The response will contain an id to
230
- # track the search. User can use the id to poll the search status and get the
231
- # full search result later if the search takes long time to finish.
230
+ # Purges data in an Log Analytics workspace by a set of user-defined filters.
232
231
  #
233
- # @param resource_group_name [String] The name of the resource group to get.
234
- # The name is case insensitive.
235
- # @param workspace_name [String] Log Analytics workspace name
236
- # @param parameters [SearchParameters] The parameters required to execute a
237
- # search query.
232
+ # In order to manage system resources, purge requests are throttled at 50
233
+ # requests per hour. You should batch the execution of purge requests by
234
+ # sending a single command whose predicate includes all user identities that
235
+ # require purging. Use the in operator to specify multiple identities. You
236
+ # should run the query prior to using for a purge request to verify that the
237
+ # results are expected.
238
+ #
239
+ # @param resource_group_name [String] The Resource Group name.
240
+ # @param workspace_name [String] The Log Analytics Workspace name.
238
241
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
239
242
  # will be added to the HTTP request.
240
243
  #
241
- # @return [SearchResultsResponse] operation results.
244
+ # @return [WorkspacePurgeResponse] operation results.
242
245
  #
243
- def get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil)
244
- response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
246
+ def purge(resource_group_name, workspace_name, custom_headers:nil)
247
+ response = purge_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
245
248
  response.body unless response.nil?
246
249
  end
247
250
 
248
251
  #
249
- # @param resource_group_name [String] The name of the resource group to get.
250
- # The name is case insensitive.
251
- # @param workspace_name [String] Log Analytics workspace name
252
- # @param parameters [SearchParameters] The parameters required to execute a
253
- # search query.
252
+ # Purges data in an Log Analytics workspace by a set of user-defined filters.
253
+ #
254
+ # In order to manage system resources, purge requests are throttled at 50
255
+ # requests per hour. You should batch the execution of purge requests by
256
+ # sending a single command whose predicate includes all user identities that
257
+ # require purging. Use the in operator to specify multiple identities. You
258
+ # should run the query prior to using for a purge request to verify that the
259
+ # results are expected.
260
+ #
261
+ # @param resource_group_name [String] The Resource Group name.
262
+ # @param workspace_name [String] The Log Analytics Workspace name.
254
263
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
264
  # will be added to the HTTP request.
256
265
  #
257
- # @return [Concurrent::Promise] promise which provides async access to http
258
- # response.
266
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
259
267
  #
260
- def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
261
- # Send request
262
- promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers)
268
+ def purge_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
269
+ purge_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
270
+ end
263
271
 
264
- promise = promise.then do |response|
265
- # Defining deserialization method.
266
- deserialize_method = lambda do |parsed_response|
267
- result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse.mapper()
268
- parsed_response = @client.deserialize(result_mapper, parsed_response)
272
+ #
273
+ # Purges data in an Log Analytics workspace by a set of user-defined filters.
274
+ #
275
+ # In order to manage system resources, purge requests are throttled at 50
276
+ # requests per hour. You should batch the execution of purge requests by
277
+ # sending a single command whose predicate includes all user identities that
278
+ # require purging. Use the in operator to specify multiple identities. You
279
+ # should run the query prior to using for a purge request to verify that the
280
+ # results are expected.
281
+ #
282
+ # @param resource_group_name [String] The Resource Group name.
283
+ # @param workspace_name [String] The Log Analytics Workspace name.
284
+ # @param [Hash{String => String}] A hash of custom headers that will be added
285
+ # to the HTTP request.
286
+ #
287
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
288
+ #
289
+ def purge_async(resource_group_name, workspace_name, custom_headers:nil)
290
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
291
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
292
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
293
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
294
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
295
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
296
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
297
+ fail ArgumentError, '@client.body is nil' if @client.body.nil?
298
+
299
+
300
+ request_headers = {}
301
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
302
+
303
+ # Set Headers
304
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
305
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
306
+
307
+ # Serialize Request
308
+ request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody.mapper()
309
+ request_content = @client.serialize(request_mapper, @client.body)
310
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
311
+
312
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge'
313
+
314
+ request_url = @base_url || @client.base_url
315
+
316
+ options = {
317
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
318
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'workspaceName' => workspace_name},
319
+ query_params: {'api-version' => @client.api_version},
320
+ body: request_content,
321
+ headers: request_headers.merge(custom_headers || {}),
322
+ base_url: request_url
323
+ }
324
+ promise = @client.make_request_async(:post, path_template, options)
325
+
326
+ promise = promise.then do |result|
327
+ http_response = result.response
328
+ status_code = http_response.status
329
+ response_content = http_response.body
330
+ unless status_code == 202
331
+ error_model = JSON.load(response_content)
332
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
333
+ end
334
+
335
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
336
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
337
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
338
+ # Deserialize Response
339
+ if status_code == 202
340
+ begin
341
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
+ result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse.mapper()
343
+ result.body = @client.deserialize(result_mapper, parsed_response)
344
+ rescue Exception => e
345
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
346
+ end
269
347
  end
270
348
 
271
- # Waiting for response.
272
- @client.get_long_running_operation_result(response, deserialize_method)
349
+ result
273
350
  end
274
351
 
275
- promise
352
+ promise.execute
276
353
  end
277
354
 
278
355
  #
279
- # Gets updated search results for a given search query.
356
+ # Gets status of an ongoing purge operation.
280
357
  #
281
- # @param resource_group_name [String] The name of the resource group to get.
282
- # The name is case insensitive.
283
- # @param workspace_name [String] Log Analytics workspace name
284
- # @param id [String] The id of the search that will have results updated. You
285
- # can get the id from the response of the GetResults call.
358
+ # @param resource_group_name [String] The Resource Group name.
359
+ # @param workspace_name [String] The Log Analytics Workspace name.
286
360
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
287
361
  # will be added to the HTTP request.
288
362
  #
289
- # @return [SearchResultsResponse] operation results.
363
+ # @return [WorkspacePurgeStatusResponse] operation results.
290
364
  #
291
- def update_search_results(resource_group_name, workspace_name, id, custom_headers:nil)
292
- response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value!
365
+ def get_purge_status(resource_group_name, workspace_name, custom_headers:nil)
366
+ response = get_purge_status_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
293
367
  response.body unless response.nil?
294
368
  end
295
369
 
296
370
  #
297
- # Gets updated search results for a given search query.
371
+ # Gets status of an ongoing purge operation.
298
372
  #
299
- # @param resource_group_name [String] The name of the resource group to get.
300
- # The name is case insensitive.
301
- # @param workspace_name [String] Log Analytics workspace name
302
- # @param id [String] The id of the search that will have results updated. You
303
- # can get the id from the response of the GetResults call.
373
+ # @param resource_group_name [String] The Resource Group name.
374
+ # @param workspace_name [String] The Log Analytics Workspace name.
304
375
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
305
376
  # will be added to the HTTP request.
306
377
  #
307
378
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
308
379
  #
309
- def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers:nil)
310
- update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value!
380
+ def get_purge_status_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
381
+ get_purge_status_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
311
382
  end
312
383
 
313
384
  #
314
- # Gets updated search results for a given search query.
385
+ # Gets status of an ongoing purge operation.
315
386
  #
316
- # @param resource_group_name [String] The name of the resource group to get.
317
- # The name is case insensitive.
318
- # @param workspace_name [String] Log Analytics workspace name
319
- # @param id [String] The id of the search that will have results updated. You
320
- # can get the id from the response of the GetResults call.
387
+ # @param resource_group_name [String] The Resource Group name.
388
+ # @param workspace_name [String] The Log Analytics Workspace name.
321
389
  # @param [Hash{String => String}] A hash of custom headers that will be added
322
390
  # to the HTTP request.
323
391
  #
324
392
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
325
393
  #
326
- def update_search_results_async(resource_group_name, workspace_name, id, custom_headers:nil)
394
+ def get_purge_status_async(resource_group_name, workspace_name, custom_headers:nil)
327
395
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
328
396
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
329
397
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
330
398
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
331
- fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
332
- fail ArgumentError, 'id is nil' if id.nil?
333
399
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
334
400
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
401
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
402
+ fail ArgumentError, '@client.purge_id is nil' if @client.purge_id.nil?
335
403
 
336
404
 
337
405
  request_headers = {}
@@ -340,13 +408,113 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
340
408
  # Set Headers
341
409
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
342
410
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
343
- path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search/{id}'
411
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}'
344
412
 
345
413
  request_url = @base_url || @client.base_url
346
414
 
347
415
  options = {
348
416
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
349
- path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'id' => id,'subscriptionId' => @client.subscription_id},
417
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'workspaceName' => workspace_name,'purgeId' => @client.purge_id},
418
+ query_params: {'api-version' => @client.api_version},
419
+ headers: request_headers.merge(custom_headers || {}),
420
+ base_url: request_url
421
+ }
422
+ promise = @client.make_request_async(:get, path_template, options)
423
+
424
+ promise = promise.then do |result|
425
+ http_response = result.response
426
+ status_code = http_response.status
427
+ response_content = http_response.body
428
+ unless status_code == 200
429
+ error_model = JSON.load(response_content)
430
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
431
+ end
432
+
433
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
434
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
435
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
436
+ # Deserialize Response
437
+ if status_code == 200
438
+ begin
439
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
440
+ result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse.mapper()
441
+ result.body = @client.deserialize(result_mapper, parsed_response)
442
+ rescue Exception => e
443
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
444
+ end
445
+ end
446
+
447
+ result
448
+ end
449
+
450
+ promise.execute
451
+ end
452
+
453
+ #
454
+ # Gets the shared keys for a Log Analytics Workspace. These keys are used to
455
+ # connect Microsoft Operational Insights agents to the workspace.
456
+ #
457
+ # @param resource_group_name [String] The Resource Group name.
458
+ # @param workspace_name [String] The Log Analytics Workspace name.
459
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
460
+ # will be added to the HTTP request.
461
+ #
462
+ # @return [SharedKeys] operation results.
463
+ #
464
+ def list_keys(resource_group_name, workspace_name, custom_headers:nil)
465
+ response = list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
466
+ response.body unless response.nil?
467
+ end
468
+
469
+ #
470
+ # Gets the shared keys for a Log Analytics Workspace. These keys are used to
471
+ # connect Microsoft Operational Insights agents to the workspace.
472
+ #
473
+ # @param resource_group_name [String] The Resource Group name.
474
+ # @param workspace_name [String] The Log Analytics Workspace name.
475
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
476
+ # will be added to the HTTP request.
477
+ #
478
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
479
+ #
480
+ def list_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
481
+ list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
482
+ end
483
+
484
+ #
485
+ # Gets the shared keys for a Log Analytics Workspace. These keys are used to
486
+ # connect Microsoft Operational Insights agents to the workspace.
487
+ #
488
+ # @param resource_group_name [String] The Resource Group name.
489
+ # @param workspace_name [String] The Log Analytics Workspace name.
490
+ # @param [Hash{String => String}] A hash of custom headers that will be added
491
+ # to the HTTP request.
492
+ #
493
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
494
+ #
495
+ def list_keys_async(resource_group_name, workspace_name, custom_headers:nil)
496
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
497
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
498
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
499
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
500
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
501
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
502
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
503
+
504
+
505
+ request_headers = {}
506
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
507
+
508
+ # Set Headers
509
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
510
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
511
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/listKeys'
512
+
513
+ request_url = @base_url || @client.base_url
514
+
515
+ options = {
516
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
517
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
350
518
  query_params: {'api-version' => @client.api_version},
351
519
  headers: request_headers.merge(custom_headers || {}),
352
520
  base_url: request_url
@@ -363,11 +531,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
363
531
  end
364
532
 
365
533
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
534
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
535
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
366
536
  # Deserialize Response
367
537
  if status_code == 200
368
538
  begin
369
539
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
370
- result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse.mapper()
540
+ result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SharedKeys.mapper()
371
541
  result.body = @client.deserialize(result_mapper, parsed_response)
372
542
  rescue Exception => e
373
543
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -381,68 +551,155 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
381
551
  end
382
552
 
383
553
  #
384
- # Submit a search for a given workspace. The response will contain an id to
385
- # track the search. User can use the id to poll the search status and get the
386
- # full search result later if the search takes long time to finish.
554
+ # Regenerates the shared keys for a Log Analytics Workspace. These keys are
555
+ # used to connect Microsoft Operational Insights agents to the workspace.
387
556
  #
388
- # @param resource_group_name [String] The name of the resource group to get.
389
- # The name is case insensitive.
390
- # @param workspace_name [String] Log Analytics workspace name
391
- # @param parameters [SearchParameters] The parameters required to execute a
392
- # search query.
557
+ # @param resource_group_name [String] The Resource Group name.
558
+ # @param workspace_name [String] The Log Analytics Workspace name.
393
559
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
394
560
  # will be added to the HTTP request.
395
561
  #
396
- # @return [SearchResultsResponse] operation results.
562
+ # @return [SharedKeys] operation results.
397
563
  #
398
- def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil)
399
- response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
564
+ def regenerate_shared_keys(resource_group_name, workspace_name, custom_headers:nil)
565
+ response = regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
400
566
  response.body unless response.nil?
401
567
  end
402
568
 
403
569
  #
404
- # Submit a search for a given workspace. The response will contain an id to
405
- # track the search. User can use the id to poll the search status and get the
406
- # full search result later if the search takes long time to finish.
570
+ # Regenerates the shared keys for a Log Analytics Workspace. These keys are
571
+ # used to connect Microsoft Operational Insights agents to the workspace.
407
572
  #
408
- # @param resource_group_name [String] The name of the resource group to get.
409
- # The name is case insensitive.
410
- # @param workspace_name [String] Log Analytics workspace name
411
- # @param parameters [SearchParameters] The parameters required to execute a
412
- # search query.
573
+ # @param resource_group_name [String] The Resource Group name.
574
+ # @param workspace_name [String] The Log Analytics Workspace name.
413
575
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
414
576
  # will be added to the HTTP request.
415
577
  #
416
578
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
417
579
  #
418
- def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
419
- begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
580
+ def regenerate_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
581
+ regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
420
582
  end
421
583
 
422
584
  #
423
- # Submit a search for a given workspace. The response will contain an id to
424
- # track the search. User can use the id to poll the search status and get the
425
- # full search result later if the search takes long time to finish.
585
+ # Regenerates the shared keys for a Log Analytics Workspace. These keys are
586
+ # used to connect Microsoft Operational Insights agents to the workspace.
426
587
  #
427
- # @param resource_group_name [String] The name of the resource group to get.
428
- # The name is case insensitive.
429
- # @param workspace_name [String] Log Analytics workspace name
430
- # @param parameters [SearchParameters] The parameters required to execute a
431
- # search query.
588
+ # @param resource_group_name [String] The Resource Group name.
589
+ # @param workspace_name [String] The Log Analytics Workspace name.
432
590
  # @param [Hash{String => String}] A hash of custom headers that will be added
433
591
  # to the HTTP request.
434
592
  #
435
593
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
436
594
  #
437
- def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
595
+ def regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:nil)
596
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
438
597
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
439
598
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
440
599
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
441
600
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
442
601
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
443
- fail ArgumentError, 'parameters is nil' if parameters.nil?
444
602
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
603
+
604
+
605
+ request_headers = {}
606
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
607
+
608
+ # Set Headers
609
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
610
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
611
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey'
612
+
613
+ request_url = @base_url || @client.base_url
614
+
615
+ options = {
616
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
617
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
618
+ query_params: {'api-version' => @client.api_version},
619
+ headers: request_headers.merge(custom_headers || {}),
620
+ base_url: request_url
621
+ }
622
+ promise = @client.make_request_async(:post, path_template, options)
623
+
624
+ promise = promise.then do |result|
625
+ http_response = result.response
626
+ status_code = http_response.status
627
+ response_content = http_response.body
628
+ unless status_code == 200
629
+ error_model = JSON.load(response_content)
630
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
631
+ end
632
+
633
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
634
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
635
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
636
+ # Deserialize Response
637
+ if status_code == 200
638
+ begin
639
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
640
+ result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SharedKeys.mapper()
641
+ result.body = @client.deserialize(result_mapper, parsed_response)
642
+ rescue Exception => e
643
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
644
+ end
645
+ end
646
+
647
+ result
648
+ end
649
+
650
+ promise.execute
651
+ end
652
+
653
+ #
654
+ # Delete a Log Analytics gateway.
655
+ #
656
+ # @param resource_group_name [String] The Resource Group name.
657
+ # @param workspace_name [String] The Log Analytics Workspace name.
658
+ # @param gateway_id [String] The Log Analytics gateway Id.
659
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
660
+ # will be added to the HTTP request.
661
+ #
662
+ #
663
+ def delete_gateways(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
664
+ response = delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
665
+ nil
666
+ end
667
+
668
+ #
669
+ # Delete a Log Analytics gateway.
670
+ #
671
+ # @param resource_group_name [String] The Resource Group name.
672
+ # @param workspace_name [String] The Log Analytics Workspace name.
673
+ # @param gateway_id [String] The Log Analytics gateway Id.
674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
+ # will be added to the HTTP request.
676
+ #
677
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
678
+ #
679
+ def delete_gateways_with_http_info(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
680
+ delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
681
+ end
682
+
683
+ #
684
+ # Delete a Log Analytics gateway.
685
+ #
686
+ # @param resource_group_name [String] The Resource Group name.
687
+ # @param workspace_name [String] The Log Analytics Workspace name.
688
+ # @param gateway_id [String] The Log Analytics gateway Id.
689
+ # @param [Hash{String => String}] A hash of custom headers that will be added
690
+ # to the HTTP request.
691
+ #
692
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
693
+ #
694
+ def delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
445
695
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
696
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
697
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
698
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
699
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
700
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
701
+ fail ArgumentError, 'gateway_id is nil' if gateway_id.nil?
702
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
446
703
 
447
704
 
448
705
  request_headers = {}
@@ -451,41 +708,139 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
451
708
  # Set Headers
452
709
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
453
710
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
711
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}'
454
712
 
455
- # Serialize Request
456
- request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters.mapper()
457
- request_content = @client.serialize(request_mapper, parameters)
458
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
713
+ request_url = @base_url || @client.base_url
714
+
715
+ options = {
716
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
717
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'gatewayId' => gateway_id},
718
+ query_params: {'api-version' => @client.api_version},
719
+ headers: request_headers.merge(custom_headers || {}),
720
+ base_url: request_url
721
+ }
722
+ promise = @client.make_request_async(:delete, path_template, options)
723
+
724
+ promise = promise.then do |result|
725
+ http_response = result.response
726
+ status_code = http_response.status
727
+ response_content = http_response.body
728
+ unless status_code == 200
729
+ error_model = JSON.load(response_content)
730
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
731
+ end
732
+
733
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
734
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
735
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
736
+
737
+ result
738
+ end
739
+
740
+ promise.execute
741
+ end
742
+
743
+ #
744
+ # Gets the available service tiers for the workspace.
745
+ #
746
+ # @param resource_group_name [String] The Resource Group name.
747
+ # @param workspace_name [String] The Log Analytics Workspace name.
748
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
749
+ # will be added to the HTTP request.
750
+ #
751
+ # @return [Array] operation results.
752
+ #
753
+ def available_service_tiers(resource_group_name, workspace_name, custom_headers:nil)
754
+ response = available_service_tiers_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
755
+ response.body unless response.nil?
756
+ end
757
+
758
+ #
759
+ # Gets the available service tiers for the workspace.
760
+ #
761
+ # @param resource_group_name [String] The Resource Group name.
762
+ # @param workspace_name [String] The Log Analytics Workspace name.
763
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
764
+ # will be added to the HTTP request.
765
+ #
766
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
767
+ #
768
+ def available_service_tiers_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
769
+ available_service_tiers_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
770
+ end
771
+
772
+ #
773
+ # Gets the available service tiers for the workspace.
774
+ #
775
+ # @param resource_group_name [String] The Resource Group name.
776
+ # @param workspace_name [String] The Log Analytics Workspace name.
777
+ # @param [Hash{String => String}] A hash of custom headers that will be added
778
+ # to the HTTP request.
779
+ #
780
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
781
+ #
782
+ def available_service_tiers_async(resource_group_name, workspace_name, custom_headers:nil)
783
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
784
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
785
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
786
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
787
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
788
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
789
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
459
790
 
460
- path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search'
791
+
792
+ request_headers = {}
793
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
794
+
795
+ # Set Headers
796
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
797
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
798
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers'
461
799
 
462
800
  request_url = @base_url || @client.base_url
463
801
 
464
802
  options = {
465
803
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
466
- path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
804
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
467
805
  query_params: {'api-version' => @client.api_version},
468
- body: request_content,
469
806
  headers: request_headers.merge(custom_headers || {}),
470
807
  base_url: request_url
471
808
  }
472
- promise = @client.make_request_async(:post, path_template, options)
809
+ promise = @client.make_request_async(:get, path_template, options)
473
810
 
474
811
  promise = promise.then do |result|
475
812
  http_response = result.response
476
813
  status_code = http_response.status
477
814
  response_content = http_response.body
478
- unless status_code == 200 || status_code == 202
815
+ unless status_code == 200
479
816
  error_model = JSON.load(response_content)
480
817
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
481
818
  end
482
819
 
483
820
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
821
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
822
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
484
823
  # Deserialize Response
485
824
  if status_code == 200
486
825
  begin
487
826
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
- result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse.mapper()
827
+ result_mapper = {
828
+ client_side_validation: true,
829
+ required: false,
830
+ serialized_name: 'parsed_response',
831
+ type: {
832
+ name: 'Sequence',
833
+ element: {
834
+ client_side_validation: true,
835
+ required: false,
836
+ serialized_name: 'AvailableServiceTierElementType',
837
+ type: {
838
+ name: 'Composite',
839
+ class_name: 'AvailableServiceTier'
840
+ }
841
+ }
842
+ }
843
+ }
489
844
  result.body = @client.deserialize(result_mapper, parsed_response)
490
845
  rescue Exception => e
491
846
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)