azure_mgmt_operational_insights 0.17.1 → 0.19.2
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 +2 -3
- 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-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +1 -1
- 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_list_result.rb +1 -1
- 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 +473 -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 +490 -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 +19 -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/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +92 -0
- 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/2020-08-01/generated/azure_mgmt_operational_insights.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_exports.rb +473 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +75 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export.rb +174 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_type.rb +18 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_response.rb +113 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +63 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/resource.rb +83 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
- data/lib/2020-08-01/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-08-01/generated/azure_mgmt_operational_insights/models/tracked_resource.rb} +33 -31
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace.rb +213 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +72 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +206 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operations.rb +220 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/schema.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/tables.rb +359 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/usages.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/workspaces.rb +768 -0
- data/lib/azure_mgmt_operational_insights.rb +2 -0
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +291 -145
- data/lib/version.rb +1 -1
- metadata +208 -9
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb +0 -94
@@ -0,0 +1,211 @@
|
|
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::V2020_08_01
|
7
|
+
#
|
8
|
+
# Operational Insights Client
|
9
|
+
#
|
10
|
+
class DeletedWorkspaces
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the DeletedWorkspaces class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [OperationalInsightsManagementClient] reference to the OperationalInsightsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets recently deleted workspaces in a subscription, available for recovery.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [WorkspaceListResult] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Gets recently deleted workspaces in a subscription, available for recovery.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Gets recently deleted workspaces in a subscription, available for recovery.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
60
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
61
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
62
|
+
|
63
|
+
|
64
|
+
request_headers = {}
|
65
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
66
|
+
|
67
|
+
# Set Headers
|
68
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
69
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
70
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces'
|
71
|
+
|
72
|
+
request_url = @base_url || @client.base_url
|
73
|
+
|
74
|
+
options = {
|
75
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
76
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
77
|
+
query_params: {'api-version' => @client.api_version},
|
78
|
+
headers: request_headers.merge(custom_headers || {}),
|
79
|
+
base_url: request_url
|
80
|
+
}
|
81
|
+
promise = @client.make_request_async(:get, path_template, options)
|
82
|
+
|
83
|
+
promise = promise.then do |result|
|
84
|
+
http_response = result.response
|
85
|
+
status_code = http_response.status
|
86
|
+
response_content = http_response.body
|
87
|
+
unless status_code == 200
|
88
|
+
error_model = JSON.load(response_content)
|
89
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
90
|
+
end
|
91
|
+
|
92
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
93
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
94
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
95
|
+
# Deserialize Response
|
96
|
+
if status_code == 200
|
97
|
+
begin
|
98
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
99
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2020_08_01::Models::WorkspaceListResult.mapper()
|
100
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
101
|
+
rescue Exception => e
|
102
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
result
|
107
|
+
end
|
108
|
+
|
109
|
+
promise.execute
|
110
|
+
end
|
111
|
+
|
112
|
+
#
|
113
|
+
# Gets recently deleted workspaces in a resource group, available for recovery.
|
114
|
+
#
|
115
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
116
|
+
# is case insensitive.
|
117
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
118
|
+
# will be added to the HTTP request.
|
119
|
+
#
|
120
|
+
# @return [WorkspaceListResult] operation results.
|
121
|
+
#
|
122
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
123
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
124
|
+
response.body unless response.nil?
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Gets recently deleted workspaces in a resource group, available for recovery.
|
129
|
+
#
|
130
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
131
|
+
# is case insensitive.
|
132
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
|
+
# will be added to the HTTP request.
|
134
|
+
#
|
135
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
136
|
+
#
|
137
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
138
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
139
|
+
end
|
140
|
+
|
141
|
+
#
|
142
|
+
# Gets recently deleted workspaces in a resource group, available for recovery.
|
143
|
+
#
|
144
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
145
|
+
# is case insensitive.
|
146
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
147
|
+
# to the HTTP request.
|
148
|
+
#
|
149
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
150
|
+
#
|
151
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
152
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
153
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
154
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
155
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
156
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
157
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
158
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
159
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
160
|
+
|
161
|
+
|
162
|
+
request_headers = {}
|
163
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
164
|
+
|
165
|
+
# Set Headers
|
166
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
167
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
168
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces'
|
169
|
+
|
170
|
+
request_url = @base_url || @client.base_url
|
171
|
+
|
172
|
+
options = {
|
173
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
174
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
175
|
+
query_params: {'api-version' => @client.api_version},
|
176
|
+
headers: request_headers.merge(custom_headers || {}),
|
177
|
+
base_url: request_url
|
178
|
+
}
|
179
|
+
promise = @client.make_request_async(:get, path_template, options)
|
180
|
+
|
181
|
+
promise = promise.then do |result|
|
182
|
+
http_response = result.response
|
183
|
+
status_code = http_response.status
|
184
|
+
response_content = http_response.body
|
185
|
+
unless status_code == 200
|
186
|
+
error_model = JSON.load(response_content)
|
187
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
188
|
+
end
|
189
|
+
|
190
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
191
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
192
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
193
|
+
# Deserialize Response
|
194
|
+
if status_code == 200
|
195
|
+
begin
|
196
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
197
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2020_08_01::Models::WorkspaceListResult.mapper()
|
198
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
199
|
+
rescue Exception => e
|
200
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
result
|
205
|
+
end
|
206
|
+
|
207
|
+
promise.execute
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
@@ -0,0 +1,123 @@
|
|
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::V2020_08_01
|
7
|
+
#
|
8
|
+
# Operational Insights Client
|
9
|
+
#
|
10
|
+
class Gateways
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Gateways class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [OperationalInsightsManagementClient] reference to the OperationalInsightsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Delete a Log Analytics gateway.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param workspace_name [String] The name of the workspace.
|
30
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
#
|
35
|
+
def delete(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
36
|
+
response = delete_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Delete a Log Analytics gateway.
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
44
|
+
# is case insensitive.
|
45
|
+
# @param workspace_name [String] The name of the workspace.
|
46
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
|
+
#
|
52
|
+
def delete_with_http_info(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
53
|
+
delete_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Delete a Log Analytics gateway.
|
58
|
+
#
|
59
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
60
|
+
# is case insensitive.
|
61
|
+
# @param workspace_name [String] The name of the workspace.
|
62
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
63
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
64
|
+
# to the HTTP request.
|
65
|
+
#
|
66
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
67
|
+
#
|
68
|
+
def delete_async(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
69
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
70
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
71
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
75
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
76
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
77
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
78
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
79
|
+
fail ArgumentError, 'gateway_id is nil' if gateway_id.nil?
|
80
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
81
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
82
|
+
|
83
|
+
|
84
|
+
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
86
|
+
|
87
|
+
# Set Headers
|
88
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
89
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
90
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}'
|
91
|
+
|
92
|
+
request_url = @base_url || @client.base_url
|
93
|
+
|
94
|
+
options = {
|
95
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
96
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'gatewayId' => gateway_id},
|
97
|
+
query_params: {'api-version' => @client.api_version},
|
98
|
+
headers: request_headers.merge(custom_headers || {}),
|
99
|
+
base_url: request_url
|
100
|
+
}
|
101
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
102
|
+
|
103
|
+
promise = promise.then do |result|
|
104
|
+
http_response = result.response
|
105
|
+
status_code = http_response.status
|
106
|
+
response_content = http_response.body
|
107
|
+
unless status_code == 200
|
108
|
+
error_model = JSON.load(response_content)
|
109
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
110
|
+
end
|
111
|
+
|
112
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
113
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
114
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
115
|
+
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
promise.execute
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,351 @@
|
|
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::V2020_08_01
|
7
|
+
#
|
8
|
+
# Operational Insights Client
|
9
|
+
#
|
10
|
+
class IntelligencePacks
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the IntelligencePacks class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [OperationalInsightsManagementClient] reference to the OperationalInsightsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Disables an intelligence pack for a given workspace.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param workspace_name [String] The name of the workspace.
|
30
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
31
|
+
# be disabled.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
#
|
36
|
+
def disable(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
37
|
+
response = disable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
38
|
+
nil
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Disables an intelligence pack for a given workspace.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
45
|
+
# is case insensitive.
|
46
|
+
# @param workspace_name [String] The name of the workspace.
|
47
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
48
|
+
# be disabled.
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
52
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
53
|
+
#
|
54
|
+
def disable_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
55
|
+
disable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Disables an intelligence pack for a given workspace.
|
60
|
+
#
|
61
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
62
|
+
# is case insensitive.
|
63
|
+
# @param workspace_name [String] The name of the workspace.
|
64
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
65
|
+
# be disabled.
|
66
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
67
|
+
# to the HTTP request.
|
68
|
+
#
|
69
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
70
|
+
#
|
71
|
+
def disable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
72
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
76
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
77
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
78
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
79
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
80
|
+
fail ArgumentError, 'intelligence_pack_name is nil' if intelligence_pack_name.nil?
|
81
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
82
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
83
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
84
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
85
|
+
|
86
|
+
|
87
|
+
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
+
|
90
|
+
# Set Headers
|
91
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
92
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
93
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable'
|
94
|
+
|
95
|
+
request_url = @base_url || @client.base_url
|
96
|
+
|
97
|
+
options = {
|
98
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
99
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'intelligencePackName' => intelligence_pack_name,'subscriptionId' => @client.subscription_id},
|
100
|
+
query_params: {'api-version' => @client.api_version},
|
101
|
+
headers: request_headers.merge(custom_headers || {}),
|
102
|
+
base_url: request_url
|
103
|
+
}
|
104
|
+
promise = @client.make_request_async(:post, path_template, options)
|
105
|
+
|
106
|
+
promise = promise.then do |result|
|
107
|
+
http_response = result.response
|
108
|
+
status_code = http_response.status
|
109
|
+
response_content = http_response.body
|
110
|
+
unless status_code == 200
|
111
|
+
error_model = JSON.load(response_content)
|
112
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
113
|
+
end
|
114
|
+
|
115
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
116
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
117
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
118
|
+
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
promise.execute
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Enables an intelligence pack for a given workspace.
|
127
|
+
#
|
128
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
129
|
+
# is case insensitive.
|
130
|
+
# @param workspace_name [String] The name of the workspace.
|
131
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
132
|
+
# be enabled.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
#
|
137
|
+
def enable(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
138
|
+
response = enable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
139
|
+
nil
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Enables an intelligence pack for a given workspace.
|
144
|
+
#
|
145
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
146
|
+
# is case insensitive.
|
147
|
+
# @param workspace_name [String] The name of the workspace.
|
148
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
149
|
+
# be enabled.
|
150
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
|
+
# will be added to the HTTP request.
|
152
|
+
#
|
153
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
|
+
#
|
155
|
+
def enable_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
156
|
+
enable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value!
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Enables an intelligence pack for a given workspace.
|
161
|
+
#
|
162
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
163
|
+
# is case insensitive.
|
164
|
+
# @param workspace_name [String] The name of the workspace.
|
165
|
+
# @param intelligence_pack_name [String] The name of the intelligence pack to
|
166
|
+
# be enabled.
|
167
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
168
|
+
# to the HTTP request.
|
169
|
+
#
|
170
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
171
|
+
#
|
172
|
+
def enable_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil)
|
173
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
174
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
175
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
176
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
177
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
178
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
179
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
180
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
181
|
+
fail ArgumentError, 'intelligence_pack_name is nil' if intelligence_pack_name.nil?
|
182
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
183
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
184
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
185
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
186
|
+
|
187
|
+
|
188
|
+
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
|
+
|
191
|
+
# Set Headers
|
192
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable'
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
198
|
+
options = {
|
199
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'intelligencePackName' => intelligence_pack_name,'subscriptionId' => @client.subscription_id},
|
201
|
+
query_params: {'api-version' => @client.api_version},
|
202
|
+
headers: request_headers.merge(custom_headers || {}),
|
203
|
+
base_url: request_url
|
204
|
+
}
|
205
|
+
promise = @client.make_request_async(:post, path_template, options)
|
206
|
+
|
207
|
+
promise = promise.then do |result|
|
208
|
+
http_response = result.response
|
209
|
+
status_code = http_response.status
|
210
|
+
response_content = http_response.body
|
211
|
+
unless status_code == 200
|
212
|
+
error_model = JSON.load(response_content)
|
213
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
214
|
+
end
|
215
|
+
|
216
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
217
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
218
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
219
|
+
|
220
|
+
result
|
221
|
+
end
|
222
|
+
|
223
|
+
promise.execute
|
224
|
+
end
|
225
|
+
|
226
|
+
#
|
227
|
+
# Lists all the intelligence packs possible and whether they are enabled or
|
228
|
+
# disabled for a given workspace.
|
229
|
+
#
|
230
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
231
|
+
# is case insensitive.
|
232
|
+
# @param workspace_name [String] The name of the workspace.
|
233
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
|
+
# will be added to the HTTP request.
|
235
|
+
#
|
236
|
+
# @return [Array] operation results.
|
237
|
+
#
|
238
|
+
def list(resource_group_name, workspace_name, custom_headers:nil)
|
239
|
+
response = list_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
240
|
+
response.body unless response.nil?
|
241
|
+
end
|
242
|
+
|
243
|
+
#
|
244
|
+
# Lists all the intelligence packs possible and whether they are enabled or
|
245
|
+
# disabled for a given workspace.
|
246
|
+
#
|
247
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
248
|
+
# is case insensitive.
|
249
|
+
# @param workspace_name [String] The name of the workspace.
|
250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
|
+
# will be added to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
254
|
+
#
|
255
|
+
def list_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
256
|
+
list_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
257
|
+
end
|
258
|
+
|
259
|
+
#
|
260
|
+
# Lists all the intelligence packs possible and whether they are enabled or
|
261
|
+
# disabled for a given workspace.
|
262
|
+
#
|
263
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
264
|
+
# is case insensitive.
|
265
|
+
# @param workspace_name [String] The name of the workspace.
|
266
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
267
|
+
# to the HTTP request.
|
268
|
+
#
|
269
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
270
|
+
#
|
271
|
+
def list_async(resource_group_name, workspace_name, custom_headers:nil)
|
272
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
273
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
274
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
275
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
276
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
277
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
|
278
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
|
279
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
|
280
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
281
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
282
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
283
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
284
|
+
|
285
|
+
|
286
|
+
request_headers = {}
|
287
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
|
+
|
289
|
+
# Set Headers
|
290
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
291
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
292
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks'
|
293
|
+
|
294
|
+
request_url = @base_url || @client.base_url
|
295
|
+
|
296
|
+
options = {
|
297
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
298
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
299
|
+
query_params: {'api-version' => @client.api_version},
|
300
|
+
headers: request_headers.merge(custom_headers || {}),
|
301
|
+
base_url: request_url
|
302
|
+
}
|
303
|
+
promise = @client.make_request_async(:get, path_template, options)
|
304
|
+
|
305
|
+
promise = promise.then do |result|
|
306
|
+
http_response = result.response
|
307
|
+
status_code = http_response.status
|
308
|
+
response_content = http_response.body
|
309
|
+
unless status_code == 200
|
310
|
+
error_model = JSON.load(response_content)
|
311
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
312
|
+
end
|
313
|
+
|
314
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
315
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
316
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
317
|
+
# Deserialize Response
|
318
|
+
if status_code == 200
|
319
|
+
begin
|
320
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
321
|
+
result_mapper = {
|
322
|
+
client_side_validation: true,
|
323
|
+
required: false,
|
324
|
+
serialized_name: 'parsed_response',
|
325
|
+
type: {
|
326
|
+
name: 'Sequence',
|
327
|
+
element: {
|
328
|
+
client_side_validation: true,
|
329
|
+
required: false,
|
330
|
+
serialized_name: 'IntelligencePackElementType',
|
331
|
+
type: {
|
332
|
+
name: 'Composite',
|
333
|
+
class_name: 'IntelligencePack'
|
334
|
+
}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
339
|
+
rescue Exception => e
|
340
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
result
|
345
|
+
end
|
346
|
+
|
347
|
+
promise.execute
|
348
|
+
end
|
349
|
+
|
350
|
+
end
|
351
|
+
end
|