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
@@ -94,6 +94,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
94
94
|
end
|
95
95
|
|
96
96
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
97
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
98
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
97
99
|
# Deserialize Response
|
98
100
|
if status_code == 200
|
99
101
|
begin
|
@@ -130,9 +132,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
130
132
|
#
|
131
133
|
# Gets the schema for a given workspace.
|
132
134
|
#
|
133
|
-
# @param resource_group_name [String] The
|
134
|
-
# The
|
135
|
-
# @param workspace_name [String] Log Analytics workspace name
|
135
|
+
# @param resource_group_name [String] The Resource Group name.
|
136
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
136
137
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
138
|
# will be added to the HTTP request.
|
138
139
|
#
|
@@ -146,9 +147,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
146
147
|
#
|
147
148
|
# Gets the schema for a given workspace.
|
148
149
|
#
|
149
|
-
# @param resource_group_name [String] The
|
150
|
-
# The
|
151
|
-
# @param workspace_name [String] Log Analytics workspace name
|
150
|
+
# @param resource_group_name [String] The Resource Group name.
|
151
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
152
152
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
153
153
|
# will be added to the HTTP request.
|
154
154
|
#
|
@@ -161,9 +161,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
161
161
|
#
|
162
162
|
# Gets the schema for a given workspace.
|
163
163
|
#
|
164
|
-
# @param resource_group_name [String] The
|
165
|
-
# The
|
166
|
-
# @param workspace_name [String] Log Analytics workspace name
|
164
|
+
# @param resource_group_name [String] The Resource Group name.
|
165
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
167
166
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
168
167
|
# to the HTTP request.
|
169
168
|
#
|
@@ -208,6 +207,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
208
207
|
end
|
209
208
|
|
210
209
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
210
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
211
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
211
212
|
# Deserialize Response
|
212
213
|
if status_code == 200
|
213
214
|
begin
|
@@ -226,112 +227,179 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
226
227
|
end
|
227
228
|
|
228
229
|
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
230
|
+
# Purges data in an Log Analytics workspace by a set of user-defined filters.
|
231
|
+
#
|
232
|
+
# In order to manage system resources, purge requests are throttled at 50
|
233
|
+
# requests per hour. You should batch the execution of purge requests by
|
234
|
+
# sending a single command whose predicate includes all user identities that
|
235
|
+
# require purging. Use the in operator to specify multiple identities. You
|
236
|
+
# should run the query prior to using for a purge request to verify that the
|
237
|
+
# results are expected.
|
232
238
|
#
|
233
|
-
# @param resource_group_name [String] The
|
234
|
-
# The
|
235
|
-
# @param workspace_name [String] Log Analytics workspace name
|
236
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
237
|
-
# search query.
|
239
|
+
# @param resource_group_name [String] The Resource Group name.
|
240
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
238
241
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
239
242
|
# will be added to the HTTP request.
|
240
243
|
#
|
241
|
-
# @return [
|
244
|
+
# @return [WorkspacePurgeResponse] operation results.
|
242
245
|
#
|
243
|
-
def
|
244
|
-
response =
|
246
|
+
def purge(resource_group_name, workspace_name, custom_headers:nil)
|
247
|
+
response = purge_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
245
248
|
response.body unless response.nil?
|
246
249
|
end
|
247
250
|
|
248
251
|
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
252
|
+
# Purges data in an Log Analytics workspace by a set of user-defined filters.
|
253
|
+
#
|
254
|
+
# In order to manage system resources, purge requests are throttled at 50
|
255
|
+
# requests per hour. You should batch the execution of purge requests by
|
256
|
+
# sending a single command whose predicate includes all user identities that
|
257
|
+
# require purging. Use the in operator to specify multiple identities. You
|
258
|
+
# should run the query prior to using for a purge request to verify that the
|
259
|
+
# results are expected.
|
260
|
+
#
|
261
|
+
# @param resource_group_name [String] The Resource Group name.
|
262
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
254
263
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
264
|
# will be added to the HTTP request.
|
256
265
|
#
|
257
|
-
# @return [
|
258
|
-
# response.
|
266
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
259
267
|
#
|
260
|
-
def
|
261
|
-
|
262
|
-
|
268
|
+
def purge_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
269
|
+
purge_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
270
|
+
end
|
263
271
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
272
|
+
#
|
273
|
+
# Purges data in an Log Analytics workspace by a set of user-defined filters.
|
274
|
+
#
|
275
|
+
# In order to manage system resources, purge requests are throttled at 50
|
276
|
+
# requests per hour. You should batch the execution of purge requests by
|
277
|
+
# sending a single command whose predicate includes all user identities that
|
278
|
+
# require purging. Use the in operator to specify multiple identities. You
|
279
|
+
# should run the query prior to using for a purge request to verify that the
|
280
|
+
# results are expected.
|
281
|
+
#
|
282
|
+
# @param resource_group_name [String] The Resource Group name.
|
283
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
284
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
285
|
+
# to the HTTP request.
|
286
|
+
#
|
287
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
288
|
+
#
|
289
|
+
def purge_async(resource_group_name, workspace_name, custom_headers:nil)
|
290
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
291
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
292
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
293
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
294
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
295
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
296
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
297
|
+
fail ArgumentError, '@client.body is nil' if @client.body.nil?
|
298
|
+
|
299
|
+
|
300
|
+
request_headers = {}
|
301
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
302
|
+
|
303
|
+
# Set Headers
|
304
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
305
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
306
|
+
|
307
|
+
# Serialize Request
|
308
|
+
request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody.mapper()
|
309
|
+
request_content = @client.serialize(request_mapper, @client.body)
|
310
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
311
|
+
|
312
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge'
|
313
|
+
|
314
|
+
request_url = @base_url || @client.base_url
|
315
|
+
|
316
|
+
options = {
|
317
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
318
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'workspaceName' => workspace_name},
|
319
|
+
query_params: {'api-version' => @client.api_version},
|
320
|
+
body: request_content,
|
321
|
+
headers: request_headers.merge(custom_headers || {}),
|
322
|
+
base_url: request_url
|
323
|
+
}
|
324
|
+
promise = @client.make_request_async(:post, path_template, options)
|
325
|
+
|
326
|
+
promise = promise.then do |result|
|
327
|
+
http_response = result.response
|
328
|
+
status_code = http_response.status
|
329
|
+
response_content = http_response.body
|
330
|
+
unless status_code == 202
|
331
|
+
error_model = JSON.load(response_content)
|
332
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
269
333
|
end
|
270
334
|
|
271
|
-
|
272
|
-
|
335
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
336
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
337
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
338
|
+
# Deserialize Response
|
339
|
+
if status_code == 202
|
340
|
+
begin
|
341
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
342
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse.mapper()
|
343
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
344
|
+
rescue Exception => e
|
345
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
result
|
273
350
|
end
|
274
351
|
|
275
|
-
promise
|
352
|
+
promise.execute
|
276
353
|
end
|
277
354
|
|
278
355
|
#
|
279
|
-
# Gets
|
356
|
+
# Gets status of an ongoing purge operation.
|
280
357
|
#
|
281
|
-
# @param resource_group_name [String] The
|
282
|
-
# The
|
283
|
-
# @param workspace_name [String] Log Analytics workspace name
|
284
|
-
# @param id [String] The id of the search that will have results updated. You
|
285
|
-
# can get the id from the response of the GetResults call.
|
358
|
+
# @param resource_group_name [String] The Resource Group name.
|
359
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
286
360
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
287
361
|
# will be added to the HTTP request.
|
288
362
|
#
|
289
|
-
# @return [
|
363
|
+
# @return [WorkspacePurgeStatusResponse] operation results.
|
290
364
|
#
|
291
|
-
def
|
292
|
-
response =
|
365
|
+
def get_purge_status(resource_group_name, workspace_name, custom_headers:nil)
|
366
|
+
response = get_purge_status_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
293
367
|
response.body unless response.nil?
|
294
368
|
end
|
295
369
|
|
296
370
|
#
|
297
|
-
# Gets
|
371
|
+
# Gets status of an ongoing purge operation.
|
298
372
|
#
|
299
|
-
# @param resource_group_name [String] The
|
300
|
-
# The
|
301
|
-
# @param workspace_name [String] Log Analytics workspace name
|
302
|
-
# @param id [String] The id of the search that will have results updated. You
|
303
|
-
# can get the id from the response of the GetResults call.
|
373
|
+
# @param resource_group_name [String] The Resource Group name.
|
374
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
304
375
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
305
376
|
# will be added to the HTTP request.
|
306
377
|
#
|
307
378
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
308
379
|
#
|
309
|
-
def
|
310
|
-
|
380
|
+
def get_purge_status_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
381
|
+
get_purge_status_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
311
382
|
end
|
312
383
|
|
313
384
|
#
|
314
|
-
# Gets
|
385
|
+
# Gets status of an ongoing purge operation.
|
315
386
|
#
|
316
|
-
# @param resource_group_name [String] The
|
317
|
-
# The
|
318
|
-
# @param workspace_name [String] Log Analytics workspace name
|
319
|
-
# @param id [String] The id of the search that will have results updated. You
|
320
|
-
# can get the id from the response of the GetResults call.
|
387
|
+
# @param resource_group_name [String] The Resource Group name.
|
388
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
321
389
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
322
390
|
# to the HTTP request.
|
323
391
|
#
|
324
392
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
325
393
|
#
|
326
|
-
def
|
394
|
+
def get_purge_status_async(resource_group_name, workspace_name, custom_headers:nil)
|
327
395
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
328
396
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
329
397
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
330
398
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
331
|
-
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
332
|
-
fail ArgumentError, 'id is nil' if id.nil?
|
333
399
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
334
400
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
401
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
402
|
+
fail ArgumentError, '@client.purge_id is nil' if @client.purge_id.nil?
|
335
403
|
|
336
404
|
|
337
405
|
request_headers = {}
|
@@ -340,18 +408,18 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
340
408
|
# Set Headers
|
341
409
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
342
410
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
343
|
-
path_template = 'subscriptions/{subscriptionId}/
|
411
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}'
|
344
412
|
|
345
413
|
request_url = @base_url || @client.base_url
|
346
414
|
|
347
415
|
options = {
|
348
416
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
349
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
417
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'workspaceName' => workspace_name,'purgeId' => @client.purge_id},
|
350
418
|
query_params: {'api-version' => @client.api_version},
|
351
419
|
headers: request_headers.merge(custom_headers || {}),
|
352
420
|
base_url: request_url
|
353
421
|
}
|
354
|
-
promise = @client.make_request_async(:
|
422
|
+
promise = @client.make_request_async(:get, path_template, options)
|
355
423
|
|
356
424
|
promise = promise.then do |result|
|
357
425
|
http_response = result.response
|
@@ -363,11 +431,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
363
431
|
end
|
364
432
|
|
365
433
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
434
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
435
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
366
436
|
# Deserialize Response
|
367
437
|
if status_code == 200
|
368
438
|
begin
|
369
439
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
370
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::
|
440
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse.mapper()
|
371
441
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
372
442
|
rescue Exception => e
|
373
443
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -381,56 +451,55 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
381
451
|
end
|
382
452
|
|
383
453
|
#
|
384
|
-
#
|
454
|
+
# Gets the shared keys for a Log Analytics Workspace. These keys are used to
|
455
|
+
# connect Microsoft Operational Insights agents to the workspace.
|
385
456
|
#
|
386
|
-
# @param resource_group_name [String] The
|
387
|
-
# The
|
388
|
-
# @param workspace_name [String] Log Analytics workspace name
|
457
|
+
# @param resource_group_name [String] The Resource Group name.
|
458
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
389
459
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
460
|
# will be added to the HTTP request.
|
391
461
|
#
|
392
|
-
# @return [
|
462
|
+
# @return [SharedKeys] operation results.
|
393
463
|
#
|
394
|
-
def
|
395
|
-
response =
|
464
|
+
def list_keys(resource_group_name, workspace_name, custom_headers:nil)
|
465
|
+
response = list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
396
466
|
response.body unless response.nil?
|
397
467
|
end
|
398
468
|
|
399
469
|
#
|
400
|
-
#
|
470
|
+
# Gets the shared keys for a Log Analytics Workspace. These keys are used to
|
471
|
+
# connect Microsoft Operational Insights agents to the workspace.
|
401
472
|
#
|
402
|
-
# @param resource_group_name [String] The
|
403
|
-
# The
|
404
|
-
# @param workspace_name [String] Log Analytics workspace name
|
473
|
+
# @param resource_group_name [String] The Resource Group name.
|
474
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
405
475
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
406
476
|
# will be added to the HTTP request.
|
407
477
|
#
|
408
478
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
409
479
|
#
|
410
|
-
def
|
411
|
-
|
480
|
+
def list_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
481
|
+
list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
412
482
|
end
|
413
483
|
|
414
484
|
#
|
415
|
-
#
|
485
|
+
# Gets the shared keys for a Log Analytics Workspace. These keys are used to
|
486
|
+
# connect Microsoft Operational Insights agents to the workspace.
|
416
487
|
#
|
417
|
-
# @param resource_group_name [String] The
|
418
|
-
# The
|
419
|
-
# @param workspace_name [String] Log Analytics workspace name
|
488
|
+
# @param resource_group_name [String] The Resource Group name.
|
489
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
420
490
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
421
491
|
# to the HTTP request.
|
422
492
|
#
|
423
493
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
424
494
|
#
|
425
|
-
def
|
495
|
+
def list_keys_async(resource_group_name, workspace_name, custom_headers:nil)
|
496
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
426
497
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
427
498
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
428
499
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
429
500
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
430
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
431
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
432
501
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
433
|
-
fail ArgumentError, '@client.
|
502
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
434
503
|
|
435
504
|
|
436
505
|
request_headers = {}
|
@@ -439,21 +508,14 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
439
508
|
# Set Headers
|
440
509
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
441
510
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
442
|
-
|
443
|
-
# Serialize Request
|
444
|
-
request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody.mapper()
|
445
|
-
request_content = @client.serialize(request_mapper, @client.body)
|
446
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
447
|
-
|
448
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge'
|
511
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/listKeys'
|
449
512
|
|
450
513
|
request_url = @base_url || @client.base_url
|
451
514
|
|
452
515
|
options = {
|
453
516
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
454
|
-
path_params: {'
|
517
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
455
518
|
query_params: {'api-version' => @client.api_version},
|
456
|
-
body: request_content,
|
457
519
|
headers: request_headers.merge(custom_headers || {}),
|
458
520
|
base_url: request_url
|
459
521
|
}
|
@@ -463,17 +525,19 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
463
525
|
http_response = result.response
|
464
526
|
status_code = http_response.status
|
465
527
|
response_content = http_response.body
|
466
|
-
unless status_code ==
|
528
|
+
unless status_code == 200
|
467
529
|
error_model = JSON.load(response_content)
|
468
530
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
469
531
|
end
|
470
532
|
|
471
533
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
534
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
535
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
472
536
|
# Deserialize Response
|
473
|
-
if status_code ==
|
537
|
+
if status_code == 200
|
474
538
|
begin
|
475
539
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
476
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::
|
540
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SharedKeys.mapper()
|
477
541
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
478
542
|
rescue Exception => e
|
479
543
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -487,56 +551,55 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
487
551
|
end
|
488
552
|
|
489
553
|
#
|
490
|
-
#
|
554
|
+
# Regenerates the shared keys for a Log Analytics Workspace. These keys are
|
555
|
+
# used to connect Microsoft Operational Insights agents to the workspace.
|
491
556
|
#
|
492
|
-
# @param resource_group_name [String] The
|
493
|
-
# The
|
494
|
-
# @param workspace_name [String] Log Analytics workspace name
|
557
|
+
# @param resource_group_name [String] The Resource Group name.
|
558
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
495
559
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
496
560
|
# will be added to the HTTP request.
|
497
561
|
#
|
498
|
-
# @return [
|
562
|
+
# @return [SharedKeys] operation results.
|
499
563
|
#
|
500
|
-
def
|
501
|
-
response =
|
564
|
+
def regenerate_shared_keys(resource_group_name, workspace_name, custom_headers:nil)
|
565
|
+
response = regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
502
566
|
response.body unless response.nil?
|
503
567
|
end
|
504
568
|
|
505
569
|
#
|
506
|
-
#
|
570
|
+
# Regenerates the shared keys for a Log Analytics Workspace. These keys are
|
571
|
+
# used to connect Microsoft Operational Insights agents to the workspace.
|
507
572
|
#
|
508
|
-
# @param resource_group_name [String] The
|
509
|
-
# The
|
510
|
-
# @param workspace_name [String] Log Analytics workspace name
|
573
|
+
# @param resource_group_name [String] The Resource Group name.
|
574
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
511
575
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
512
576
|
# will be added to the HTTP request.
|
513
577
|
#
|
514
578
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
515
579
|
#
|
516
|
-
def
|
517
|
-
|
580
|
+
def regenerate_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
581
|
+
regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
518
582
|
end
|
519
583
|
|
520
584
|
#
|
521
|
-
#
|
585
|
+
# Regenerates the shared keys for a Log Analytics Workspace. These keys are
|
586
|
+
# used to connect Microsoft Operational Insights agents to the workspace.
|
522
587
|
#
|
523
|
-
# @param resource_group_name [String] The
|
524
|
-
# The
|
525
|
-
# @param workspace_name [String] Log Analytics workspace name
|
588
|
+
# @param resource_group_name [String] The Resource Group name.
|
589
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
526
590
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
527
591
|
# to the HTTP request.
|
528
592
|
#
|
529
593
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
530
594
|
#
|
531
|
-
def
|
595
|
+
def regenerate_shared_keys_async(resource_group_name, workspace_name, custom_headers:nil)
|
596
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
532
597
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
533
598
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
534
599
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
535
600
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
536
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
537
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
538
601
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
539
|
-
fail ArgumentError, '@client.
|
602
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
540
603
|
|
541
604
|
|
542
605
|
request_headers = {}
|
@@ -545,18 +608,18 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
545
608
|
# Set Headers
|
546
609
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
547
610
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
548
|
-
path_template = 'subscriptions/{subscriptionId}/
|
611
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey'
|
549
612
|
|
550
613
|
request_url = @base_url || @client.base_url
|
551
614
|
|
552
615
|
options = {
|
553
616
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
554
|
-
path_params: {'
|
617
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
555
618
|
query_params: {'api-version' => @client.api_version},
|
556
619
|
headers: request_headers.merge(custom_headers || {}),
|
557
620
|
base_url: request_url
|
558
621
|
}
|
559
|
-
promise = @client.make_request_async(:
|
622
|
+
promise = @client.make_request_async(:post, path_template, options)
|
560
623
|
|
561
624
|
promise = promise.then do |result|
|
562
625
|
http_response = result.response
|
@@ -568,11 +631,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
568
631
|
end
|
569
632
|
|
570
633
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
634
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
635
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
571
636
|
# Deserialize Response
|
572
637
|
if status_code == 200
|
573
638
|
begin
|
574
639
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
575
|
-
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::
|
640
|
+
result_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SharedKeys.mapper()
|
576
641
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
577
642
|
rescue Exception => e
|
578
643
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -586,68 +651,55 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
586
651
|
end
|
587
652
|
|
588
653
|
#
|
589
|
-
#
|
590
|
-
# track the search. User can use the id to poll the search status and get the
|
591
|
-
# full search result later if the search takes long time to finish.
|
654
|
+
# Delete a Log Analytics gateway.
|
592
655
|
#
|
593
|
-
# @param resource_group_name [String] The
|
594
|
-
# The
|
595
|
-
# @param
|
596
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
597
|
-
# search query.
|
656
|
+
# @param resource_group_name [String] The Resource Group name.
|
657
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
658
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
598
659
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
599
660
|
# will be added to the HTTP request.
|
600
661
|
#
|
601
|
-
# @return [SearchResultsResponse] operation results.
|
602
662
|
#
|
603
|
-
def
|
604
|
-
response =
|
605
|
-
|
663
|
+
def delete_gateways(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
664
|
+
response = delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
|
665
|
+
nil
|
606
666
|
end
|
607
667
|
|
608
668
|
#
|
609
|
-
#
|
610
|
-
# track the search. User can use the id to poll the search status and get the
|
611
|
-
# full search result later if the search takes long time to finish.
|
669
|
+
# Delete a Log Analytics gateway.
|
612
670
|
#
|
613
|
-
# @param resource_group_name [String] The
|
614
|
-
# The
|
615
|
-
# @param
|
616
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
617
|
-
# search query.
|
671
|
+
# @param resource_group_name [String] The Resource Group name.
|
672
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
673
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
618
674
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
619
675
|
# will be added to the HTTP request.
|
620
676
|
#
|
621
677
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
622
678
|
#
|
623
|
-
def
|
624
|
-
|
679
|
+
def delete_gateways_with_http_info(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
680
|
+
delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:custom_headers).value!
|
625
681
|
end
|
626
682
|
|
627
683
|
#
|
628
|
-
#
|
629
|
-
# track the search. User can use the id to poll the search status and get the
|
630
|
-
# full search result later if the search takes long time to finish.
|
684
|
+
# Delete a Log Analytics gateway.
|
631
685
|
#
|
632
|
-
# @param resource_group_name [String] The
|
633
|
-
# The
|
634
|
-
# @param
|
635
|
-
# @param parameters [SearchParameters] The parameters required to execute a
|
636
|
-
# search query.
|
686
|
+
# @param resource_group_name [String] The Resource Group name.
|
687
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
688
|
+
# @param gateway_id [String] The Log Analytics gateway Id.
|
637
689
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
638
690
|
# to the HTTP request.
|
639
691
|
#
|
640
692
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
641
693
|
#
|
642
|
-
def
|
694
|
+
def delete_gateways_async(resource_group_name, workspace_name, gateway_id, custom_headers:nil)
|
695
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
643
696
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
644
697
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
645
698
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
646
699
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
647
700
|
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
648
|
-
fail ArgumentError, '
|
701
|
+
fail ArgumentError, 'gateway_id is nil' if gateway_id.nil?
|
649
702
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
650
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
651
703
|
|
652
704
|
|
653
705
|
request_headers = {}
|
@@ -656,41 +708,139 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
|
|
656
708
|
# Set Headers
|
657
709
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
658
710
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
711
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}'
|
659
712
|
|
660
|
-
|
661
|
-
request_mapper = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters.mapper()
|
662
|
-
request_content = @client.serialize(request_mapper, parameters)
|
663
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
713
|
+
request_url = @base_url || @client.base_url
|
664
714
|
|
665
|
-
|
715
|
+
options = {
|
716
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
717
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'gatewayId' => gateway_id},
|
718
|
+
query_params: {'api-version' => @client.api_version},
|
719
|
+
headers: request_headers.merge(custom_headers || {}),
|
720
|
+
base_url: request_url
|
721
|
+
}
|
722
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
723
|
+
|
724
|
+
promise = promise.then do |result|
|
725
|
+
http_response = result.response
|
726
|
+
status_code = http_response.status
|
727
|
+
response_content = http_response.body
|
728
|
+
unless status_code == 200
|
729
|
+
error_model = JSON.load(response_content)
|
730
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
731
|
+
end
|
732
|
+
|
733
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
734
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
735
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
736
|
+
|
737
|
+
result
|
738
|
+
end
|
739
|
+
|
740
|
+
promise.execute
|
741
|
+
end
|
742
|
+
|
743
|
+
#
|
744
|
+
# Gets the available service tiers for the workspace.
|
745
|
+
#
|
746
|
+
# @param resource_group_name [String] The Resource Group name.
|
747
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
748
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
749
|
+
# will be added to the HTTP request.
|
750
|
+
#
|
751
|
+
# @return [Array] operation results.
|
752
|
+
#
|
753
|
+
def available_service_tiers(resource_group_name, workspace_name, custom_headers:nil)
|
754
|
+
response = available_service_tiers_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
755
|
+
response.body unless response.nil?
|
756
|
+
end
|
757
|
+
|
758
|
+
#
|
759
|
+
# Gets the available service tiers for the workspace.
|
760
|
+
#
|
761
|
+
# @param resource_group_name [String] The Resource Group name.
|
762
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
763
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
764
|
+
# will be added to the HTTP request.
|
765
|
+
#
|
766
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
767
|
+
#
|
768
|
+
def available_service_tiers_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
769
|
+
available_service_tiers_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
770
|
+
end
|
771
|
+
|
772
|
+
#
|
773
|
+
# Gets the available service tiers for the workspace.
|
774
|
+
#
|
775
|
+
# @param resource_group_name [String] The Resource Group name.
|
776
|
+
# @param workspace_name [String] The Log Analytics Workspace name.
|
777
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
778
|
+
# to the HTTP request.
|
779
|
+
#
|
780
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
781
|
+
#
|
782
|
+
def available_service_tiers_async(resource_group_name, workspace_name, custom_headers:nil)
|
783
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
784
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
785
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
786
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
787
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
788
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
789
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
790
|
+
|
791
|
+
|
792
|
+
request_headers = {}
|
793
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
794
|
+
|
795
|
+
# Set Headers
|
796
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
797
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
798
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers'
|
666
799
|
|
667
800
|
request_url = @base_url || @client.base_url
|
668
801
|
|
669
802
|
options = {
|
670
803
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
671
|
-
path_params: {'
|
804
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
672
805
|
query_params: {'api-version' => @client.api_version},
|
673
|
-
body: request_content,
|
674
806
|
headers: request_headers.merge(custom_headers || {}),
|
675
807
|
base_url: request_url
|
676
808
|
}
|
677
|
-
promise = @client.make_request_async(:
|
809
|
+
promise = @client.make_request_async(:get, path_template, options)
|
678
810
|
|
679
811
|
promise = promise.then do |result|
|
680
812
|
http_response = result.response
|
681
813
|
status_code = http_response.status
|
682
814
|
response_content = http_response.body
|
683
|
-
unless status_code == 200
|
815
|
+
unless status_code == 200
|
684
816
|
error_model = JSON.load(response_content)
|
685
817
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
686
818
|
end
|
687
819
|
|
688
820
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
821
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
822
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
689
823
|
# Deserialize Response
|
690
824
|
if status_code == 200
|
691
825
|
begin
|
692
826
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
693
|
-
result_mapper =
|
827
|
+
result_mapper = {
|
828
|
+
client_side_validation: true,
|
829
|
+
required: false,
|
830
|
+
serialized_name: 'parsed_response',
|
831
|
+
type: {
|
832
|
+
name: 'Sequence',
|
833
|
+
element: {
|
834
|
+
client_side_validation: true,
|
835
|
+
required: false,
|
836
|
+
serialized_name: 'AvailableServiceTierElementType',
|
837
|
+
type: {
|
838
|
+
name: 'Composite',
|
839
|
+
class_name: 'AvailableServiceTier'
|
840
|
+
}
|
841
|
+
}
|
842
|
+
}
|
843
|
+
}
|
694
844
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
695
845
|
rescue Exception => e
|
696
846
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|