azure_mgmt_operational_insights 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights.rb +15 -16
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_display.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +3 -3
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +5 -5
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +4 -3
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/{search_highlight.rb → shared_keys.rb} +13 -13
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +1 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +14 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +3 -5
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operations.rb +2 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +69 -175
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +36 -52
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +319 -169
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +9 -7
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +10 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +8 -0
- 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
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb +2 -2
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +9 -10
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +95 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operations.rb +4 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +24 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb +523 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +75 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb +174 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +113 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +63 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +83 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
- 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
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +214 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +73 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +207 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operations.rb +220 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/schema.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/tables.rb +359 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/usages.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +768 -0
- data/lib/azure_mgmt_operational_insights.rb +1 -0
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +291 -145
- data/lib/version.rb +1 -1
- metadata +109 -9
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb +0 -94
@@ -28,22 +28,24 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
28
28
|
|
29
29
|
module Models
|
30
30
|
autoload :MetricName, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb'
|
31
|
+
autoload :SharedKeys, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb'
|
32
|
+
autoload :LinkedServiceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb'
|
33
|
+
autoload :OperationStatus, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb'
|
31
34
|
autoload :OperationDisplay, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb'
|
32
35
|
autoload :UsageMetric, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb'
|
33
36
|
autoload :OperationListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb'
|
34
37
|
autoload :WorkspaceListUsagesResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb'
|
35
|
-
autoload :LinkedServiceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb'
|
36
|
-
autoload :ManagementGroup, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb'
|
37
38
|
autoload :DataSourceFilter, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb'
|
38
|
-
autoload :
|
39
|
+
autoload :ManagementGroup, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb'
|
39
40
|
autoload :IntelligencePack, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb'
|
40
|
-
autoload :
|
41
|
+
autoload :WorkspaceListManagementGroupsResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb'
|
41
42
|
autoload :Operation, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb'
|
42
|
-
autoload :
|
43
|
-
autoload :Resource, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb'
|
43
|
+
autoload :Sku, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb'
|
44
44
|
autoload :DataSourceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb'
|
45
|
-
autoload :
|
45
|
+
autoload :ErrorResponse, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb'
|
46
46
|
autoload :WorkspaceListResult, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb'
|
47
|
+
autoload :ProxyResource, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb'
|
48
|
+
autoload :Resource, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb'
|
47
49
|
autoload :LinkedService, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb'
|
48
50
|
autoload :DataSource, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb'
|
49
51
|
autoload :Workspace, '2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb'
|
@@ -123,6 +123,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
123
123
|
end
|
124
124
|
|
125
125
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
126
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
127
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
126
128
|
# Deserialize Response
|
127
129
|
if status_code == 200
|
128
130
|
begin
|
@@ -237,6 +239,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
237
239
|
end
|
238
240
|
|
239
241
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
242
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
243
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
240
244
|
|
241
245
|
result
|
242
246
|
end
|
@@ -332,6 +336,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
332
336
|
end
|
333
337
|
|
334
338
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
339
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
340
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
335
341
|
# Deserialize Response
|
336
342
|
if status_code == 200
|
337
343
|
begin
|
@@ -443,6 +449,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
443
449
|
end
|
444
450
|
|
445
451
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
452
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
453
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
446
454
|
# Deserialize Response
|
447
455
|
if status_code == 200
|
448
456
|
begin
|
@@ -534,6 +542,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
534
542
|
end
|
535
543
|
|
536
544
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
545
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
546
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
537
547
|
# Deserialize Response
|
538
548
|
if status_code == 200
|
539
549
|
begin
|
@@ -123,6 +123,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
123
123
|
end
|
124
124
|
|
125
125
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
126
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
127
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
126
128
|
# Deserialize Response
|
127
129
|
if status_code == 200
|
128
130
|
begin
|
@@ -237,6 +239,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
237
239
|
end
|
238
240
|
|
239
241
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
242
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
243
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
240
244
|
|
241
245
|
result
|
242
246
|
end
|
@@ -332,6 +336,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
332
336
|
end
|
333
337
|
|
334
338
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
339
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
340
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
335
341
|
# Deserialize Response
|
336
342
|
if status_code == 200
|
337
343
|
begin
|
@@ -433,6 +439,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
433
439
|
end
|
434
440
|
|
435
441
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
442
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
443
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
436
444
|
# Deserialize Response
|
437
445
|
if status_code == 200
|
438
446
|
begin
|
@@ -3,39 +3,39 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::OperationalInsights::Mgmt::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Describes the format of Error response.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class ErrorResponse
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :
|
15
|
+
# @return [String] Error code
|
16
|
+
attr_accessor :code
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] Error message indicating why the operation failed.
|
19
19
|
attr_accessor :message
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
client_side_validation: true,
|
29
29
|
required: false,
|
30
|
-
serialized_name: '
|
30
|
+
serialized_name: 'ErrorResponse',
|
31
31
|
type: {
|
32
32
|
name: 'Composite',
|
33
|
-
class_name: '
|
33
|
+
class_name: 'ErrorResponse',
|
34
34
|
model_properties: {
|
35
|
-
|
35
|
+
code: {
|
36
36
|
client_side_validation: true,
|
37
37
|
required: false,
|
38
|
-
serialized_name: '
|
38
|
+
serialized_name: 'code',
|
39
39
|
type: {
|
40
40
|
name: 'String'
|
41
41
|
}
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The status of operation.
|
10
|
+
#
|
11
|
+
class OperationStatus
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The operation Id.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The operation name.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] The start time of the operation.
|
22
|
+
attr_accessor :start_time
|
23
|
+
|
24
|
+
# @return [String] The end time of the operation.
|
25
|
+
attr_accessor :end_time
|
26
|
+
|
27
|
+
# @return [String] The status of the operation.
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# @return [ErrorResponse] The error detail of the operation if any.
|
31
|
+
attr_accessor :error
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for OperationStatus class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'OperationStatus',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'OperationStatus',
|
46
|
+
model_properties: {
|
47
|
+
id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'id',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'name',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
start_time: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'startTime',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
end_time: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'endTime',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
status: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'status',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
error: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'error',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'ErrorResponse'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -13,8 +13,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [SkuNameEnum] The name of the SKU. Possible values include:
|
16
|
-
# 'Free', 'Standard', 'Premium', '
|
17
|
-
# '
|
16
|
+
# 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone',
|
17
|
+
# 'CapacityReservation'
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
20
|
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb
CHANGED
@@ -12,10 +12,10 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
12
12
|
Free = "Free"
|
13
13
|
Standard = "Standard"
|
14
14
|
Premium = "Premium"
|
15
|
-
Unlimited = "Unlimited"
|
16
15
|
PerNode = "PerNode"
|
17
16
|
PerGB2018 = "PerGB2018"
|
18
17
|
Standalone = "Standalone"
|
18
|
+
CapacityReservation = "CapacityReservation"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -17,20 +17,16 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
17
17
|
# 'Deleting', 'ProvisioningAccount'
|
18
18
|
attr_accessor :provisioning_state
|
19
19
|
|
20
|
-
# @return [String]
|
21
|
-
#
|
22
|
-
# 'External' implies it was created via the Operational Insights Portal.
|
23
|
-
# This value is set on the service side and read-only on the client side.
|
20
|
+
# @return [String] This is a read-only legacy property. It is always set
|
21
|
+
# to 'Azure' by the service. Kept here for backward compatibility.
|
24
22
|
attr_accessor :source
|
25
23
|
|
26
|
-
# @return [String]
|
27
|
-
#
|
28
|
-
# to an existing workspace.
|
24
|
+
# @return [String] This is a read-only property. Represents the ID
|
25
|
+
# associated with the workspace.
|
29
26
|
attr_accessor :customer_id
|
30
27
|
|
31
|
-
# @return [String]
|
32
|
-
#
|
33
|
-
# client side.
|
28
|
+
# @return [String] This is a legacy property and is not used anymore.
|
29
|
+
# Kept here for backward compatibility.
|
34
30
|
attr_accessor :portal_url
|
35
31
|
|
36
32
|
# @return [Sku] The SKU of the workspace.
|
@@ -120,6 +116,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
120
116
|
source: {
|
121
117
|
client_side_validation: true,
|
122
118
|
required: false,
|
119
|
+
read_only: true,
|
123
120
|
serialized_name: 'properties.source',
|
124
121
|
type: {
|
125
122
|
name: 'String'
|
@@ -128,6 +125,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
128
125
|
customer_id: {
|
129
126
|
client_side_validation: true,
|
130
127
|
required: false,
|
128
|
+
read_only: true,
|
131
129
|
serialized_name: 'properties.customerId',
|
132
130
|
type: {
|
133
131
|
name: 'String'
|
@@ -136,6 +134,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
136
134
|
portal_url: {
|
137
135
|
client_side_validation: true,
|
138
136
|
required: false,
|
137
|
+
read_only: true,
|
139
138
|
serialized_name: 'properties.portalUrl',
|
140
139
|
type: {
|
141
140
|
name: 'String'
|
@@ -131,6 +131,100 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
131
131
|
super(request_url, method, path, options)
|
132
132
|
end
|
133
133
|
|
134
|
+
#
|
135
|
+
# Get the status of an azure asynchronous operation.
|
136
|
+
#
|
137
|
+
# @param location [String] The region name of operation.
|
138
|
+
# @param async_operation_id [String] The operation Id.
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [OperationStatus] operation results.
|
143
|
+
#
|
144
|
+
def get_async_operations_status(location, async_operation_id, custom_headers:nil)
|
145
|
+
response = get_async_operations_status_async(location, async_operation_id, custom_headers:custom_headers).value!
|
146
|
+
response.body unless response.nil?
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Get the status of an azure asynchronous operation.
|
151
|
+
#
|
152
|
+
# @param location [String] The region name of operation.
|
153
|
+
# @param async_operation_id [String] The operation Id.
|
154
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
155
|
+
# will be added to the HTTP request.
|
156
|
+
#
|
157
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
158
|
+
#
|
159
|
+
def get_async_operations_status_with_http_info(location, async_operation_id, custom_headers:nil)
|
160
|
+
get_async_operations_status_async(location, async_operation_id, custom_headers:custom_headers).value!
|
161
|
+
end
|
162
|
+
|
163
|
+
#
|
164
|
+
# Get the status of an azure asynchronous operation.
|
165
|
+
#
|
166
|
+
# @param location [String] The region name of operation.
|
167
|
+
# @param async_operation_id [String] The operation Id.
|
168
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
169
|
+
# to the HTTP request.
|
170
|
+
#
|
171
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
|
+
#
|
173
|
+
def get_async_operations_status_async(location, async_operation_id, custom_headers:nil)
|
174
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
175
|
+
fail ArgumentError, 'async_operation_id is nil' if async_operation_id.nil?
|
176
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
177
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
178
|
+
|
179
|
+
|
180
|
+
request_headers = {}
|
181
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
182
|
+
|
183
|
+
# Set Headers
|
184
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
185
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
186
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}'
|
187
|
+
|
188
|
+
request_url = @base_url || self.base_url
|
189
|
+
|
190
|
+
options = {
|
191
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
192
|
+
path_params: {'location' => location,'asyncOperationId' => async_operation_id,'subscriptionId' => subscription_id},
|
193
|
+
query_params: {'api-version' => api_version},
|
194
|
+
headers: request_headers.merge(custom_headers || {}),
|
195
|
+
base_url: request_url
|
196
|
+
}
|
197
|
+
promise = self.make_request_async(:get, path_template, options)
|
198
|
+
|
199
|
+
promise = promise.then do |result|
|
200
|
+
http_response = result.response
|
201
|
+
status_code = http_response.status
|
202
|
+
response_content = http_response.body
|
203
|
+
unless status_code == 200
|
204
|
+
error_model = JSON.load(response_content)
|
205
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
206
|
+
end
|
207
|
+
|
208
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
209
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
210
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
211
|
+
# Deserialize Response
|
212
|
+
if status_code == 200
|
213
|
+
begin
|
214
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
215
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationStatus.mapper()
|
216
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
217
|
+
rescue Exception => e
|
218
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
result
|
223
|
+
end
|
224
|
+
|
225
|
+
promise.execute
|
226
|
+
end
|
227
|
+
|
134
228
|
|
135
229
|
private
|
136
230
|
#
|
@@ -138,7 +232,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
138
232
|
#
|
139
233
|
def add_telemetry
|
140
234
|
sdk_information = 'azure_mgmt_operational_insights'
|
141
|
-
sdk_information = "#{sdk_information}/0.
|
235
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
142
236
|
add_user_agent_information(sdk_information)
|
143
237
|
end
|
144
238
|
end
|