# encoding: utf-8 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. require 'azure_mgmt_operational_insights' module Azure::Profiles::Latest module OperationalInsights module Mgmt StorageInsights = Azure::OperationalInsights::Mgmt::V2015_03_20::StorageInsights DataExports = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::DataExports DataSources = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::DataSources IntelligencePacks = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::IntelligencePacks LinkedServices = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::LinkedServices LinkedStorageAccounts = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::LinkedStorageAccounts ManagementGroups = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::ManagementGroups Operations = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Operations OperationStatuses = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::OperationStatuses SharedKeysOperations = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::SharedKeysOperations Usages = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Usages Workspaces = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Workspaces DeletedWorkspaces = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::DeletedWorkspaces Clusters = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Clusters StorageInsightConfigs = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::StorageInsightConfigs SavedSearches = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::SavedSearches AvailableServiceTiers = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::AvailableServiceTiers Gateways = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Gateways Schema = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Schema WorkspacePurge = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::WorkspacePurge Tables = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Tables module Models LinkTarget = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget WorkspaceSku = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceSku WorkspaceCapping = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceCapping DataExportListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExportListResult PrivateLinkScopedResource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PrivateLinkScopedResource ErrorResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorResponse SearchSort = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSort WorkspacePurgeBody = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeBody ErrorAdditionalInfo = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorAdditionalInfo WorkspacePurgeBodyFilters = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeBodyFilters DataExportErrorResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExportErrorResponse DataSourceFilter = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceFilter SearchMetadataSchema = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchMetadataSchema IntelligencePack = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::IntelligencePack ErrorContract = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorContract LinkedServiceListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedServiceListResult WorkspaceListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListResult LinkedStorageAccountsListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedStorageAccountsListResult KeyVaultProperties = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::KeyVaultProperties WorkspaceListManagementGroupsResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListManagementGroupsResult ClusterErrorResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterErrorResponse Operation = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Operation ClusterSku = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterSku OperationStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationStatus ClusterPatch = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterPatch MetricName = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::MetricName Identity = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Identity WorkspaceListUsagesResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListUsagesResult TablesListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::TablesListResult SearchGetSchemaResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchGetSchemaResponse ClusterListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterListResult SearchSchemaValue = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSchemaValue StorageAccount = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageAccount ManagementGroup = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ManagementGroup StorageInsightStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightStatus OperationListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationListResult WorkspacePurgeStatusResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeStatusResponse UsageMetric = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::UsageMetric StorageInsightListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightListResult DataSourceListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceListResult Tag = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Tag OperationDisplay = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationDisplay WorkspacePurgeResponse = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeResponse Resource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Resource SavedSearchesListResult = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SavedSearchesListResult SharedKeys = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SharedKeys AvailableServiceTier = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::AvailableServiceTier SearchMetadata = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchMetadata CoreSummary = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::CoreSummary DataExport = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport TrackedResource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::TrackedResource AzureEntityResource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::AzureEntityResource ProxyResource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ProxyResource DataSource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSource LinkedService = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedService LinkedStorageAccountsResource = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedStorageAccountsResource Workspace = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Workspace WorkspacePatch = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePatch Cluster = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Cluster StorageInsight = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsight SavedSearch = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SavedSearch Table = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Table Type = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Type DataSourceKind = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceKind LinkedServiceEntityStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedServiceEntityStatus DataSourceType = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceType WorkspaceSkuNameEnum = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceSkuNameEnum DataIngestionStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataIngestionStatus WorkspaceEntityStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceEntityStatus PublicNetworkAccessType = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PublicNetworkAccessType ClusterEntityStatus = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterEntityStatus ClusterSkuNameEnum = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterSkuNameEnum IdentityType = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::IdentityType StorageInsightState = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightState SkuNameEnum = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SkuNameEnum SearchSortEnum = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSortEnum PurgeState = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PurgeState end class OperationalInsightsManagementClass attr_reader :storage_insights, :data_exports, :data_sources, :intelligence_packs, :linked_services, :linked_storage_accounts, :management_groups, :operations, :operation_statuses, :shared_keys_operations, :usages, :workspaces, :deleted_workspaces, :clusters, :storage_insight_configs, :saved_searches, :available_service_tiers, :gateways, :schema, :workspace_purge, :tables, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @storage_insights = @client_0.storage_insights @client_1 = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) if(@client_1.respond_to?(:subscription_id)) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) @data_exports = @client_1.data_exports @data_sources = @client_1.data_sources @intelligence_packs = @client_1.intelligence_packs @linked_services = @client_1.linked_services @linked_storage_accounts = @client_1.linked_storage_accounts @management_groups = @client_1.management_groups @operations = @client_1.operations @operation_statuses = @client_1.operation_statuses @shared_keys_operations = @client_1.shared_keys_operations @usages = @client_1.usages @workspaces = @client_1.workspaces @deleted_workspaces = @client_1.deleted_workspaces @clusters = @client_1.clusters @storage_insight_configs = @client_1.storage_insight_configs @saved_searches = @client_1.saved_searches @available_service_tiers = @client_1.available_service_tiers @gateways = @client_1.gateways @schema = @client_1.schema @workspace_purge = @client_1.workspace_purge @tables = @client_1.tables @model_classes = ModelClasses.new end def add_telemetry(client) profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/OperationalInsights/Mgmt" client.add_user_agent_information(profile_information) end def method_missing(method, *args) if @client_1.respond_to?method @client_1.send(method, *args) elsif @client_0.respond_to?method @client_0.send(method, *args) else super end end class ModelClasses def link_target Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget end def workspace_sku Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceSku end def workspace_capping Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceCapping end def data_export_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExportListResult end def private_link_scoped_resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PrivateLinkScopedResource end def error_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorResponse end def search_sort Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSort end def workspace_purge_body Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeBody end def error_additional_info Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorAdditionalInfo end def workspace_purge_body_filters Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeBodyFilters end def data_export_error_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExportErrorResponse end def data_source_filter Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceFilter end def search_metadata_schema Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchMetadataSchema end def intelligence_pack Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::IntelligencePack end def error_contract Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ErrorContract end def linked_service_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedServiceListResult end def workspace_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListResult end def linked_storage_accounts_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedStorageAccountsListResult end def key_vault_properties Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::KeyVaultProperties end def workspace_list_management_groups_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListManagementGroupsResult end def cluster_error_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterErrorResponse end def operation Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Operation end def cluster_sku Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterSku end def operation_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationStatus end def cluster_patch Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterPatch end def metric_name Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::MetricName end def identity Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Identity end def workspace_list_usages_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceListUsagesResult end def tables_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::TablesListResult end def search_get_schema_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchGetSchemaResponse end def cluster_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterListResult end def search_schema_value Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSchemaValue end def storage_account Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageAccount end def management_group Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ManagementGroup end def storage_insight_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightStatus end def operation_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationListResult end def workspace_purge_status_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeStatusResponse end def usage_metric Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::UsageMetric end def storage_insight_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightListResult end def data_source_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceListResult end def tag Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Tag end def operation_display Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::OperationDisplay end def workspace_purge_response Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePurgeResponse end def resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Resource end def saved_searches_list_result Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SavedSearchesListResult end def shared_keys Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SharedKeys end def available_service_tier Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::AvailableServiceTier end def search_metadata Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchMetadata end def core_summary Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::CoreSummary end def data_export Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataExport end def tracked_resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::TrackedResource end def azure_entity_resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::AzureEntityResource end def proxy_resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ProxyResource end def data_source Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSource end def linked_service Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedService end def linked_storage_accounts_resource Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedStorageAccountsResource end def workspace Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Workspace end def workspace_patch Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspacePatch end def cluster Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Cluster end def storage_insight Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsight end def saved_search Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SavedSearch end def table Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Table end def type Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::Type end def data_source_kind Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceKind end def linked_service_entity_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::LinkedServiceEntityStatus end def data_source_type Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataSourceType end def workspace_sku_name_enum Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceSkuNameEnum end def data_ingestion_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataIngestionStatus end def workspace_entity_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::WorkspaceEntityStatus end def public_network_access_type Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PublicNetworkAccessType end def cluster_entity_status Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterEntityStatus end def cluster_sku_name_enum Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::ClusterSkuNameEnum end def identity_type Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::IdentityType end def storage_insight_state Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::StorageInsightState end def sku_name_enum Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SkuNameEnum end def search_sort_enum Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::SearchSortEnum end def purge_state Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::PurgeState end end end end end end